/* =====================================================================
   ClaudeGuard — редизайн в стиле Framer × Raycast
   Токеновая система см. в :root
   ===================================================================== */

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

:root {
  /* --- Светлая тема --- */
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #EEF0F4;
  --ink: #0F1117;
  --ink-soft: #32363F;
  --text-dim: #555C6B;
  --text-faint: #9AA1AF;

  /* Фирменный акцент: холодная индиго-синяя гамма (один характер, без радуги) */
  --primary: #5A6CF0;      /* индиго — основной фирменный */
  --primary-deep: #3E4ED9; /* глубокий индиго */
  --violet: #8E7BFF;       /* мягкий фиолет — компаньон для градиентов индиго → violet */
  --blue: #3B82F6;         /* голубой-индиго — вторичный холодный */

  /* Семантические статусы (только по назначению, не для декора) */
  --ok: #12B76A;           /* emerald — «всё в порядке» */
  --warn: #F79009;         /* amber — предупреждение */
  --danger: #F04438;       /* red — ошибка/закрыл */

  --line: rgba(15, 17, 23, 0.08);
  --line-strong: rgba(15, 17, 23, 0.14);

  /* --- Тёмная тема (Raycast CTA) --- */
  --dark: #0B0D13;
  --dark-2: #12151E;
  --dark-line: rgba(255, 255, 255, 0.10);
  --neon: #38E0C8;         /* неон-teal на тёмном (единственный неоновый акцент) */
  --neon-2: #67E8F9;       /* cyan — вариант неона */
  --on-dark: #EDEFF6;
  --on-dark-dim: #979EAE;

  /* --- Радиусы --- */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* --- Тип (Onest — полная кириллица + латиница единого характера) --- */
  --font-d: 'Onest', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-b: 'Onest', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;

  /* --- Прочее --- */
  --container: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Системный курсор скрываем ТОЛЬКО когда кастомный реально работает */
body.custom-cursor {
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body.custom-cursor { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.mono { font-family: var(--font-m); }

::selection { background: var(--primary); color: #fff; }

/* ===== Focus outline ===== */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Custom cursor ===== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  opacity: 0; /* виден только после первого движения мыши */
  transition: opacity .2s, width .2s var(--ease), height .2s var(--ease), background .2s;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--primary);
  opacity: 0; /* будет включён через dot.style.opacity в JS */
  transition: opacity .25s, width .3s var(--ease), height .3s var(--ease),
              border-color .25s, background .2s;
}
body.cursor-active .cursor-ring {
  width: 64px; height: 64px;
  border-color: transparent;
  background: rgba(90, 108, 240, 0.14);
  opacity: 1;
}
body.cursor-active .cursor-dot {
  width: 12px; height: 12px;
  background: var(--violet);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Grain overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  display: block;
  font-family: var(--font-m);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 20px;
}

.section-lead {
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

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

/* ===== Header ===== */
header {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.header-inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 10px 0 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: 0 2px 20px rgba(18, 19, 26, 0.04);
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease), top .3s var(--ease);
}
header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(18, 19, 26, 0.1);
  border-color: var(--line-strong);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-badge {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(18, 19, 26, 0.12);
}
.logo-badge img {
  width: 20px; height: 20px;
  object-fit: contain;
}

nav { display: flex; gap: 22px; }
nav a {
  color: var(--text-dim);
  font-size: .88rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--violet));
  transition: width .25s var(--ease);
}
nav a:hover { color: var(--ink); }
nav a:hover::after { width: 100%; }

.header-cta .btn { margin-right: 2px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-d);
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease),
              background .2s, border-color .2s, color .2s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 19, 26, 0.25);
}
/* shine sweep */
.cta-hover::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s var(--ease) infinite;
}
@keyframes shine { 0% { left: -80%; } 55%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .cta-hover::before { display: none; } }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-icon { transition: transform .25s var(--ease); }
.btn-ghost:hover .btn-icon { transform: translateX(3px); }

.btn-arrow { transition: transform .25s var(--ease); display: inline-block; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-label { position: relative; z-index: 1; }

.btn-large { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 9px 20px; font-size: .88rem; }

/* Dark download buttons */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: linear-gradient(180deg, #fff, #CFD1DC);
  color: var(--dark);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,.4);
  text-align: left;
}
.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(94, 234, 212, 0.28);
  color: var(--dark);
}
.btn-dl-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--ok), var(--blue));
  transition: transform .3s var(--ease);
}
.btn-download:hover .btn-dl-icon { transform: translateY(3px); }
.btn-dl-icon svg { width: 18px; height: 18px; }
.btn-dl-text { display: flex; flex-direction: column; line-height: 1.25; font-family: var(--font-d); font-weight: 600; font-size: .98rem; }
.btn-dl-sub { font-family: var(--font-m); font-size: .72rem; font-weight: 400; color: var(--text-dim); margin-top: 3px; }
.btn-download-lg { padding: 18px 30px; border-radius: 18px; }
.btn-download-lg .btn-dl-text { font-size: 1.1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* animated mesh blobs */
.hero-mesh { position: absolute; inset: 0; pointer-events: none; }
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.mesh-1 {
  width: 560px; height: 560px;
  top: -140px; left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(90, 108, 240, 0.6), transparent 65%);
  animation: blob1 18s var(--ease) infinite alternate;
}
.mesh-2 {
  width: 620px; height: 620px;
  top: -60px; right: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(124, 92, 255, 0.55), transparent 65%);
  animation: blob2 22s var(--ease) infinite alternate;
}
.mesh-3 {
  width: 480px; height: 480px;
  bottom: 10%; left: 38%;
  background: radial-gradient(circle at 50% 50%, rgba(61, 130, 246, 0.45), transparent 65%);
  animation: blob3 26s var(--ease) infinite alternate;
}
@keyframes blob1 { to { transform: translate(60px, 40px) scale(1.1); } }
@keyframes blob2 { to { transform: translate(-70px, 60px) scale(1.15); } }
@keyframes blob3 { to { transform: translate(50px, -40px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .mesh-blob { animation: none; }
}

/* radar sweep ring */
.mesh-scope {
  position: absolute;
  top: 30%; left: 22%;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(18, 19, 26, 0.06);
  animation: scope 8s linear infinite;
  pointer-events: none;
}
.mesh-scope::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(18, 19, 26, 0.08);
}
.mesh-scope::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 50%; height: 1px;
  background: linear-gradient(90deg, rgba(90,108,240,.4), transparent);
  transform-origin: left center;
  animation: scope-sweep 4s var(--ease) infinite;
}
@keyframes scope { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes scope-sweep { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .mesh-scope { animation: none; }
  .mesh-scope::after { animation: none; display: none; }
  .mesh-scope::before { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-dim);
  font-weight: 500;
  backdrop-filter: blur(8px);
  margin-bottom: 34px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .5);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero-badge-sep { color: var(--text-faint); }

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 860px;
  margin-bottom: 28px;
}
.hero-title br { display: block; }
.title-accent {
  background: linear-gradient(90deg, var(--primary), var(--violet) 60%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-fade {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-weight: 500;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.9vw, 1.18rem);
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 74px;
}

/* ===== Terminal signature ===== */
.terminal {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 18px;
  background: rgba(18, 19, 26, 0.96);
  color: #C9CEDC;
  box-shadow: 0 40px 90px rgba(18, 19, 26, 0.35);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  transform: translateY(0);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.terminal:hover {
  transform: translateY(-4px);
  box-shadow: 0 50px 110px rgba(18, 19, 26, 0.45);
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.terminal-light { width: 10px; height: 10px; border-radius: 50%; background: #34374A; }
.terminal-light:nth-child(1) { background: #FF5F57; }
.terminal-light:nth-child(2) { background: #FEBC2E; }
.terminal-light:nth-child(3) { background: #28C840; }
.terminal-title {
  margin-left: 8px;
  font-size: .72rem;
  color: #6A6F84;
  letter-spacing: .02em;
}
.terminal-body {
  padding: 20px 22px 8px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .84rem;
  line-height: 1.5;
}
.terminal-line { white-space: nowrap; overflow: hidden; }
.terminal-line .c-user { color: var(--neon); }
.terminal-line .c-warn { color: #FFB86B; }
.terminal-line .c-err { color: #FF6B7A; }
.terminal-line .c-ok { color: var(--ok); }
.terminal-line .c-dim { color: #6A6F84; }
.terminal-line .c-ip { color: var(--neon-2); font-weight: 500; }
.terminal-line.hide { display: none; }
.terminal-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px 18px;
  font-size: .72rem;
  color: #6A6F84;
}
.terminal-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(45, 212, 191, .8);
  animation: tpulse 1.4s ease-in-out infinite;
}
@keyframes tpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .terminal-pulse, .terminal-light { animation: none; } }

/* ===== Marquee ===== */
.hero-marquee {
  margin-top: 74px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
  align-items: center;
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }
.marquee-track span {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--text-faint);
}
.marquee-track i { font-style: normal; color: var(--primary); font-size: .6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Scenes (cycle) ===== */
.scenes { padding: 130px 0 60px; }

.scene-wrap { margin-top: 30px; }
.scene { padding: 0; }
.scene-sticky {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 84px 28px;
  border-top: 1px solid var(--line);
}
.scene-num {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text-faint);
  opacity: .5;
  transition: color .4s var(--ease), opacity .4s var(--ease);
  -webkit-text-stroke: 1px var(--text-faint);
  -webkit-text-fill-color: transparent;
}
.scene.active .scene-num {
  -webkit-text-fill-color: var(--primary);
  opacity: 1;
}
.scene-copy h3 {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.scene-copy p { color: var(--text-dim); font-size: 1rem; max-width: 400px; }

.scene-media {
  position: relative;
  opacity: .5;
  transform: scale(.92) translateY(20px);
  filter: blur(2px);
  transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s var(--ease);
}
.scene.active .scene-media {
  opacity: 1;
  transform: none;
  filter: none;
}

/* window chrome */
.window-chrome {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(18, 19, 26, 0.12);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.window-chrome:hover {
  box-shadow: 0 34px 80px rgba(18, 19, 26, 0.18);
  transform: translateY(-3px);
}
.window-chrome-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.window-chrome-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E3E3E0;
}
.window-chrome-bar span:nth-child(1) { background: #FF5F57; }
.window-chrome-bar span:nth-child(2) { background: #FEBC2E; }
.window-chrome-bar span:nth-child(3) { background: #28C840; }
.window-chrome img { width: 100%; display: block; border-radius: 0; }

/* info note after the cycle scenes */
.scene-note {
  max-width: var(--container);
  margin: 10px auto 0;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 18px rgba(18, 19, 26, 0.04);
}
.scene-note-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.35);
}
.scene-note p { color: var(--text-dim); font-size: .96rem; line-height: 1.6; }
@media (max-width: 560px) {
  .scene-note { align-items: flex-start; padding: 20px; }
  .scene-note p { font-size: .9rem; }
}

/* ===== Features ===== */
.features { padding: 130px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 10px rgba(18, 19, 26, 0.02);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--violet), var(--blue));
  opacity: 0;
  transition: opacity .35s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px rgba(18, 19, 26, 0.10);
}
.feature-card:hover .window-chrome {
  box-shadow: 0 18px 44px rgba(18, 19, 26, 0.14);
  transform: translateY(-2px);
}
.feature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(90,108,240,.12), rgba(124,92,255,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff;
}
.feature-tag { font-size: .68rem; letter-spacing: .12em; color: var(--text-faint); }
.feature-media .window-chrome { box-shadow: 0 12px 30px rgba(18, 19, 26, 0.08); }
.feature-card h4 {
  font-family: var(--font-d);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.feature-list li {
  font-size: .9rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--primary), var(--violet));
}

/* ===== Requirements ===== */
.requirements { padding: 60px 0; border-top: 1px solid var(--line); }
.req-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.req-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  color: var(--text-dim);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, color .3s;
}
.req-chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  color: var(--ink);
}
.req-check { color: var(--ok); font-weight: 600; }

/* ===== Dark CTA (Raycast) ===== */
.download {
  position: relative;
  margin: 110px 28px;
  border-radius: 30px;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  padding: 70px 0;
}
.download-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(600px 420px at 95% 10%, rgba(45, 212, 191, 0.24), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(59, 130, 246, 0.18), transparent 60%);
  animation: aurora 14s var(--ease) infinite alternate;
}
@keyframes aurora { to { opacity: .75; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .download-aurora { animation: none; } }

.download-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.dark-kicker {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--neon);
  border: 1px solid rgba(94, 234, 212, 0.32);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}
.download-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--on-dark);
}
.download-desc {
  color: var(--on-dark-dim);
  font-size: 1.03rem;
  max-width: 440px;
  margin-bottom: 34px;
}
.download-actions { display: flex; justify-content: flex-start; }
.download-copy { position: relative; z-index: 2; }

.download-reqs {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dl-req {
  font-size: .74rem;
  color: var(--on-dark-dim);
  padding: 7px 13px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.03);
}

/* console mock */
.download-console {
  border-radius: 18px;
  border: 1px solid var(--dark-line);
  background: rgba(10, 11, 16, 0.7);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: rotate(1.5deg);
  transition: transform .5s var(--ease);
}
.download-console:hover { transform: rotate(0) translateY(-4px); }
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dark-line);
  font-size: .78rem;
  color: var(--on-dark-dim);
}
.console-blink {
  color: var(--neon);
  animation: tpulse 1s steps(2) infinite;
}
.console-title { letter-spacing: .02em; }
.console-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; font-size: .84rem; color: #B6BCCD; }
.console-cursor {
  width: 8px; height: 15px;
  background: var(--neon);
  animation: tpulse 1s steps(2) infinite;
}
.c-path { color: var(--violet); }
.c-ok { color: var(--ok); }
.c-dim { color: var(--on-dark-dim); }
.c-neon { color: var(--neon); font-weight: 600; }

/* ===== FAQ ===== */
.faq { padding: 110px 0 120px; }
.faq-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item.open, .faq-item:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 34px rgba(18, 19, 26, 0.07);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  font-family: var(--font-d);
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform .3s var(--ease), color .3s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-item.open .faq-answer { max-height: 640px; }
.faq-answer p { padding: 0 22px 20px; color: var(--text-dim); font-size: .94rem; line-height: 1.65; }
.faq-dialog-list { list-style: none; padding: 0 22px 22px; }
.faq-dialog-list li { font-size: .94rem; color: var(--text-dim); padding: 4px 0 4px 18px; position: relative; }
.faq-dialog-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.faq-dialog-list li strong { color: var(--ink); font-weight: 600; }

/* ===== Final CTA ===== */
.final-cta {
  margin: 0 28px;
  border-radius: 30px;
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(90, 108, 240, 0.16), transparent 55%),
    radial-gradient(700px 400px at 20% 110%, rgba(59, 130, 246, 0.16), transparent 55%),
    var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  padding: 80px 0;
}
.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 34px;
}
.final-cta-title {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--on-dark);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-brand {
  font-family: var(--font-d);
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
footer p { color: var(--text-faint); font-size: .84rem; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .scene-sticky {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 70px 28px;
  }
  .scene-num { font-size: 1.6rem; }
  .scene-media { max-width: 520px; }
  .download-wrap { grid-template-columns: 1fr; gap: 44px; }
  .download-reqs, .download-desc { max-width: none; }
}

@media (max-width: 760px) {
  .header-inner { max-width: 100%; padding-right: 8px; }
  nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(18, 19, 26, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s var(--ease), opacity .2s;
    opacity: 0;
  }
  nav.open { transform: scaleY(1); opacity: 1; }
  nav a { display: block; padding: 13px 12px; font-size: .95rem; }
  nav a::after { display: none; }
  .header-cta { margin-right: 4px; }
  .burger { display: flex; }

  .hero { padding-top: 120px; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-actions .btn { width: 100%; }
  .hero-sub { padding: 0 8px; }
  .mesh-scope { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .scenes { padding: 90px 0 40px; }
  .features { padding: 90px 0; }
  .section-lead { margin-bottom: 40px; }

  .download, .final-cta { margin: 70px 16px; border-radius: 22px; padding: 48px 0; }
  .download-wrap, .final-cta-inner { padding: 0 10px; }
  .download-desc { font-size: 1rem; }
}
