/*
Theme Name: CMSIA Theme
Theme URI: https://instintia.ai/
Author: Instintia
Author URI: https://instintia.ai/
Description: Theme a medida para Instintia basado en el diseño de la landing (fondo oscuro, acentos naranja, tipografías Oswald / Roboto / IBM Plex Mono). Incluye plantillas para portada, páginas, artículos y error 404.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: cmsia-theme
*/

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: #09081A;
  color: #ECEAF6;
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(245,166,35,0.85); color: #09081A; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}

@keyframes glowPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 0.85; } }
@keyframes riseBar { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.cmsia-container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(20px,5vw,64px);
  padding-right: clamp(20px,5vw,64px);
}
.cmsia-section { padding-top: clamp(64px,8vw,120px); padding-bottom: clamp(64px,8vw,120px); }
.cmsia-section-border { border-top: 1px solid rgba(255,255,255,0.05); }
.cmsia-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #F5A623;
  margin-bottom: 18px;
}
.cmsia-h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(28px,3.8vw,46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #F7F6FC;
}
.cmsia-lede {
  font-size: clamp(15px,1.2vw,17.5px);
  line-height: 1.68;
  color: #A9A7C0;
  margin: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cmsia-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.cmsia-btn-primary {
  background: #F5A623;
  color: #0B0A1E;
  box-shadow: 0 10px 30px rgba(245,166,35,0.3);
}
.cmsia-btn-primary:hover {
  background: #FFB840;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(245,166,35,0.4);
}
.cmsia-btn-outline {
  color: #D9D8E6;
  border: 1px solid rgba(255,255,255,0.14);
}
.cmsia-btn-outline:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.03); }
.cmsia-btn-ghost {
  background: transparent;
  color: #F5A623;
  border: 1px solid rgba(245,166,35,0.45);
}
.cmsia-btn-ghost:hover { background: rgba(245,166,35,0.1); }

/* ==========================================================================
   Nav
   ========================================================================== */
.cmsia-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,8,26,0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 clamp(20px,5vw,64px);
}
.cmsia-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 0;
}
.cmsia-logo img { height: 58px; width: auto; display: block; }
.cmsia-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px,2.6vw,40px);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cmsia-menu a {
  color: #B9B7CE;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.cmsia-menu a:hover { color: #F5A623; }
.cmsia-nav-right { display: flex; align-items: center; gap: clamp(20px,2.6vw,40px); flex-wrap: wrap; }

/* ==========================================================================
   Hero
   ========================================================================== */
.cmsia-hero { position: relative; overflow: hidden; }
.cmsia-hero-glow-1 {
  position: absolute; top: -160px; right: -80px; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.20), rgba(245,166,35,0) 62%);
  filter: blur(20px); animation: glowPulse 7s ease-in-out infinite; pointer-events: none;
}
.cmsia-hero-glow-2 {
  position: absolute; bottom: -220px; left: -140px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.16), rgba(124,92,255,0) 60%);
  filter: blur(20px); pointer-events: none;
}
.cmsia-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.028) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.028) 1px,transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%,#000,transparent);
  pointer-events: none;
}
.cmsia-hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px,7vw,104px) clamp(20px,5vw,64px) clamp(60px,8vw,112px);
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(340px,1fr));
  gap: clamp(40px,5vw,72px);
  align-items: center;
}
.cmsia-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border: 1px solid rgba(245,166,35,0.28); border-radius: 100px;
  background: rgba(245,166,35,0.06);
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: #F5C271;
  margin-bottom: 28px;
}
.cmsia-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #F5A623; box-shadow: 0 0 10px #F5A623; }
.cmsia-h1 {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: clamp(38px,5.6vw,72px); line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 24px; color: #F7F6FC;
}
.cmsia-h1 .accent { color: #F5A623; }
.cmsia-hero-para { font-size: clamp(16px,1.4vw,19px); line-height: 1.65; color: #A9A7C0; max-width: 520px; margin: 0 0 36px; }
.cmsia-hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 44px; }

/* dashboard visual card */
.cmsia-dash {
  position: relative; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(160deg,rgba(26,23,64,0.9),rgba(15,13,42,0.9));
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 22px; backdrop-filter: blur(6px);
}
.cmsia-dash-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 20px;
}
.cmsia-dash-domain { display: flex; align-items: center; gap: 9px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #C7C5DA; }
.cmsia-dot-green { width: 8px; height: 8px; border-radius: 50%; background: #3FD68C; box-shadow: 0 0 10px #3FD68C; }
.cmsia-dash-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #6E6C86; }
.cmsia-dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.cmsia-stat { border-radius: 13px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06); padding: 16px; }
.cmsia-stat-label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; color: #8B89A4; margin-bottom: 8px; }
.cmsia-stat-value { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; color: #F7F6FC; line-height: 1; }
.cmsia-stat-value small { font-size: 15px; color: #8B89A4; }
.cmsia-stat-value .accent { font-size: 17px; color: #F5A623; }
.cmsia-chart { border-radius: 13px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06); padding: 16px 18px; }
.cmsia-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cmsia-chart-head span:first-child { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; color: #8B89A4; }
.cmsia-chart-head span:last-child { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #3FD68C; }
.cmsia-chart-bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; }
.cmsia-chart-bars span { flex: 1; background: rgba(245,166,35,0.35); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: riseBar 1s ease-out both; }
.cmsia-chart-bars span:last-child { background: linear-gradient(#FFC46B,#F5A623); box-shadow: 0 0 16px rgba(245,166,35,0.5); }
.cmsia-dash-badge {
  position: absolute; bottom: -18px; left: -18px; display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 12px; background: #14122E; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5); font-size: 13px; color: #D9D8E6; font-weight: 500;
}

/* ==========================================================================
   Feature grid
   ========================================================================== */
.cmsia-lead-block { max-width: 760px; margin-bottom: clamp(44px,5vw,72px); }
.cmsia-feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(288px,1fr)); gap: 1px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; overflow: hidden;
}
.cmsia-feature-item { background: #0C0B22; padding: 30px 28px; min-height: 184px; display: flex; flex-direction: column; transition: background .2s; }
.cmsia-feature-item:hover { background: #12102C; }
.cmsia-feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cmsia-feature-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #F5A623; letter-spacing: 0.05em; }
.cmsia-feature-rule { width: 26px; height: 1px; background: rgba(245,166,35,0.5); }
.cmsia-feature-item h3 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.32; letter-spacing: -0.01em; margin: 0 0 10px; color: #F1EFFA; }
.cmsia-feature-item p { font-size: 14.5px; line-height: 1.58; color: #918FAB; margin: 0; }

/* ==========================================================================
   Price band
   ========================================================================== */
.cmsia-price-band {
  position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(245,166,35,0.22);
  background: linear-gradient(120deg,#15122F 0%,#1B1638 55%,#241a2e 100%);
  padding: clamp(36px,5vw,60px) clamp(28px,4vw,60px);
}
.cmsia-price-glow {
  position: absolute; top: -120px; right: -60px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.22),transparent 65%); pointer-events: none;
}
.cmsia-price-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: clamp(32px,4vw,56px); align-items: center; }
.cmsia-price-card {
  border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; background: rgba(9,8,26,0.4);
  backdrop-filter: blur(6px); padding: clamp(24px,3vw,30px); display: flex; flex-direction: column; gap: 18px;
}
.cmsia-price-bullets { display: flex; flex-direction: column; gap: 14px; }
.cmsia-bullet { display: flex; align-items: center; gap: 12px; }
.cmsia-bullet-check {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(245,166,35,0.14); color: #F5A623; font-size: 13px;
}
.cmsia-bullet span:last-child { font-size: 14.5px; color: #D9D8E6; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.cmsia-services-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 18px; }
.cmsia-service-card {
  display: flex; flex-direction: column; background: #0E0C26; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 28px 26px; min-height: 264px; transition: transform .2s, border-color .2s, background .2s;
  text-decoration: none; cursor: pointer;
}
.cmsia-service-card:hover { border-color: rgba(245,166,35,0.4); transform: translateY(-3px); background: #121030; }
.cmsia-service-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cmsia-service-num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.28);
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #F5A623;
}
.cmsia-service-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: #6E6C86; }
.cmsia-service-card h3 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.28; letter-spacing: -0.01em; margin: 0 0 6px; color: #F1EFFA; }
.cmsia-service-sub { font-size: 13.5px; font-weight: 500; color: #F5C271; margin-bottom: 12px; }
.cmsia-service-card p { font-size: 14px; line-height: 1.6; color: #918FAB; margin: 0 0 22px; flex: 1; }
.cmsia-service-start { display: inline-flex; align-items: center; gap: 7px; color: #F5A623; font-weight: 600; font-size: 14.5px; }

/* ==========================================================================
   Reservation CTA
   ========================================================================== */
.cmsia-reservation {
  position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255,255,255,0.09);
  background: radial-gradient(120% 140% at 80% 0%,rgba(245,166,35,0.14),transparent 55%), linear-gradient(160deg,#141130,#0D0B24);
  padding: clamp(44px,6vw,80px) clamp(28px,5vw,72px); text-align: center;
}
.cmsia-reservation-inner { max-width: 680px; margin: 0 auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.cmsia-faq-list { display: flex; flex-direction: column; gap: 12px; }
.cmsia-faq-item { border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; background: #0D0B24; overflow: hidden; }
.cmsia-faq-item summary {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: transparent; border: none; cursor: pointer; padding: 22px 26px; color: #F1EFFA;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(15px,1.3vw,17.5px); line-height: 1.4;
  list-style: none;
}
.cmsia-faq-item summary::-webkit-details-marker { display: none; }
.cmsia-faq-sign {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; background: rgba(245,166,35,0.12); color: #F5A623;
  font-size: 20px; font-weight: 400; line-height: 1;
}
.cmsia-faq-item[open] .cmsia-faq-sign::before { content: "–"; }
.cmsia-faq-sign::before { content: "+"; }
.cmsia-faq-body { padding: 0 26px 24px; }
.cmsia-faq-body p { font-size: 15px; line-height: 1.72; color: #A9A7C0; margin: 0; }

/* ==========================================================================
   Config CTA
   ========================================================================== */
.cmsia-config-cta {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 28px; align-items: center;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; background: #0D0B24;
  padding: clamp(32px,4vw,52px) clamp(28px,4vw,56px);
}
.cmsia-config-cta h2 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(24px,3vw,34px); line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 14px; color: #F7F6FC; }
.cmsia-config-cta p { font-size: 15.5px; line-height: 1.64; color: #A9A7C0; margin: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.cmsia-contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: clamp(40px,5vw,72px); align-items: start; }
.cmsia-contact-links { display: flex; flex-direction: column; gap: 22px; }
.cmsia-contact-links a { display: flex; align-items: center; gap: 16px; text-decoration: none; transition: opacity .2s; }
.cmsia-contact-links a:hover { opacity: 0.85; }
.cmsia-contact-link-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: #6E6C86; display: block; }
.cmsia-contact-link-value { font-size: 15.5px; color: #E4E2F0; font-weight: 500; display: block; }
.cmsia-contact-card {
  border: 1px solid rgba(255,255,255,0.09); border-radius: 20px;
  background: linear-gradient(160deg,rgba(26,23,64,0.55),rgba(15,13,42,0.55));
  box-shadow: 0 30px 80px rgba(0,0,0,0.4); padding: clamp(28px,4vw,44px);
  min-width: 0;
}
.cmsia-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cmsia-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.cmsia-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cmsia-field span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: #8B89A4; }
.cmsia-field input, .cmsia-field select, .cmsia-field textarea {
  background: rgba(9,8,26,0.6); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 13px 14px; color: #F1EFFA; font-family: 'Roboto', sans-serif; font-size: 14.5px; outline: none;
  appearance: none;
}
.cmsia-field select option { background: #12102C; color: #F1EFFA; }
.cmsia-field textarea { resize: vertical; min-height: 96px; }
.cmsia-field input:focus, .cmsia-field select:focus, .cmsia-field textarea:focus { border-color: rgba(245,166,35,0.6); }
.cmsia-consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.cmsia-consent input { flex-shrink: 0; margin-top: 2px; width: 17px; height: 17px; accent-color: #F5A623; cursor: pointer; }
.cmsia-consent span { font-size: 12.5px; line-height: 1.5; color: #A9A7C0; }
.cmsia-form-privacy { font-size: 12px; line-height: 1.5; color: #6E6C86; margin: 0; text-align: center; }
.cmsia-form-sent { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; min-height: 360px; }
.cmsia-form-sent-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(63,214,140,0.14); border: 1px solid rgba(63,214,140,0.4); color: #3FD68C; font-size: 28px;
}
.cmsia-form-sent h3 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 24px; color: #F7F6FC; margin: 0; }
.cmsia-form-sent p { font-size: 15px; line-height: 1.6; color: #A9A7C0; margin: 0; max-width: 320px; }
.cmsia-form-error {
  background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.35); color: #FFB4B4;
  border-radius: 10px; padding: 12px 16px; font-size: 13.5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.cmsia-footer { border-top: 1px solid rgba(255,255,255,0.07); background: #0B0F18; }
.cmsia-footer-inner { max-width: 1180px; margin: 0 auto; padding: clamp(48px,6vw,72px) clamp(20px,5vw,64px) clamp(26px,3vw,38px); }
.cmsia-footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 36px; align-items: start; }
.cmsia-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.cmsia-footer-brand a { display: block; line-height: 0; }
.cmsia-footer-brand img.logo-main { height: 80px; width: auto; display: block; }
.cmsia-footer-brand img.logo-partner { height: 30px; width: auto; display: block; opacity: 0.9; }
.cmsia-footer-brand img.logo-automattic { height: 13px; width: auto; display: block; opacity: 0.9; }
.cmsia-footer h4 { font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 700; color: #F4F6F8; margin: 0 0 20px; }
.cmsia-footer-col a { display: block; color: #C4CCD9; text-decoration: none; font-size: 14.5px; margin-bottom: 14px; }
.cmsia-footer-col a:hover { color: #F5A623; }
.cmsia-footer-legal { display: flex; flex-direction: column; gap: 13px; }
.cmsia-footer-legal a { font-size: 14.5px; color: #9AA3B2; text-decoration: none; }
.cmsia-footer-legal a:hover { color: #F5A623; }
.cmsia-footer-bottom { margin-top: clamp(40px,5vw,60px); padding-top: clamp(22px,3vw,30px); border-top: 1px solid rgba(255,255,255,0.07); text-align: center; }
.cmsia-footer-bottom span { font-size: 13px; color: #6B7488; font-family: 'IBM Plex Mono', monospace; }

/* ==========================================================================
   Interior pages (page.php, single.php, archive/index, 404)
   ========================================================================== */
.cmsia-page-header {
  position: relative; overflow: hidden; padding: clamp(64px,9vw,120px) clamp(20px,5vw,64px) clamp(48px,6vw,72px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cmsia-page-header-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.cmsia-page-title {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(30px,4.4vw,54px);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: #F7F6FC;
}
.cmsia-page-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.06em; color: #8B89A4; margin-top: 18px; }
.cmsia-page-meta a { color: #8B89A4; text-decoration: none; }
.cmsia-page-meta a:hover { color: #F5A623; }

.cmsia-content-area { max-width: 820px; margin: 0 auto; padding: clamp(48px,6vw,80px) clamp(20px,5vw,64px); }
.cmsia-entry-content { font-size: 16.5px; line-height: 1.75; color: #C7C5DA; }
.cmsia-entry-content h1, .cmsia-entry-content h2, .cmsia-entry-content h3, .cmsia-entry-content h4 {
  font-family: 'Oswald', sans-serif; color: #F7F6FC; letter-spacing: -0.01em; line-height: 1.25;
}
.cmsia-entry-content h2 { font-size: 30px; margin: 44px 0 18px; }
.cmsia-entry-content h3 { font-size: 22px; margin: 34px 0 14px; }
.cmsia-entry-content p { margin: 0 0 22px; }
.cmsia-entry-content a { color: #F5A623; text-decoration: underline; text-decoration-color: rgba(245,166,35,0.4); }
.cmsia-entry-content a:hover { text-decoration-color: #F5A623; }
.cmsia-entry-content ul, .cmsia-entry-content ol { margin: 0 0 22px; padding-left: 22px; }
.cmsia-entry-content li { margin-bottom: 8px; }
.cmsia-entry-content blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 3px solid #F5A623;
  background: rgba(245,166,35,0.06); color: #D9D8E6; font-style: italic;
}
.cmsia-entry-content img { border-radius: 14px; margin: 12px 0; }
.cmsia-entry-content pre, .cmsia-entry-content code {
  font-family: 'IBM Plex Mono', monospace; background: #0D0B24; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
}
.cmsia-entry-content pre { padding: 18px; overflow-x: auto; }
.cmsia-entry-content code { padding: 2px 6px; font-size: 0.9em; }

.cmsia-featured-image { margin: 0 0 clamp(32px,5vw,48px); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.cmsia-featured-image img { display: block; width: 100%; }

/* Blog / archive listing */
.cmsia-post-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; max-width: 1240px; margin: 0 auto; }
.cmsia-post-card {
  display: flex; flex-direction: column; background: #0E0C26; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .2s, border-color .2s, background .2s;
}
.cmsia-post-card:hover { border-color: rgba(245,166,35,0.4); transform: translateY(-3px); background: #121030; }
.cmsia-post-thumb { aspect-ratio: 16/10; overflow: hidden; background: #0D0B24; }
.cmsia-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmsia-post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.cmsia-post-date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: #6E6C86; margin-bottom: 12px; }
.cmsia-post-card h2 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 10px; color: #F1EFFA; }
.cmsia-post-excerpt { font-size: 14px; line-height: 1.6; color: #918FAB; margin: 0 0 20px; flex: 1; }
.cmsia-post-readmore { display: inline-flex; align-items: center; gap: 7px; color: #F5A623; font-weight: 600; font-size: 14px; }

.cmsia-pagination { display: flex; justify-content: center; gap: 10px; margin-top: clamp(40px,5vw,64px); flex-wrap: wrap; }
.cmsia-pagination a, .cmsia-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); color: #D9D8E6; text-decoration: none;
  font-family: 'IBM Plex Mono', monospace; font-size: 13.5px;
}
.cmsia-pagination a:hover { border-color: rgba(245,166,35,0.5); color: #F5A623; }
.cmsia-pagination .current { background: #F5A623; color: #0B0A1E; border-color: #F5A623; font-weight: 600; }

.cmsia-empty { text-align: center; padding: 40px 0; color: #A9A7C0; }

/* 404 */
.cmsia-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: clamp(60px,8vw,120px) clamp(20px,5vw,64px); }
.cmsia-404-code {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(80px,16vw,180px); line-height: 1; letter-spacing: -0.03em;
  color: #F5A623; margin: 0 0 12px; text-shadow: 0 0 60px rgba(245,166,35,0.35);
}
.cmsia-404-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(22px,3vw,32px); color: #F7F6FC; margin: 0 0 16px; }
.cmsia-404-text { font-size: 16px; line-height: 1.65; color: #A9A7C0; max-width: 480px; margin: 0 auto 36px; }

/* Comments (basic, optional) */
.cmsia-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.cmsia-tags a {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #B9B7CE; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 100px; padding: 6px 14px;
}
.cmsia-tags a:hover { border-color: rgba(245,166,35,0.5); color: #F5A623; }

@media (max-width: 900px) {
  .cmsia-contact-grid { grid-template-columns: 1fr; }
  .cmsia-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cmsia-menu { display: none; }
}
