/* ═══════════════════════════════════════════════════════
   ChemFlashcards — style.css
   Design system: IBM Plex Mono + Sora
   Green accent theme, light/dark mode support
   ═══════════════════════════════════════════════════════ */

/* ── 1. Tokens (Dark mode — default) ───────────────────── */
:root {
  --color-bg:           #080d0a;
  --color-surface:      #0d1410;
  --color-surface-2:    #121a15;
  --color-border:       #1a2620;
  --color-border-2:     #243320;
  --color-text:         #e4ede8;
  --color-muted:        #6e8a78;
  --color-hint:         #3e5a48;

  --color-accent:       #22c55e;
  --color-accent-dim:   #0f3320;
  --color-accent-hover: #34d87a;
  --color-green:        #22c55e;
  --color-green-dim:    #0a2e18;
  --color-red:          #e84040;
  --color-red-dim:      #3d1010;
  --color-yellow:       #f0b429;
  --color-yellow-dim:   #3d2c08;

  --color-pill-bg:      #111e16;
  --color-pill-border:  #1a3022;

  --font-body: 'Sora', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med:  280ms;
}

/* ── 1b. Light mode ─────────────────────────────────────── */
[data-theme="light"] {
  --color-bg:           #f4faf6;
  --color-surface:      #ffffff;
  --color-surface-2:    #edf7f1;
  --color-border:       #c8e6d0;
  --color-border-2:     #a8d4b6;
  --color-text:         #0d1f15;
  --color-muted:        #3a6b4e;
  --color-hint:         #7aaa8e;
  --color-accent:       #16a34a;
  --color-accent-dim:   #dcfce7;
  --color-accent-hover: #15803d;
  --color-green:        #16a34a;
  --color-green-dim:    #dcfce7;
  --color-red:          #dc2626;
  --color-red-dim:      #fee2e2;
  --color-yellow:       #d97706;
  --color-yellow-dim:   #fef3c7;
  --color-pill-bg:      #f0faf4;
  --color-pill-border:  #bbddc9;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --color-bg:           #f4faf6;
    --color-surface:      #ffffff;
    --color-surface-2:    #edf7f1;
    --color-border:       #c8e6d0;
    --color-border-2:     #a8d4b6;
    --color-text:         #0d1f15;
    --color-muted:        #3a6b4e;
    --color-hint:         #7aaa8e;
    --color-accent:       #16a34a;
    --color-accent-dim:   #dcfce7;
    --color-accent-hover: #15803d;
    --color-green:        #16a34a;
    --color-green-dim:    #dcfce7;
    --color-red:          #dc2626;
    --color-red-dim:      #fee2e2;
    --color-yellow:       #d97706;
    --color-yellow-dim:   #fef3c7;
    --color-pill-bg:      #f0faf4;
    --color-pill-border:  #bbddc9;
  }
}

/* ── 2. Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-med), color var(--dur-med);
  display: flex;
  flex-direction: column;
}

/* ── 3. Top Bar ────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 13, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-med), border-color var(--dur-med);
}

[data-theme="light"] .topbar {
  background: rgba(244, 250, 246, 0.92);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .topbar {
    background: rgba(244, 250, 246, 0.92);
  }
}

.topbar__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.topbar__logo:hover { color: var(--color-accent-hover); }

.topbar__nav { display: flex; gap: var(--space-sm); align-items: center; }

/* ── 4. Progress Bar ───────────────────────────────────── */
.progress-bar { height: 3px; background: var(--color-border); overflow: hidden; }
.progress-bar__fill {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  transition: width 500ms var(--ease-out);
  border-radius: var(--radius-pill);
}

/* ── 5. Main Layout ────────────────────────────────────── */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  min-height: calc(100dvh - 53px);
  flex: 1;
}

/* ── 6. View transitions ───────────────────────────────── */
.view { animation: viewIn var(--dur-med) var(--ease-out) both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 7. Card ───────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card--warning {
  border-color: var(--color-yellow-dim);
  background: linear-gradient(135deg, var(--color-surface) 0%, #1a1500 100%);
}
[data-theme="light"] .card--warning {
  background: linear-gradient(135deg, var(--color-surface) 0%, #fffbeb 100%);
}

.card--success {
  border-color: var(--color-green-dim);
  background: linear-gradient(135deg, var(--color-surface) 0%, #001a0d 100%);
}
[data-theme="light"] .card--success {
  background: linear-gradient(135deg, var(--color-surface) 0%, #f0fdf4 100%);
}

.card__header {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.card__title {
  font-size: 1.6rem; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--color-text);
}
.card__subtitle { margin-top: var(--space-sm); color: var(--color-muted); font-size: 0.95rem; }
.card__body {
  padding: var(--space-lg) var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-lg);
}
.card__footer {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.card__footer--row { flex-direction: row; flex-wrap: wrap; align-items: center; }

/* ── 8. Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm); font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 600; padding: 12px 22px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast),
              transform var(--dur-fast), opacity var(--dur-fast);
  user-select: none; -webkit-tap-highlight-color: transparent;
  white-space: nowrap; text-decoration: none;
}
.btn:disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn--primary:active:not(:disabled) { transform: scale(0.97); }

.btn--ghost { background: transparent; border-color: var(--color-border-2); color: var(--color-muted); }
.btn--ghost:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-text); }

.btn--danger { background: var(--color-red-dim); border-color: var(--color-red); color: var(--color-red); }
.btn--danger:hover:not(:disabled) { background: var(--color-red); color: #fff; }

.btn--success { background: var(--color-green-dim); border-color: var(--color-green); color: var(--color-green); }
.btn--success.active { background: var(--color-green); color: #fff; }

.btn--error { background: var(--color-red-dim); border-color: var(--color-red); color: var(--color-red); }
.btn--error.active { background: var(--color-red); color: #fff; }

.btn--amber {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}
.btn--amber:hover:not(:disabled) { background: #b45309; border-color: #b45309; }
.btn--amber:active:not(:disabled) { transform: scale(0.97); }

[data-theme="light"] .btn--amber { background: #b45309; border-color: #b45309; }
[data-theme="light"] .btn--amber:hover:not(:disabled) { background: #92400e; border-color: #92400e; }

.btn--sm { font-size: 0.82rem; padding: 7px 14px; border-radius: var(--radius-sm); }
.btn--full { width: 100%; }

@keyframes btn-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.93); }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.btn.popping { animation: btn-pop 300ms var(--ease-out); }

@keyframes btn-shake {
  0%   { transform: translateX(0) scale(1); }
  10%  { transform: translateX(-8px) scale(0.98); }
  25%  { transform: translateX(8px) scale(0.98); }
  40%  { transform: translateX(-6px) scale(0.99); }
  55%  { transform: translateX(6px) scale(0.99); }
  70%  { transform: translateX(-3px); }
  85%  { transform: translateX(3px); }
  100% { transform: translateX(0) scale(1); }
}
.btn.shaking { animation: btn-shake 450ms ease-in-out; }

/* ── 9. Form fields ────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--space-xs); }
.field__label {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-muted);
}
.field__input {
  width: 100%; padding: 12px 16px; background: var(--color-surface-2);
  border: 1px solid var(--color-border-2); border-radius: var(--radius-md);
  color: var(--color-text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.field__input:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.field__hint { font-size: 0.82rem; color: var(--color-hint); }

/* ── 10. Trial View ────────────────────────────────────── */
.trial-card { display: flex; flex-direction: column; gap: var(--space-md); }

.trial-img-wrap {
  width: 100%; border-radius: var(--radius-md); overflow: hidden;
  background: #ffffff; border: 1px solid #e0e0e0;
  display: flex; align-items: center; justify-content: center;
}
.trial-img {
  width: 100%; height: auto; max-height: 45vh; display: block;
  object-fit: contain; image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges; user-select: none;
}

.trial-label { display: block; margin-bottom: 0; }
.trial-input-row { display: flex; gap: var(--space-sm); }
.trial-input { flex: 1; }
.trial-submit { flex-shrink: 0; min-width: 110px; position: relative; }

/* ── 11. Feedback ──────────────────────────────────────── */
.feedback-block {
  background: var(--color-surface-2); border: 1px solid var(--color-border-2);
  border-radius: var(--radius-md); padding: var(--space-md);
  display: flex; flex-direction: column; gap: var(--space-sm);
  animation: viewIn var(--dur-med) var(--ease-out) both;
}
.feedback-block--correct  { border-color: var(--color-green-dim); }
.feedback-block--incorrect { border-color: var(--color-red-dim); }

.feedback-pills { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.pill {
  padding: 5px 12px; background: var(--color-pill-bg);
  border: 1px solid var(--color-pill-border); border-radius: var(--radius-pill);
  font-size: 0.88rem; color: var(--color-muted); white-space: nowrap;
}
.pill strong { color: var(--color-text); font-family: var(--font-mono); }
.pill--correct { border-color: var(--color-green-dim); }
.pill--correct strong { color: var(--color-green); }
.pill--wrong { border-color: var(--color-red-dim); }
.pill--wrong strong { color: var(--color-red); }

/* ── 12. Warnings / hints ──────────────────────────────── */
.warn {
  font-size: 0.88rem; color: var(--color-yellow);
  padding: var(--space-sm) var(--space-md); background: var(--color-yellow-dim);
  border: 1px solid rgba(240, 180, 41, 0.2); border-radius: var(--radius-sm);
}
.hint-enter { font-size: 0.82rem; color: var(--color-hint); text-align: center; }
.hint-enter kbd {
  font-family: var(--font-mono); font-size: 0.78rem; padding: 2px 6px;
  background: var(--color-surface-2); border: 1px solid var(--color-border-2);
  border-radius: 4px; color: var(--color-muted);
}
.hint-sm { font-size: 0.82rem; color: var(--color-muted); line-height: 1.5; }

/* ── 13. Instructions toggle ───────────────────────────── */
.instr-toggle { display: flex; flex-direction: column; gap: var(--space-sm); }
.instr-img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: #fff; image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges; user-select: none;
}
.instr-img--inline { max-height: 56vh; object-fit: contain; }
.collapse { overflow: hidden; max-height: 0; transition: max-height 300ms var(--ease-out); }
.collapse.open { max-height: 70vh; }

/* ── 14. Summary stats ─────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
}
.stat-card {
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-md);
  display: flex; flex-direction: column; gap: var(--space-xs);
}
.stat-card__value {
  font-family: var(--font-mono); font-size: 1.6rem;
  font-weight: 500; color: var(--color-accent); line-height: 1;
}
.stat-card__label {
  font-size: 0.78rem; color: var(--color-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── 15. Toast ─────────────────────────────────────────── */
.toast {
  position: fixed; bottom: var(--space-lg); left: 50%;
  transform: translateX(-50%); z-index: 100;
  background: var(--color-surface-2); border: 1px solid var(--color-border-2);
  border-radius: var(--radius-md); padding: 12px 20px;
  font-size: 0.9rem; color: var(--color-text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5); white-space: nowrap;
  animation: toastIn 250ms var(--ease-out); pointer-events: none;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── 16. Confetti canvas ───────────────────────────────── */
#confettiCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* ── 17. Theme toggle ──────────────────────────────────── */
.theme-toggle {
  position: fixed; bottom: var(--space-lg); right: var(--space-lg);
  z-index: 200; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--color-border-2); background: var(--color-surface);
  color: var(--color-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: background var(--dur-fast), border-color var(--dur-fast),
              color var(--dur-fast), transform var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover {
  border-color: var(--color-accent); color: var(--color-accent); transform: scale(1.08);
}

/* ── 18. Confirmation modal ────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-md);
  animation: fadeIn 150ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--color-surface); border: 1px solid var(--color-border-2);
  border-radius: var(--radius-lg); padding: var(--space-xl);
  max-width: 440px; width: 100%;
  display: flex; flex-direction: column; gap: var(--space-md);
  animation: modalIn 200ms var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__title { font-size: 1.15rem; font-weight: 700; color: var(--color-text); }
.modal__body  { font-size: 0.92rem; color: var(--color-muted); line-height: 1.6; }
.modal__footer { display: flex; gap: var(--space-sm); justify-content: flex-end; flex-wrap: wrap; }

/* ── 19. Footer ────────────────────────────────────────── */
.site-footer {
  text-align: center; padding: var(--space-lg) var(--space-md);
  font-size: 0.78rem; color: var(--color-hint);
  border-top: 1px solid var(--color-border);
}

/* ── 20. Prompt text ───────────────────────────────────── */
.prompt-text {
  font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600;
  text-align: center; color: var(--color-text); background: var(--color-surface-2);
  border: 1.5px solid var(--color-border-2); border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg); letter-spacing: 0.06em; margin: 0; white-space: pre;
}
.prompt-text--revealed {
  border-color: var(--color-green-dim);
  background: color-mix(in srgb, var(--color-green-dim) 10%, var(--color-surface-2));
}

/* ── 21. Trial timer ───────────────────────────────────── */
.trial-timer {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  text-align: right; color: var(--color-muted); padding: 0 0.25rem;
  margin: 0; transition: color 0.2s;
}
.trial-timer--warning { color: #b45309; }
.trial-timer--urgent  { color: #b91c1c; }

/* ── 22. Correction panel ──────────────────────────────── */
.correction-panel {
  margin-top: var(--space-md); border: 2px solid var(--color-yellow);
  border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-2);
}
[data-theme="light"] .correction-panel { background: #fffbeb; }

.correction-panel__label {
  font-size: 0.8rem; font-weight: 600; color: #92400e;
  background: #fef3c7; padding: 0.35rem 0.75rem; margin: 0;
  border-bottom: 1px solid var(--color-yellow); letter-spacing: 0.02em;
}
.correction-img {
  width: 100%; height: auto; display: block;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; user-select: none;
}

/* ── 23. Next question row ─────────────────────────────── */
.trial-next-row {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: var(--space-md); justify-content: flex-end;
}
.btn--next { font-size: 0.95rem; padding: 0.55rem 1.2rem; }

/* ── 24. Mobile ────────────────────────────────────────── */
@media (max-width: 768px) { .trial-img { max-height: 38vh; } }
@media (max-width: 600px) {
  .card__header, .card__body, .card__footer {
    padding-left: var(--space-lg); padding-right: var(--space-lg);
  }
  .card__header { padding-top: var(--space-lg); }
  .card__footer { padding-bottom: var(--space-lg); }
  .card__title  { font-size: 1.3rem; }
  .trial-input-row { flex-direction: column; }
  .trial-submit { width: 100%; }
  .instr-img--inline { max-height: 45vh; }
  .card__footer--row { flex-direction: column; align-items: stretch; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .theme-toggle { bottom: var(--space-md); right: var(--space-md); }
}
@media (max-width: 480px) {
  .trial-img { max-height: 32vh; }
  .trial-img-wrap { border-radius: var(--radius-sm); }
}
@media (max-width: 380px) {
  .card__header, .card__body, .card__footer {
    padding-left: var(--space-md); padding-right: var(--space-md);
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .trial-img { max-height: 42vh; }
}

/* ══ APPENDED: Landing, Demo, Modal, Footer ══════════════ */

/* ── Page footer ─────────────────────────────────────────── */
.page-footer {
  text-align: center; padding: var(--space-lg) var(--space-md);
  font-size: 0.78rem; color: var(--color-hint);
  font-family: var(--font-mono);
  border-top: 1px solid var(--color-border);
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-md); animation: fadeIn 150ms ease both;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal {
  background: var(--color-surface); border: 1px solid var(--color-border-2);
  border-radius: var(--radius-lg); padding: var(--space-xl);
  max-width: 420px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: modalIn 200ms var(--ease-out) both;
}
@keyframes modalIn {
  from { opacity:0; transform:scale(0.95) translateY(8px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.modal__title { font-size: 1.2rem; font-weight: 700; color: var(--color-text); margin-bottom: var(--space-sm); }
.modal__body  { font-size: 0.92rem; color: var(--color-muted); line-height: 1.6; margin-bottom: var(--space-lg); }
.modal__actions { display: flex; gap: var(--space-sm); justify-content: flex-end; flex-wrap: wrap; }

/* ── Landing main wrapper ────────────────────────────────── */
.landing-main { max-width: 960px; margin: 0 auto; padding: 0 var(--space-md); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: var(--space-md);
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.03em;
  color: var(--color-text); margin-bottom: var(--space-md);
}
.hero__title .accent { color: var(--color-accent); }
.hero__desc { font-size: 1.05rem; color: var(--color-muted); line-height: 1.7; margin-bottom: var(--space-xl); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__visual { display: flex; justify-content: center; align-items: center; }

.hero-card-stack { position: relative; width: 280px; height: 210px; }
.hero-card-stack__card {
  position: absolute; width: 240px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.hero-card-stack__card:nth-child(1) { top: 28px; left: 28px; transform: rotate(5deg); opacity: 0.4; z-index: 1; }
.hero-card-stack__card:nth-child(2) { top: 14px; left: 14px; transform: rotate(2.5deg); opacity: 0.65; z-index: 2; }
.hero-card-stack__card:nth-child(3) { top: 0; left: 0; z-index: 3; border-color: var(--color-border-2); }
.hero-card__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.hero-card__molecule { font-size: 1.9rem; text-align: center; padding: var(--space-sm) 0; }
.hero-card__prompt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-muted); text-align: center; }

/* ── CTAs section ────────────────────────────────────────── */
.ctas-section { padding: 48px 0; border-top: 1px solid var(--color-border); }
.ctas-section__title {
  font-size: 0.75rem; font-family: var(--font-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-hint); margin-bottom: var(--space-xl);
}
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.cta-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-md);
  transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
  text-decoration: none; cursor: pointer;
}
.cta-card:hover {
  border-color: var(--color-accent); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,197,94,0.1);
}
.cta-card__icon { font-size: 1.8rem; line-height: 1; }
.cta-card__title { font-size: 1.05rem; font-weight: 700; color: var(--color-text); }
.cta-card__desc { font-size: 0.88rem; color: var(--color-muted); line-height: 1.6; flex: 1; }
.cta-card__link { font-size: 0.85rem; font-weight: 600; color: var(--color-accent); font-family: var(--font-mono); display: flex; align-items: center; gap: 4px; }

/* ── FAQ section ─────────────────────────────────────────── */
.faq-section { padding: 48px 0; border-top: 1px solid var(--color-border); }
.faq-section__header { margin-bottom: var(--space-xl); }
.section-eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-sm); }
.section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--color-text); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-lg); }
.faq-item__q { font-weight: 700; font-size: 0.92rem; color: var(--color-text); margin-bottom: var(--space-sm); }
.faq-item__a { font-size: 0.88rem; color: var(--color-muted); line-height: 1.65; }

/* ── About section ───────────────────────────────────────── */
.about-section { padding: 48px 0; border-top: 1px solid var(--color-border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about__text { font-size: 0.95rem; color: var(--color-muted); line-height: 1.75; }
.about__text p + p { margin-top: var(--space-md); }
.about__meta {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.about__meta-item { display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-border); }
.about__meta-item:last-child { border-bottom: none; padding-bottom: 0; }
.about__meta-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-hint); }
.about__meta-value { font-size: 0.88rem; color: var(--color-text); }

/* ── Contact section ─────────────────────────────────────── */
.contact-section { padding: 48px 0 64px; border-top: 1px solid var(--color-border); }
.contact-form { max-width: 520px; display: flex; flex-direction: column; gap: var(--space-md); }
.contact-form textarea.field__input { resize: vertical; min-height: 120px; font-family: var(--font-body); }

/* ── Demo badge ──────────────────────────────────────────── */
.demo-badge {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-yellow); background: var(--color-yellow-dim);
  border: 1px solid rgba(240,180,41,0.25); border-radius: var(--radius-pill); padding: 4px 12px;
}

/* ── Landing responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 40px; gap: 32px; }
  .hero__visual { order: -1; }
  .cta-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}
@media (max-width: 600px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
