/* =========================================================
   Seufic — styles.css
   Dark-by-default, OpenAI-style editorial layout.
   Theme is controlled via <html data-theme="dark|light">.
   ========================================================= */

/* ---------- Theme tokens (DARK = default) ---------- */
:root,
html[data-theme="dark"] {
  --bg:            #0a0a0a;
  --bg-soft:       #101011;
  --bg-softer:     #161618;
  --panel:         #121214;
  --panel-2:       #17171a;
  --ink:           #f4f4f5;
  --ink-2:         #d9d9dd;
  --muted:         #9a9aa2;
  --muted-2:       #6e6e77;
  --line:          rgba(255,255,255,0.08);
  --line-2:        rgba(255,255,255,0.14);
  --line-3:        rgba(255,255,255,0.22);

  --btn-bg:        #f4f4f5;
  --btn-ink:       #0a0a0a;
  --btn-bg-hover:  #ffffff;

  --nav-bg:        rgba(10,10,10,0.55);
  --nav-bg-scroll: rgba(10,10,10,0.72);

  --viz-stroke:    rgba(255,255,255,0.16);
  --viz-fill:      rgba(255,255,255,0.04);
  --viz-accent:    #f4f4f5;
  --glow:          rgba(255,255,255,0.06);
  --shadow:        0 24px 60px -24px rgba(0,0,0,0.7);
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.4);
}

html[data-theme="light"] {
  --bg:            #ffffff;
  --bg-soft:       #fafafa;
  --bg-softer:     #f4f4f3;
  --panel:         #ffffff;
  --panel-2:       #fafafa;
  --ink:           #0a0a0b;
  --ink-2:         #1c1c1f;
  --muted:         #6b6b72;
  --muted-2:       #9a9aa0;
  --line:          #ececec;
  --line-2:        #e0e0de;
  --line-3:        #d4d4d1;

  --btn-bg:        #0a0a0b;
  --btn-ink:       #ffffff;
  --btn-bg-hover:  #000000;

  --nav-bg:        rgba(255,255,255,0.6);
  --nav-bg-scroll: rgba(255,255,255,0.78);

  --viz-stroke:    rgba(10,10,11,0.16);
  --viz-fill:      rgba(10,10,11,0.03);
  --viz-accent:    #0a0a0b;
  --glow:          rgba(10,10,11,0.05);
  --shadow:        0 24px 60px -24px rgba(17,17,19,0.25);
  --shadow-sm:     0 1px 2px rgba(17,17,19,0.05);
}

:root {
  --maxw:  1160px;
  --ease:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast:  160ms;
  --base:  220ms;
  --slow:  320ms;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--slow) var(--ease), color var(--slow) var(--ease);
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font-family: inherit; }
::selection { background: var(--line-3); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  padding: 12px 18px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--fast) var(--ease), background-color var(--base) var(--ease),
              border-color var(--base) var(--ease), box-shadow var(--base) var(--ease), color var(--base) var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.99); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px) scale(1.02); background: var(--btn-bg-hover); }
.btn-primary svg { transition: transform var(--base) var(--ease); }
.btn-primary:hover svg { transform: translateX(2px); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { transform: translateY(-1px) scale(1.02); background: var(--bg-soft); border-color: var(--line-3); }

/* ---------- Navbar (frosted glass) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--slow) var(--ease), border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.nav.scrolled {
  background: var(--nav-bg-scroll);
  border-bottom-color: var(--line-2);
  box-shadow: 0 8px 30px -24px rgba(0,0,0,0.6);
}
.nav-inner { display: flex; align-items: center; gap: 10px; height: 62px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.04em; padding-right: 6px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 450; color: var(--muted);
  padding: 8px 11px; border-radius: 9px;
  transition: color var(--base) var(--ease), background-color var(--base) var(--ease);
}
.nav-link svg { width: 14px; height: 14px; opacity: 0.7; transition: opacity var(--base) var(--ease); }
.nav-link::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1.5px;
  background: var(--ink); border-radius: 2px; transform: scaleX(0); transform-origin: left center;
  opacity: 0; transition: transform var(--base) var(--ease), opacity var(--base) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover svg { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); opacity: 1; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  transition: color var(--base) var(--ease), transform var(--fast) var(--ease), background-color var(--base) var(--ease);
}
.icon-btn:hover { color: var(--ink); background: var(--bg-softer); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .avatar {
  width: 28px; height: 28px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0;
}

.menu-toggle { display: none; }

/* ---------- Dropdown / popover panels ---------- */
.popover {
  position: absolute; top: 52px; right: 0; min-width: 232px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility var(--base);
  z-index: 70;
}
.popover.open { opacity: 1; visibility: visible; transform: none; }
.popover .pop-head { padding: 8px 10px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.popover .pop-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--ink-2);
  background: transparent; border: 0; cursor: pointer; text-align: left;
  transition: background-color var(--fast) var(--ease);
}
.popover .pop-row:hover { background: var(--bg-soft); }
.popover .pop-row svg { width: 16px; height: 16px; opacity: 0.8; }
.popover .pop-row .spacer { margin-left: auto; }
.popover .pop-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.popover .pop-meta { padding: 8px 10px; font-size: 13px; color: var(--muted); word-break: break-all; }

/* segmented theme toggle */
.seg {
  display: inline-flex; padding: 3px; gap: 3px; margin-left: auto;
  background: var(--bg-softer); border: 1px solid var(--line); border-radius: 999px;
}
.seg button {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.seg button svg { width: 13px; height: 13px; }
.seg button.active { background: var(--btn-bg); color: var(--btn-ink); }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 96px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -10%; top: -240px; width: 760px; height: 560px;
  background: radial-gradient(45% 45% at 50% 50%, var(--glow), transparent 70%); pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center;
}
.hero-copy { max-width: 620px; }
h1.hero-title {
  margin: 28px 0 0; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04;
  font-weight: 700; letter-spacing: -0.045em; color: var(--ink);
}
.hero-sub { margin: 24px 0 0; max-width: 56ch; font-size: clamp(16px,1.6vw,18.5px); font-weight: 300; color: var(--muted); line-height: 1.65; }
.hero-cta { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 44px; display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }
.hero-trust .item { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; opacity: 0.75; }
.hero-visual { position: relative; }

/* ---------- Generic section ---------- */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 64px; }
h2.section-title { margin: 16px 0 0; font-size: clamp(28px,3.4vw,42px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.section-desc { margin: 18px 0 0; max-width: 58ch; font-size: 17px; font-weight: 300; color: var(--muted); line-height: 1.65; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 24px 30px; box-shadow: var(--shadow-sm);
  transition: transform var(--base) var(--ease), border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
  will-change: transform;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-3); box-shadow: var(--shadow); }
.card .icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--bg-softer); border: 1px solid var(--line); color: var(--ink); margin-bottom: 20px;
  transition: background-color var(--base) var(--ease), color var(--base) var(--ease), border-color var(--base) var(--ease);
}
.card .icon svg { width: 20px; height: 20px; }
.card:hover .icon { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 14.5px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ---------- Spotlight rows (text + visual, alternating) ---------- */
.spotlights { display: flex; flex-direction: column; gap: 20px; margin-top: 72px; }
.spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel);
}
.spotlight.flip .spot-copy { order: 2; }
.spotlight.flip .spot-visual { order: 1; }
.spot-copy h3 { margin: 16px 0 0; font-size: clamp(22px,2.4vw,30px); font-weight: 700; letter-spacing: -0.03em; }
.spot-copy p { margin: 16px 0 0; font-size: 15.5px; font-weight: 300; color: var(--muted); line-height: 1.7; max-width: 46ch; }
.spot-copy .pills { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2);
  padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-soft);
}
.pill svg { width: 13px; height: 13px; opacity: 0.8; }
.spot-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-softer); border: 1px solid var(--line); color: var(--ink); }
.spot-icon svg { width: 20px; height: 20px; }

/* ---------- Section visual frames ---------- */
.viz {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, var(--bg-softer), var(--panel));
  box-shadow: var(--shadow-sm);
}
.viz svg { width: 100%; height: 100%; }
.viz .grain { position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(100% 100% at 50% 50%, #000 40%, transparent 85%); mask-image: radial-gradient(100% 100% at 50% 50%, #000 40%, transparent 85%); }

/* ---------- Terminal visual ---------- */
.terminal-viz {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: #0d0d0d;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255,255,255,0.04);
  font-family: "SF Mono", "Fira Code", "Cascadia Mono", "Consolas", monospace;
}
html[data-theme="light"] .terminal-viz {
  background: #1a1a1a;
}
.terminal-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dots .dot-r { background: #ff5f57; }
.terminal-dots .dot-y { background: #febc2e; }
.terminal-dots .dot-g { background: #28c840; }
.terminal-title-text {
  flex: 1; text-align: center; font-size: 12px; color: rgba(255,255,255,0.3);
  font-family: "Inter", sans-serif; letter-spacing: 0.02em;
}
.terminal-body {
  padding: 20px 20px; font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.75);
  overflow: hidden;
}
.term-line { display: flex; gap: 10px; margin-bottom: 2px; }
.term-prompt { color: #28c840; flex-shrink: 0; }
.term-cmd { color: rgba(255,255,255,0.85); }
.term-out { color: rgba(255,255,255,0.45); padding-left: 20px; }
.term-out.hi { color: #7dd3fc; }
.term-out.ok { color: #86efac; }
.term-out.warn { color: #fde68a; }
.term-cursor {
  display: inline-block; width: 8px; height: 14px; background: rgba(255,255,255,0.7);
  vertical-align: middle; border-radius: 1px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-list { margin: 32px 0 0; display: grid; gap: 4px; }
.about-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.about-item .tick { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-softer); border: 1px solid var(--line); color: var(--ink); }
.about-item .tick svg { width: 16px; height: 16px; }
.about-item h4 { margin: 3px 0 5px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
.about-item p { margin: 0; font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ---------- Updates — clean timeline style ---------- */
.updates-list { display: grid; gap: 0; max-width: 820px; }
.update {
  display: grid; grid-template-columns: 108px 1fr;
  gap: 0 32px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--line);
  transition: none;
}
.update:last-child { border-bottom: 1px solid var(--line); }
.update .date {
  font-size: 13px; color: var(--muted-2); padding-top: 3px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.update-body { display: flex; flex-direction: column; gap: 6px; }
.update .tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 2px;
}
.update h4 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.update p { margin: 0; font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  background: transparent; border: 0; cursor: pointer; text-align: left; color: var(--ink);
  font-size: 16px; font-weight: 500; letter-spacing: -0.02em; padding: 22px 4px;
}
.faq-q .chev { transition: transform var(--base) var(--ease); color: var(--muted); }
.faq-q .chev svg { width: 18px; height: 18px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--slow) var(--ease); }
.faq-a-inner { padding: 0 4px 24px; font-size: 14.5px; font-weight: 300; color: var(--muted); line-height: 1.7; max-width: 60ch; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { padding: 56px 0 40px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { font-size: 17px; }
.footer-brand p { margin: 14px 0 0; font-size: 13.5px; font-weight: 300; color: var(--muted-2); line-height: 1.65; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 6px 0; transition: color var(--base) var(--ease); }
.footer-col a svg { width: 15px; height: 15px; opacity: 0.65; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted-2); transition: color var(--base) var(--ease); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Auth modal — full-screen overlay ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(0,0,0,0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity var(--base) var(--ease), visibility var(--base);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  padding: 36px;
  transform: translateY(12px) scale(0.97);
  transition: transform var(--slow) var(--ease);
}
html[data-theme="light"] .modal {
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.06);
}
.modal-overlay.open .modal { transform: none; }

.modal-logo {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  letter-spacing: -0.04em; margin: 0 0 24px;
}
.modal h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.04em; }
.modal .sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.5; }

.modal-close-row {
  position: absolute; top: 20px; right: 20px;
}
.modal .close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.modal .close:hover { background: var(--bg-softer); color: var(--ink); }
.modal .close svg { width: 16px; height: 16px; }

.tabs { display: inline-flex; margin: 28px 0 24px; padding: 3px; gap: 3px; background: var(--bg-softer); border: 1px solid var(--line); border-radius: 12px; width: 100%; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 9px; border-radius: 9px; cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.tabs button.active { background: var(--btn-bg); color: var(--btn-ink); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 14px; font-size: 14.5px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 12px; outline: none;
  transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
  font-family: inherit;
}
.field input:focus { border-color: var(--line-3); box-shadow: 0 0 0 3px var(--glow); }
.modal .btn { width: 100%; margin-top: 8px; padding: 14px; font-size: 15px; border-radius: 12px; }
.modal-msg { margin-top: 14px; font-size: 13px; line-height: 1.5; min-height: 18px; }
.modal-msg.error { color: #f87171; }
.modal-msg.ok { color: #34d399; }
.modal-msg.note { color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 70ms; }
.reveal[data-delay="2"] { transition-delay: 140ms; }
.reveal[data-delay="3"] { transition-delay: 210ms; }
.reveal[data-delay="4"] { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .about-grid, .faq-grid, .spotlight { grid-template-columns: 1fr; gap: 36px; }
  .spotlight.flip .spot-copy { order: 1; }
  .spotlight.flip .spot-visual { order: 2; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 80px 0; }
  .update { grid-template-columns: 1fr; gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* mobile nav drawer */
.nav-links.mobile-open {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  position: absolute; top: 62px; left: 0; right: 0; padding: 10px 16px 16px;
  background: var(--nav-bg-scroll); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line-2);
}
.nav-links.mobile-open .nav-link { padding: 12px; font-size: 15px; }

/* ---------- Hero animated nodes ---------- */
@keyframes orbit-1 { from { transform: rotate(0deg) translateX(118px) rotate(0deg); } to { transform: rotate(360deg) translateX(118px) rotate(-360deg); } }
@keyframes orbit-2 { from { transform: rotate(180deg) translateX(82px) rotate(-180deg); } to { transform: rotate(540deg) translateX(82px) rotate(-540deg); } }
@keyframes orbit-3 { from { transform: rotate(90deg) translateX(46px) rotate(-90deg); } to { transform: rotate(450deg) translateX(46px) rotate(-450deg); } }
@keyframes pulse-center { 0%, 100% { r: 9; opacity: 1; } 50% { r: 12; opacity: 0.7; } }

.orb-1 { animation: orbit-1 18s linear infinite; transform-origin: 200px 150px; transform-box: fill-box; }
.orb-2 { animation: orbit-2 12s linear infinite; transform-origin: 200px 150px; transform-box: fill-box; }
.orb-3 { animation: orbit-3 7s linear infinite; transform-origin: 200px 150px; transform-box: fill-box; }
.center-pulse { animation: pulse-center 3s ease-in-out infinite; transform-origin: 200px 150px; transform-box: fill-box; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes type-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

.term-line { animation: type-in 0.2s var(--ease) both; }
.term-line:nth-child(1)  { animation-delay: 0.0s; }
.term-line:nth-child(2)  { animation-delay: 0.15s; }
.term-line:nth-child(3)  { animation-delay: 0.3s; }
.term-line:nth-child(4)  { animation-delay: 0.45s; }
.term-line:nth-child(5)  { animation-delay: 0.6s; }
.term-line:nth-child(6)  { animation-delay: 0.75s; }
.term-line:nth-child(7)  { animation-delay: 0.9s; }
.term-line:nth-child(8)  { animation-delay: 1.05s; }
.term-line:nth-child(9)  { animation-delay: 1.2s; }
.term-line:nth-child(10) { animation-delay: 1.35s; }
