/* ============ tokens ============ */
:root {
  --bg: #0e1014;
  --bg-soft: #161922;
  --bg-card: #141821;
  --fg: #e8eaf0;
  --fg-dim: #8a8f9b;
  --accent: #4ea1ff;
  --accent-2: #7b7bff;
  --accent-3: #a7ecff;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --grad: linear-gradient(120deg, #a7ecff 0%, #4ea1ff 48%, #7b7bff 100%);
  --radius: 16px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle top-lit gradient + faint grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(78, 161, 255, 0.14), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(123, 123, 255, 0.10), transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}

a { color: inherit; text-decoration: none; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }

/* cursor-follow light */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 161, 255, 0.13), transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(-1000px, -1000px, 0);
  transition: opacity 0.4s;
}

/* ============ buttons ============ */
.primary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.primary-btn {
  color: #071018;
  background: var(--grad);
  box-shadow: 0 6px 22px -6px rgba(78, 161, 255, 0.55), inset 0 0 0 1px rgba(255,255,255,0.2);
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(78, 161, 255, 0.75); }
.ghost-btn {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(78, 161, 255, 0.5); transform: translateY(-2px); }
.star-count { display: none; margin-left: 8px; padding-left: 9px; border-left: 1px solid var(--border); color: var(--accent-3); font-variant-numeric: tabular-nums; font-weight: 700; }
.star-count.show { display: inline-block; animation: countIn 0.4s var(--ease); }
@keyframes countIn { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
.big { padding: 14px 26px; font-size: 1.02rem; border-radius: 13px; }
.full { width: 100%; justify-content: center; }

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 40px);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 16, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding-top: 11px; padding-bottom: 11px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(78,161,255,0.5)); }
.brand-name { font-size: 1.18rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 26px; margin-left: 14px; flex: 1; }
.nav-links a { color: var(--fg-dim); font-size: 0.93rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: none; color: var(--fg); font-size: 1.4rem; cursor: pointer; }

/* ============ hero ============ */
.hero { position: relative; padding: clamp(120px, 16vh, 190px) clamp(18px, 5vw, 40px) 90px; max-width: var(--maxw); margin: 0 auto; }
.hero-aura {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; max-width: 120%;
  background: radial-gradient(ellipse at center, rgba(78,161,255,0.22), transparent 62%);
  filter: blur(30px); z-index: -1; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.14fr; gap: clamp(30px, 4.5vw, 60px); align-items: center; }

.release-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--fg); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); padding: 5px 13px 5px 6px; border-radius: 100px; margin-bottom: 16px; transition: transform 0.2s var(--ease), border-color 0.3s, background 0.3s; }
.release-pill:hover { transform: translateY(-1px); border-color: rgba(78, 161, 255, 0.5); background: rgba(78, 161, 255, 0.08); }
.release-pill .rp-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; color: #071018; background: var(--grad); padding: 2px 8px; border-radius: 100px; }
.release-pill .rp-arrow { color: var(--accent); transition: transform 0.2s var(--ease); }
.release-pill:hover .rp-arrow { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent-3);
  background: rgba(78,161,255,0.08);
  border: 1px solid rgba(78,161,255,0.22);
  padding: 6px 13px; border-radius: 100px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 1px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title { font-size: clamp(2.5rem, 6vw, 4.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--fg-dim); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 34ch; margin: 22px 0 30px; }
.hero-sub strong { color: var(--fg); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 34px; color: var(--fg-dim); font-size: 0.86rem; flex-wrap: wrap; }
.hero-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-dim); opacity: 0.5; }

/* ============ terminal mock ============ */
.hero-term { position: relative; }
.term-window {
  position: relative;
  background: linear-gradient(180deg, #12151d, #0f1219);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(78,161,255,0.06);
}
.term-shadow {
  position: absolute; inset: 10% 4% -8%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(78,161,255,0.28), transparent 70%);
  filter: blur(40px);
}
.term-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border-soft); }
.term-tabs { display: flex; gap: 4px; font-size: 0.73rem; color: var(--fg-dim); flex: 1; }
.term-tab { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 7px; }
.term-tab.active { color: var(--fg); background: rgba(78, 161, 255, 0.10); box-shadow: inset 0 -2px 0 0 var(--accent); }
.term-tab .tab-b { font-style: normal; font-size: 0.58rem; font-weight: 700; background: rgba(78, 161, 255, 0.22); color: var(--accent-3); border-radius: 5px; padding: 1px 5px; }
.term-tab.plus { color: var(--fg-dim); padding: 4px 9px; }
.term-tools { display: flex; gap: 11px; color: var(--fg-dim); font-size: 0.82rem; opacity: 0.55; }

.term-main { display: grid; grid-template-columns: 1fr 186px; height: 392px; }
.term-screen {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.84rem; line-height: 1.72;
  padding: 17px 17px 20px; overflow-y: auto; scrollbar-width: none;
}
.term-screen::-webkit-scrollbar { display: none; }
.term-side { border-left: 1px solid var(--border-soft); background: rgba(255,255,255,0.015); padding: 12px 10px; overflow: hidden; }
.side-head { display: flex; align-items: center; justify-content: space-between; font-family: "JetBrains Mono", monospace; font-size: 0.6rem; letter-spacing: 0.14em; color: var(--fg-dim); padding: 0 4px 11px; }
.side-head b { color: var(--accent-3); background: rgba(78,161,255,0.12); border-radius: 6px; padding: 1px 7px; }
.side-list { display: flex; flex-direction: column; gap: 7px; }
.blk { display: flex; align-items: center; gap: 7px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 9px; animation: blkIn 0.4s var(--ease); }
.blk.active { border-color: rgba(78, 161, 255, 0.4); box-shadow: 0 0 0 1px rgba(78, 161, 255, 0.18); background: rgba(78, 161, 255, 0.06); }
.blk-ok { color: #56d364; font-size: 0.7rem; }
.blk-cmd { flex: 1; font-family: "JetBrains Mono", monospace; font-size: 0.68rem; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-dur { flex-shrink: 0; color: var(--fg-dim); font-size: 0.6rem; }
@keyframes blkIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* AI palette overlay */
.palette { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; background: rgba(17, 21, 29, 0.97); backdrop-filter: blur(10px); border: 1px solid rgba(78, 161, 255, 0.38); border-radius: 11px; box-shadow: 0 22px 55px -18px rgba(0, 0, 0, 0.85), 0 0 42px -14px rgba(78, 161, 255, 0.55); padding: 11px 14px; opacity: 0; transform: translateY(14px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); pointer-events: none; }
.palette.open { opacity: 1; transform: none; }
.pal-bar { display: flex; align-items: center; gap: 9px; }
.pal-ic { color: var(--accent-3); font-size: 0.92rem; }
.pal-q { font-family: "JetBrains Mono", monospace; font-size: 0.82rem; color: var(--fg); }
.pal-res { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border-soft); font-family: "JetBrains Mono", monospace; font-size: 0.8rem; }
.pal-arrow { color: var(--fg-dim); }
.pal-cmd { color: var(--accent-3); }

/* split layout */
.term-screen.split { display: grid; grid-template-columns: 1fr 1fr; padding: 10px; gap: 10px; }
.term-pane { padding: 12px 13px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: rgba(255, 255, 255, 0.012); font-family: "JetBrains Mono", monospace; font-size: 0.79rem; line-height: 1.7; animation: blkIn 0.4s var(--ease); }
.term-pane.active { border-color: rgba(78, 161, 255, 0.45); box-shadow: 0 0 0 1px rgba(78, 161, 255, 0.22), 0 0 26px -12px rgba(78, 161, 255, 0.6); }
.pane-hdr { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; white-space: nowrap; }
.pane-hdr .t-dot { color: var(--fg-dim); font-size: 0.6rem; }
.pane-hdr .p-cwd { color: var(--accent); }
.pane-hdr .p-cmd { color: #eff2f8; font-weight: 500; }
.term-pane .t-out { padding: 0; }

/* tab enter + plus pulse */
.term-tab.enter { animation: tabIn 0.42s var(--ease); }
@keyframes tabIn { from { opacity: 0; transform: translateY(-7px) scale(0.9); } to { opacity: 1; transform: none; } }
.term-tab.plus.pulse { color: var(--accent-3); animation: pulseP 0.5s ease; }
@keyframes pulseP { 50% { transform: scale(1.45); } }
/* Lume-style command block: header bar (cwd · branch · command · ✓ time) + output */
.t-blk { margin: 0 0 11px; }
.t-hdr { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 7px; overflow: hidden; background: linear-gradient(90deg, rgba(78, 161, 255, 0.09), rgba(123, 123, 255, 0.045)); border: 1px solid rgba(78, 161, 255, 0.14); }
.t-blk.active .t-hdr { border-color: rgba(78, 161, 255, 0.42); box-shadow: 0 0 0 1px rgba(78, 161, 255, 0.16); }
.t-dot { color: var(--fg-dim); font-size: 0.62rem; flex-shrink: 0; }
.t-cwd { color: var(--fg-dim); white-space: nowrap; flex-shrink: 0; }
.t-cwd b { color: #d3d8e2; font-weight: 600; }
.t-git { display: inline-flex; align-items: center; gap: 3px; color: #56d364; background: rgba(86, 211, 100, 0.13); border-radius: 5px; padding: 1px 6px; font-size: 0.66rem; white-space: nowrap; flex-shrink: 0; }
.t-hdr .t-cmd { color: #eff2f8; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.t-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--fg-dim); font-size: 0.66rem; white-space: nowrap; flex-shrink: 0; padding-left: 4px; }
.t-meta .ok { color: #56d364; }
.t-out { padding: 6px 6px 0 12px; color: var(--fg-dim); white-space: pre-wrap; }
.t-out .g { color: #56d364; }
.t-out .b { color: var(--accent-3); }
.t-ai { margin: 6px 0 0 12px; padding: 8px 11px; border-radius: 8px; background: rgba(78, 161, 255, 0.07); border: 1px solid rgba(78, 161, 255, 0.2); color: #cfe4ff; }
.t-ai .tag { color: var(--accent-3); font-weight: 700; }
.t-ai .t-cmd { color: #fff; font-weight: 600; }
.caret { display: inline-block; width: 7px; height: 1em; background: var(--accent); vertical-align: -1px; margin-left: 1px; box-shadow: 0 0 8px var(--accent); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ sections ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vh, 120px) clamp(18px, 5vw, 40px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.section-head p { color: var(--fg-dim); font-size: 1.08rem; margin-top: 12px; }

/* ============ features ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(78,161,255,0.10), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(78,161,255,0.35); box-shadow: 0 20px 40px -22px rgba(78,161,255,0.4); }
.card:hover::before { opacity: 1; }
.card-ico { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.35rem; border-radius: 12px; background: rgba(78,161,255,0.10); border: 1px solid rgba(78,161,255,0.2); margin-bottom: 16px; }
.card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--fg-dim); font-size: 0.95rem; }
.card p strong { color: var(--fg); font-weight: 600; }

/* ============ showcase ============ */
.shot { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 60px); align-items: center; margin-bottom: clamp(48px, 8vh, 88px); }
.shot.reverse .shot-text { order: 2; }
.shot-kicker { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.shot-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.shot-text p { color: var(--fg-dim); margin-top: 14px; font-size: 1.03rem; }
.shot-media {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.75);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.shot-media::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(78,161,255,0.08); pointer-events: none; }
.shot-media:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -34px rgba(78,161,255,0.4); }
.shot-media img { display: block; width: 100%; height: auto; }

/* ============ download ============ */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card { min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.dl-card.active { border-color: rgba(78,161,255,0.5); box-shadow: 0 24px 50px -26px rgba(78,161,255,0.5); transform: translateY(-3px); }
.dl-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 15px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); display: grid; place-items: center; color: #e8ecf3; }
.dl-ico svg { width: 28px; height: 28px; }
.dl-card h3 { font-size: 1.3rem; font-weight: 700; }
.dl-note { color: var(--fg-dim); font-size: 0.86rem; margin: 4px 0 18px; }
.dl-fine { color: var(--fg-dim); font-size: 0.78rem; margin-top: 12px; opacity: 0.8; }
.copy-line { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #0c0e13; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; margin-bottom: 12px; cursor: pointer; transition: border-color 0.2s; }
.copy-line:hover { border-color: rgba(78,161,255,0.45); }
.copy-line code { flex: 1; min-width: 0; font-size: 0.74rem; color: var(--accent-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-hint { font-size: 0.68rem; color: var(--fg-dim); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; flex-shrink: 0; }
.dl-foot { text-align: center; color: var(--fg-dim); margin-top: 34px; font-size: 0.95rem; }
.dl-foot code { color: var(--accent-3); background: rgba(255,255,255,0.04); padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--border); max-width: var(--maxw); margin: 40px auto 0; padding: 48px clamp(18px, 5vw, 40px) 60px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.1rem; }
.footer-brand .brand-mark { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(78,161,255,0.5)); }
.footer-tag { color: var(--fg-dim); margin: 12px 0 20px; font-size: 0.95rem; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: var(--fg-dim); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--fg-dim); font-size: 0.82rem; opacity: 0.75; }
.footer-copy a { color: var(--accent-3); font-weight: 600; transition: color 0.2s; }
.footer-copy a:hover { color: var(--accent); text-decoration: underline; }

/* ============ lightbox ============ */
.shot-media img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 6vh 5vw; background: rgba(6, 8, 12, 0.86); backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.35s var(--ease); }
.lb.open { opacity: 1; }
.lb[hidden] { display: none; }
.lb-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 100%; }
.lb-img { max-width: min(1120px, 90vw); max-height: 78vh; width: auto; height: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-soft); box-shadow: 0 40px 110px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(78, 161, 255, 0.16), 0 0 90px -24px rgba(78, 161, 255, 0.55); will-change: transform; }
.lb-cap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; color: var(--fg); font-size: 1rem; font-weight: 600; }
.lb-kicker { color: var(--accent); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lb-count { color: var(--fg-dim); font-weight: 500; font-size: 0.85rem; border: 1px solid var(--border); border-radius: 20px; padding: 2px 11px; font-variant-numeric: tabular-nums; }
.lb-close, .lb-nav { position: fixed; z-index: 2; display: grid; place-items: center; border: 1px solid var(--border); background: rgba(20, 24, 33, 0.7); color: var(--fg); border-radius: 50%; cursor: pointer; backdrop-filter: blur(6px); transition: transform 0.2s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.lb-close:hover, .lb-nav:hover { border-color: rgba(78, 161, 255, 0.5); background: rgba(78, 161, 255, 0.14); box-shadow: 0 0 22px -6px rgba(78, 161, 255, 0.6); transform: scale(1.08); }
.lb-close { top: 22px; right: 26px; width: 42px; height: 42px; font-size: 1.05rem; }
.lb-nav { top: 50%; margin-top: -26px; width: 52px; height: 52px; font-size: 1.9rem; line-height: 1; }
.lb-prev { left: max(18px, 2vw); }
.lb-next { right: max(18px, 2vw); }
@media (max-width: 560px) { .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; } .lb-close { top: 14px; right: 16px; } .lb-cap { font-size: 0.9rem; } }

/* ============ reveal (progressive enhancement: only hidden when JS runs) ============ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ hero stats ============ */
.hero-stats { display: flex; gap: 30px; margin-top: 28px; }
.hero-stats .stat { display: flex; flex-direction: column; gap: 1px; }
.hero-stats .stat b { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat span { font-size: 0.76rem; color: var(--fg-dim); }
.hero-stats .stat:hover b { filter: brightness(1.15); }

/* ============ compare ============ */
.compare { max-width: 760px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.cmp-row { display: grid; grid-template-columns: 1fr 118px 118px; align-items: center; border-top: 1px solid var(--border-soft); }
.cmp-row:first-child { border-top: none; }
.cmp-row > div { padding: 15px 16px; }
.cmp-feat { color: var(--fg); font-size: 0.95rem; }
.cmp-lume, .cmp-other { text-align: center; font-weight: 600; }
.cmp-lume { background: rgba(78, 161, 255, 0.05); }
.cmp-head { background: rgba(255, 255, 255, 0.02); font-weight: 700; }
.cmp-head .cmp-lume { color: var(--fg); background: rgba(78, 161, 255, 0.10); }
.cmp-head .cmp-other { color: var(--fg-dim); }
.cmp-head .brand-mark { width: 18px; height: 18px; vertical-align: -3px; margin-right: 5px; }
.yes { color: #56d364; font-size: 1.15rem; }
.no { color: #ff6b6b; opacity: 0.65; font-size: 1.1rem; }
.mid { color: #febc2e; font-size: 0.78rem; font-weight: 600; }
.cmp-note { text-align: center; color: var(--fg-dim); font-size: 0.82rem; margin-top: 20px; opacity: 0.8; }

/* ============ faq ============ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.3s; }
.faq details[open] { border-color: rgba(78, 161, 255, 0.32); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; cursor: pointer; font-weight: 600; color: var(--fg); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { color: var(--accent); font-size: 1.35rem; font-weight: 400; line-height: 1; transition: transform 0.3s var(--ease); }
.faq details[open] .chev { transform: rotate(45deg); }
.faq p { padding: 0 20px 18px; color: var(--fg-dim); font-size: 0.96rem; }

/* ============ nav active + focus ============ */
.nav-links a { position: relative; }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--grad); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }

/* ============ responsive ============ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* copy first (headline + CTA), product terminal below */
  .hero-copy { order: 0; }
  .hero-term { order: 1; width: 100%; max-width: 560px; margin: 6px auto 0; }
  .hero-sub { max-width: 46ch; }
  .feature-grid, .dl-grid { grid-template-columns: 1fr 1fr; }
  .shot, .shot.reverse { grid-template-columns: 1fr; }
  .shot.reverse .shot-text { order: 0; }
  .nav { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(14,16,20,0.97); backdrop-filter: blur(14px); padding: 16px 24px; gap: 16px; border-bottom: 1px solid var(--border); }
}

@media (max-width: 620px) {
  .feature-grid, .dl-grid { grid-template-columns: 1fr; }
  .nav-cta .ghost-btn { display: none; }
  .hero { padding-top: clamp(100px, 15vh, 140px); }
  .hero-title { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .hero-sub { max-width: none; }
  .hero-actions .primary-btn.big, .hero-actions .ghost-btn.big { flex: 1; justify-content: center; }
  .hero-meta { font-size: 0.8rem; gap: 10px; }
  .hero-stats { gap: 22px; margin-top: 24px; }
  .hero-stats .stat b { font-size: 1.25rem; }
  .term-main { grid-template-columns: 1fr; height: 330px; }
  .term-side { display: none; }
  .term-screen { font-size: 0.8rem; padding: 14px 14px 16px; }
  .term-screen.split { grid-template-columns: 1fr; }
  .section { padding-top: clamp(56px, 9vh, 90px); padding-bottom: clamp(56px, 9vh, 90px); }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 1rem; }
  .card { padding: 22px 20px; }
  .dl-card { padding: 26px 20px; }
  .cmp-row { grid-template-columns: 1fr 58px 58px; }
  .cmp-row > div { padding: 13px 10px; }
  .cmp-feat { font-size: 0.85rem; }
  .cmp-head .brand-mark { display: none; }
  .compare { font-size: 0.95rem; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.85rem; }
  .hero-stats { gap: 16px; }
  .hero-stats .stat b { font-size: 1.12rem; }
  .hero-stats .stat span { font-size: 0.72rem; }
  .term-main { height: 300px; }
  .cmp-row { grid-template-columns: 1fr 50px 50px; }
}

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