/* ═══════════════════════════════════════
   CODING FOR CIVIL ENGINEERS — CfCE
   Steel & Teal Brand System
   ═══════════════════════════════════════ */

:root {
  --primary:    #1E2D40;
  --accent:     #1D9E75;
  --light-bg:   #E1F5EE;
  --surface:    #F4F6F8;
  --pop:        #FAC775;
  --white:      #ffffff;
  --ink:        #0f1a24;

  --text-body:  #3d4f63;
  --text-muted: #6b7a8d;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --r:    12px;
  --r-sm:  8px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow:      0 4px 24px rgba(30, 45, 64, 0.09);
  --shadow-lg:   0 12px 48px rgba(30, 45, 64, 0.18);
  --shadow-teal: 0 6px 24px rgba(29, 158, 117, 0.35);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.28s;

  --banner-h: 44px;
}

@media (max-width: 768px) {
  :root { --banner-h: 52px; }
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--banner-h);
}

/* ─── Announcement Bar ─── */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  height: var(--banner-h);
  background: linear-gradient(90deg, #FAC775 0%, #f8c258 50%, #FAC775 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(30, 45, 64, 0.14);
}
.announce-bar a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  transition: opacity 0.2s var(--ease);
}
.announce-bar a:hover { opacity: 0.78; }
.announce-pulse {
  width: 8px;
  height: 8px;
  background: #d92626;
  border-radius: 50%;
  flex-shrink: 0;
  animation: announcePulse 1.6s ease-in-out infinite;
}
@keyframes announcePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 38, 38, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(217, 38, 38, 0); }
}
.announce-text { white-space: nowrap; }
.announce-text-short { display: none; }
.announce-cta {
  background: var(--primary);
  color: #FAC775;
  padding: 4px 12px 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .announce-bar a { gap: 10px; font-size: 0.78rem; flex-wrap: wrap; justify-content: center; }
  .announce-text { display: none; }
  .announce-text-short { display: inline; white-space: nowrap; }
  .announce-cta { font-size: 0.72rem; padding: 3px 10px 3px 12px; }
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); }

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 110px 0; }

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }

em { font-style: normal; color: var(--accent); }

p { line-height: 1.78; }

.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow.light { color: rgba(29,158,117,0.85); }

.section-hd {
  text-align: center;
  margin-bottom: 64px;
}
.section-hd h2 { color: var(--primary); }

/* ─── Scroll Reveal ─── */
.reveal, .reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible, .reveal-hero.visible {
  opacity: 1;
  transform: none;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 0.93rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--t) var(--ease), background var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-teal);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #18b882;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(29,158,117,0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-radius: var(--r-pill);
  font-size: 0.93rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.28);
  cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  background: transparent;
  color: var(--accent);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all var(--t) var(--ease);
  width: 100%;
  margin-top: auto;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 0.93rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.btn-dark:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,26,36,0.35);
}

.btn-dark-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  background: transparent;
  color: var(--primary);
  border-radius: var(--r-pill);
  font-size: 0.93rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.btn-dark-ghost:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 9px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--t) var(--ease);
}
.btn-nav:hover {
  background: #18b882;
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

.btn-submit {
  width: 100%;
  padding: 17px 32px;
  font-size: 1rem;
}

/* ══════════════════════════
   NAV
══════════════════════════ */
.nav {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 200;
  padding: 14px 0;
  background: transparent;
  transform: translateY(0);
  transition: transform 0.35s var(--ease), padding var(--t) var(--ease);
}

.nav.nav-hidden {
  transform: translateY(-110%);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 0 10px 0 20px;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.nav.scrolled .nav-inner {
  background: rgba(30, 45, 64, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

.logo {
  display: flex;
  align-items: center;
  justify-self: start;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-img-footer {
  height: 34px;
}

.nav-links {
  display: flex;
  gap: 4px;
  justify-self: center;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 6px 14px;
  border-radius: 100px;
  transition: color var(--t), background var(--t);
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t) var(--ease);
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  top: calc(82px + var(--banner-h));
  left: 16px;
  right: 16px;
  background: rgba(15, 29, 43, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(29,158,117,0.2);
  border-radius: 16px;
  padding: 20px 24px 28px;
  z-index: 199;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}
.mobile-menu.open {
  transform: none;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu .mob-link {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color var(--t);
}
.mobile-menu .mob-link:hover { color: var(--white); }
.mobile-menu .btn-primary { margin-top: 6px; }

/* ══════════════════════════
   HERO
══════════════════════════ */
.hero {
  position: relative;
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 90px 0 60px;
}

/* Blueprint grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,158,117,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 80% at 65% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 65% 50%, black 0%, transparent 70%);
}

/* Soft glow behind headline */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29,158,117,0.12) 0%, transparent 65%);
  top: 50%;
  left: -80px;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

/* ── Code Editor Card ── */
.hero-visual { display: flex; align-items: stretch; justify-content: center; }

.editor-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #0f1d2b;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.35),
    0 28px 72px rgba(0,0,0,0.5),
    0 0 48px rgba(29,158,117,0.07);
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

/* Title bar */
.editor-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  height: 38px;
  background: #1a2d3f;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.editor-dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.editor-tabs { display: flex; gap: 0; }
.etab {
  padding: 0 18px;
  height: 38px;
  display: flex;
  align-items: center;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.06);
  cursor: default;
  white-space: nowrap;
}
.etab.active {
  color: rgba(255,255,255,0.88);
  background: #0f1d2b;
  border-bottom: 2px solid var(--accent);
}

/* Code area */
.editor-body {
  display: flex;
  overflow: hidden;
}
.line-nums {
  padding: 18px 12px 18px 16px;
  font-size: 0.78rem;
  line-height: 1.72;
  color: #2e4a60;
  text-align: right;
  user-select: none;
  border-right: 1px solid rgba(255,255,255,0.05);
  min-width: 40px;
  background: #0f1d2b;
}
.editor-code {
  padding: 18px 20px 18px 16px;
  font-size: 0.78rem;
  line-height: 1.72;
  overflow-x: auto;
  flex: 1;
  margin: 0;
  white-space: pre;
  background: #0f1d2b;
}
.editor-code code { display: block; }

/* C# syntax tokens — VS Code Dark+ palette */
.cs-kw     { color: #569cd6; }          /* keywords: using, int, for */
.cs-type   { color: #4ec9b0; }          /* types: IOpenSTAAD */
.cs-ns     { color: #4ec9b0; }          /* namespaces */
.cs-fn     { color: #dcdcaa; }          /* method calls */
.cs-cmt    { color: #6a9955; font-style: italic; }
.cs-str    { color: #ce9178; }          /* strings */
.cs-interp { color: #9cdcfe; }          /* interpolated vars */
.cs-num    { color: #b5cea8; }          /* numbers */
.cs-const  { color: #4fc1ff; }          /* constants */

/* Blinking cursor */
.cs-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: rgba(255,255,255,0.75);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Status bar */
.editor-statusbar {
  display: flex;
  align-items: center;
  gap: 0;
  height: 26px;
  background: #163347;
  padding: 0 12px;
  overflow: hidden;
}
.sb-item {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.9);
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}
.sb-ok   { color: #a8f0c6; }
.sb-right { margin-left: auto; border-right: none; border-left: 1px solid rgba(255,255,255,0.15); }

.hero-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  background: rgba(29,158,117,0.14);
  color: var(--accent);
  border: 1px solid rgba(29,158,117,0.32);
  padding: 7px 18px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-hl {
  color: var(--white);
  margin-bottom: 18px;
}
.hero-hl em { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  font-family: var(--font-body);
}

.hero-body {
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-body p {
  color: rgba(255,255,255,0.68);
  font-size: 1.02rem;
  margin-bottom: 14px;
}
.hero-body strong { color: var(--white); font-weight: 600; }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Animated scroll line */
.hero-scroll-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(29,158,117,0.5), transparent);
  animation: lineDown 2.2s ease-in-out infinite;
}
@keyframes lineDown {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleY(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scaleY(0.7); }
}

/* ── Hero Interactive Terminal ── */
.term-code-pane {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  max-height: 240px;
}

.term-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
  padding: 0 16px;
  background: #162536;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.term-divider::before,
.term-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.term-console {
  padding: 12px 16px 16px;
  flex: 1;
  min-height: 160px;
  max-height: none;
  overflow-y: auto;
  background: #070f19;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.77rem;
  line-height: 1.85;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.term-console::-webkit-scrollbar { width: 3px; }
.term-console::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.term-question-line {
  color: rgba(255,255,255,0.62);
  white-space: pre-wrap;
  word-break: break-word;
}

.term-input-row {
  display: flex;
  align-items: center;
}

.term-gt {
  color: #1D9E75;
  font-weight: 700;
  flex-shrink: 0;
}

.term-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.77rem;
  caret-color: #1D9E75;
  padding: 0;
}
.term-input-field::placeholder { color: rgba(255,255,255,0.18); }

.term-submit-btn {
  background: rgba(29,158,117,0.12);
  border: 1px solid rgba(29,158,117,0.25);
  border-radius: 4px;
  color: #1D9E75;
  font-size: 0.75rem;
  padding: 1px 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  line-height: 1.6;
  font-family: var(--font-body);
}
.term-submit-btn:hover { background: rgba(29,158,117,0.26); }

.term-out { white-space: pre-wrap; }
.term-out-code { color: rgba(255,255,255,0.75); }
.term-out-result { color: #a8f0c6; }

/* ══════════════════════════
   STATS BAR
══════════════════════════ */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 52px;
  position: relative;
  z-index: 2;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 22px 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  transition: background var(--t), border-color var(--t);
}
.hero-stat-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(29,158,117,0.3);
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-big {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-big.accent { color: var(--accent); }
.stat-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
  line-height: 1.4;
  max-width: 130px;
}

/* ══════════════════════════
   TRANSFORMATION
══════════════════════════ */
.transformation { background: var(--surface); }

.section-sub {
  color: #5a7080;
  font-size: 1.05rem;
  margin-top: 10px;
}

.transformation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.tf-col {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
}

.tf-before { background: #fff; }
.tf-after  { background: var(--primary); }

.tf-col-header {
  padding: 22px 28px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.tf-after .tf-col-header { border-bottom-color: rgba(255,255,255,0.1); }

.tf-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}
.tf-badge-before {
  background: #f2e4e4;
  color: #a33;
}
.tf-badge-after {
  background: rgba(29,158,117,0.18);
  color: var(--accent);
}

.tf-list {
  list-style: none;
  margin: 0;
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tf-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #3a4a56;
}

.tf-after .tf-list li { color: rgba(255,255,255,0.82); }

.tf-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fde8e8;
  color: #c0392b;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.tf-icon-ok {
  background: rgba(29,158,117,0.18);
  color: var(--accent);
}

.tf-list li strong {
  color: #1a2d3f;
  display: block;
  margin-bottom: 2px;
}
.tf-after .tf-list li strong { color: #fff; }

@media (max-width: 768px) {
  .transformation-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════
   CURRICULUM
══════════════════════════ */
.curriculum { background: var(--surface); }

.curr-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid rgba(30,45,64,0.07);
  box-shadow: var(--shadow);
  padding: 28px 0;
  margin-bottom: 64px;
}
.curr-strip-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 44px;
  text-align: center;
}
.curr-strip-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.curr-strip-big.teal { color: var(--accent); }
.curr-strip-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.curr-strip-rule {
  width: 1px;
  height: 40px;
  background: rgba(30,45,64,0.1);
  flex-shrink: 0;
}

.week-block { margin-bottom: 56px; }
.week-block:last-child { margin-bottom: 0; }

.week-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(30,45,64,0.08);
}
.week-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--light-bg);
  border: 1px solid rgba(29,158,117,0.22);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.week-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.sessions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.session-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid transparent;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.session-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.session-card.has-build { border-left-color: var(--accent); }

.session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.session-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.build-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pop);
  color: #6b3e00;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.session-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}
.session-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.68;
  flex: 1;
}

.build-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-bg);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  margin-top: 4px;
}
.build-strip-icon { color: var(--accent); flex-shrink: 0; }
.build-strip-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}
.build-strip-text span { font-weight: 400; color: var(--text-body); }

@media (max-width: 768px) {
  .sessions-grid { grid-template-columns: 1fr; }
  .curr-strip { flex-wrap: wrap; gap: 24px; padding: 24px 0; }
  .curr-strip-rule { display: none; }
  .curr-strip-stat { padding: 0 24px; }
}

/* ══════════════════════════
   WHY NOT FREE
══════════════════════════ */
.whynot { background: #0b1622; }

.whynot .section-hd h2 { color: var(--white); }
.whynot .section-sub   { color: rgba(255,255,255,0.5); }
.whynot .eyebrow       { color: var(--accent); }

.whynot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Road column ── */
.road { display: flex; flex-direction: column; }

.road-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 28px;
}
.road-label-free   { background: rgba(220,60,60,0.12);  border: 1px solid rgba(220,60,60,0.2); }
.road-label-course { background: rgba(29,158,117,0.1);  border: 1px solid rgba(29,158,117,0.22); }

.road-badge {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}
.road-badge-free   { background: rgba(220,60,60,0.2);   color: #f08080; }
.road-badge-course { background: rgba(29,158,117,0.2);  color: var(--accent); }

.road-meta {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.35);
}

/* ── Step row ── */
.road-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.road-step-r { flex-direction: row-reverse; }

/* ── Node ── */
.road-node {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.road-node-free   { background: rgba(220,60,60,0.18);  color: #f08080;       border: 2px solid rgba(220,60,60,0.35); }
.road-node-course { background: rgba(29,158,117,0.18); color: var(--accent); border: 2px solid rgba(29,158,117,0.4); }
.road-node-end    { box-shadow: 0 0 0 4px rgba(255,255,255,0.06); }

/* ── Card ── */
.road-card {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 0;
}
.road-card-free   { background: rgba(220,60,60,0.06);  border: 1px solid rgba(220,60,60,0.14); }
.road-card-course { background: rgba(29,158,117,0.06); border: 1px solid rgba(29,158,117,0.16); }

.road-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
}
.road-desc {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.68;
}

/* connectors removed */

/* ── Result box ── */
.road-result {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.road-result-free   { background: rgba(220,60,60,0.08);  border: 1px solid rgba(220,60,60,0.18); }
.road-result-course { background: rgba(29,158,117,0.08); border: 1px solid rgba(29,158,117,0.2); }

.road-result-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.road-result p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

/* ── Footer CTA ── */
.whynot-footer {
  margin-top: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.whynot-closing {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 620px;
  line-height: 1.78;
}

@media (max-width: 768px) {
  .whynot-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════
   ABOUT
══════════════════════════ */
.about { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 { color: var(--primary); margin-bottom: 24px; }
.about-text p { margin-bottom: 14px; }

.check-list {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.94rem;
  color: var(--text-body);
}
.check-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg width='11' height='8' viewBox='0 0 11 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4 7L10 1' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
}

.trust-line {
  font-style: italic;
  font-weight: 500;
  color: var(--primary) !important;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 24px 0 28px !important;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.badge {
  display: inline-block;
  background: var(--light-bg);
  color: var(--accent);
  border: 1px solid rgba(29,158,117,0.22);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 600;
}

/* Code Window */
.about-visual { display: flex; flex-direction: column; gap: 18px; }

.code-window {
  background: #0d1b2a;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dots { display: flex; gap: 6px; }
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.code-filename {
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
}
.code-body {
  padding: 24px 28px;
  overflow-x: auto;
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.85;
}
.code-body code { display: block; white-space: pre; }
.c-cmt  { color: rgba(255,255,255,0.3); font-style: italic; }
.c-typ  { color: #4ec9b0; }
.c-kw   { color: #c586c0; }

/* Experience card */
.exp-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  background: var(--primary);
  border-radius: var(--r);
  border-left: 4px solid var(--accent);
}
.exp-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.exp-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ══════════════════════════
   SERVICES
══════════════════════════ */
.services { background: var(--surface); }

.cards-grid {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Featured course card */
.card-featured {
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.card-top {
  padding: 36px 40px 28px;
  border-bottom: 1px solid rgba(30,45,64,0.06);
}
.card-top h3 { color: var(--primary); margin-bottom: 20px; }

.enroll-badge {
  display: inline-block;
  background: var(--pop);
  color: #6b3e00;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.outcome-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px !important;
}
.outcome-body { font-size: 0.93rem; }

.card-curriculum {
  padding: 22px 40px;
  background: #fafbfc;
  border-bottom: 1px solid rgba(30,45,64,0.06);
}
.curr-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px !important;
}
.card-curriculum ul { display: flex; flex-direction: column; gap: 11px; }
.card-curriculum li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-body);
}
.card-curriculum li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.card-foot { padding: 26px 40px 36px; }
.card-who { margin-bottom: 22px; }
.who-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card-who p { font-size: 0.88rem; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* Corporate card */
.card-corp {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--primary);
  height: 100%;
}
.corp-icon { margin-bottom: 6px; }
.card-corp h3 { color: var(--primary); font-size: 1.5rem; }
.corp-sub {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-top: -6px;
}
.card-corp p { font-size: 0.88rem; }

/* ══════════════════════════
   TESTIMONIALS
══════════════════════════ */
.testimonials { background: var(--light-bg); }

/* 6-col grid → 3 across top, 2 centered below */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.testi-card {
  grid-column: span 2;
  background: var(--white);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Center the last 2 cards (row 2) */
.testi-card:nth-child(4) { grid-column: 2 / 4; }
.testi-card:nth-child(5) { grid-column: 4 / 6; }

.stars { color: var(--pop); font-size: 0.95rem; letter-spacing: 2px; }

.testi-card > p {
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--text-body);
  font-style: italic;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 12px;
  border-top: 1px solid rgba(30,45,64,0.06);
}
.avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}
.testi-author > div:last-child {
  display: flex;
  flex-direction: column;
}
.testi-author strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.testi-author span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ══════════════════════════
   CTA BAND
══════════════════════════ */
.cta-band {
  background: var(--accent);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.cta-inner h2 {
  color: var(--white);
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.8vw, 3rem);
}
.cta-inner h2 em { color: var(--pop); }
.cta-inner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.04rem;
  margin-bottom: 14px;
}
.cta-inner strong { color: var(--white); font-weight: 600; }
.cta-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ══════════════════════════
   CONTACT
══════════════════════════ */
.contact { background: var(--primary); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text h2 { color: var(--white); margin-bottom: 22px; }
.contact-text p  { color: rgba(255,255,255,0.68); margin-bottom: 14px; }
.direct-line {
  font-weight: 600 !important;
  color: rgba(255,255,255,0.9) !important;
  margin-top: 8px !important;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}
.opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(255,255,255,0.36);
}
.form-row input,
.form-row textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  padding: 13px 17px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--white);
  outline: none;
  resize: vertical;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: rgba(29,158,117,0.09);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.18);
}

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.footer {
  background: var(--ink);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-tag   { font-size: 0.7rem; color: rgba(255,255,255,0.38); }
.footer-nav   { display: flex; gap: 24px; }
.footer-nav a { font-size: 0.83rem; color: rgba(255,255,255,0.48); transition: color var(--t); }
.footer-nav a:hover { color: rgba(255,255,255,0.88); }
.footer-copy  { font-size: 0.72rem; color: rgba(255,255,255,0.28); }

/* ══════════════════════════
   RESPONSIVE — 1080px
══════════════════════════ */
@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card-corp {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .card-corp .corp-icon { order: -1; }
  .card-corp .btn-outline { width: auto; }
}

/* ══════════════════════════
   RESPONSIVE — 900px
══════════════════════════ */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }

  /* Testimonials: 2-col */
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-card { grid-column: span 1 !important; }
}

/* ══════════════════════════
   RESPONSIVE — 768px
══════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .section { padding: 64px 0; }

  /* Nav */
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 90px 0 80px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: 2; max-height: 340px; overflow: hidden; }
  .editor-card { max-height: 340px; }
  .term-code-pane { max-height: 120px; }
  .term-console { min-height: 100px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; justify-content: center; }

  /* Stats */
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }

  /* Cards */
  .card-top, .card-foot { padding: 26px 22px; }
  .card-curriculum { padding: 20px 22px; }
  .price-row { flex-direction: column; align-items: stretch; }
  .price-row .btn-primary { width: 100%; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card { grid-column: 1 !important; }

  /* CTA */
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns a { width: 100%; justify-content: center; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Card corp layout reset */
  .card-corp {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-corp .btn-outline { width: 100%; }
}

/* ══════════════════════════
   RESPONSIVE — 480px
══════════════════════════ */
@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════
   CHAT WIDGET
══════════════════════════ */
.cw {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-body);
}

/* ── Bubble toggle ── */
.cw-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 13px 18px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(29,158,117,0.45);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t);
  white-space: nowrap;
}
.cw-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,158,117,0.55);
}
.cw-bubble.cw-active {
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(30,45,64,0.35);
}
.cw-bubble-label {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── Panel ── */
.cw-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-height: 520px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(30,45,64,0.2), 0 0 0 1px rgba(30,45,64,0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* hidden state */
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.cw-panel.cw-open {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

/* Header */
.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--accent);
  flex-shrink: 0;
}
.cw-header-info { display: flex; align-items: center; gap: 10px; }
.cw-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cw-header-text { display: flex; flex-direction: column; gap: 1px; }
.cw-name  { font-size: 0.88rem; font-weight: 600; color: var(--white); }
.cw-status { font-size: 0.7rem; color: rgba(255,255,255,0.5); }

.cw-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color var(--t), background var(--t);
}
.cw-close:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Messages area */
.cw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background: #f7f9fb;
}
.cw-messages::-webkit-scrollbar { width: 4px; }
.cw-messages::-webkit-scrollbar-track { background: transparent; }
.cw-messages::-webkit-scrollbar-thumb { background: rgba(30,45,64,0.15); border-radius: 4px; }

/* Message bubbles */
.cw-msg { display: flex; max-width: 85%; }
.cw-msg p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.cw-bot {
  align-self: flex-start;
}
.cw-bot p {
  background: var(--white);
  color: var(--primary);
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 1px 4px rgba(30,45,64,0.08);
}
.cw-user {
  align-self: flex-end;
}
.cw-user p {
  background: var(--accent);
  color: var(--white);
  border-radius: 14px 14px 4px 14px;
}

/* Typing indicator */
.cw-typing {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 1px 4px rgba(30,45,64,0.08);
  width: fit-content;
}
.cw-typing span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.cw-typing span:nth-child(2) { animation-delay: 0.18s; }
.cw-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Input row */
.cw-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-top: 1px solid rgba(30,45,64,0.07);
  background: var(--white);
  flex-shrink: 0;
}
.cw-input {
  flex: 1;
  border: 1.5px solid rgba(30,45,64,0.12);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--primary);
  background: var(--surface);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.cw-input::placeholder { color: var(--text-muted); }
.cw-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
  background: var(--white);
}
.cw-input:disabled { opacity: 0.6; cursor: not-allowed; }

.cw-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t), transform var(--t);
}
.cw-send:hover  { background: #18b882; transform: scale(1.06); }
.cw-send:disabled { background: rgba(29,158,117,0.4); cursor: not-allowed; transform: none; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .cw { bottom: 16px; right: 16px; }
  .cw-panel { width: calc(100vw - 32px); max-height: 70vh; }
  .cw-bubble-label { display: none; }
  .cw-bubble { padding: 14px; border-radius: 50%; }
}

/* ── Launchers (two stacked buttons) ── */
.cw-launchers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cw-launchers.cw-launchers-hidden { display: none; }


/* ═══ FAQ ═══ */
.faq { background: var(--surface); }
.faq .section-header { text-align: center; }
.faq-list { max-width: 800px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 2px; }

.faq-item { border-radius: 6px; overflow: hidden; background: var(--white); border: 1px solid rgba(30,45,64,0.08); }
.faq-item + .faq-item { margin-top: 8px; }

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--t);
}
.faq-q:hover { background: var(--light-bg); }
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-q[aria-expanded="true"] { background: var(--light-bg); }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-a.open {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-a p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(30,45,64,0.08);
  padding-top: 16px;
}
