:root {
  color-scheme: dark;
  --void: #08090d;
  --surface: #11121a;
  --surface-raised: #171824;
  --ink: #f5f4ff;
  --muted: #a7a4b8;
  --line: #2b2d3c;
  --violet: #8167ff;
  --violet-bright: #a18cff;
  --violet-wash: #2b2458;
  --signal: #67f59a;
  --display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(129, 103, 255, 0.14), transparent 27rem),
    var(--void);
  color: var(--ink);
  font: 16px/1.6 var(--body);
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
::selection { background: var(--violet); color: white; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  transform: translateY(-160%);
  background: var(--signal);
  color: var(--void);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.signal-field {
  position: absolute;
  inset: 0 0 auto;
  height: 780px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.23;
  mask-image: linear-gradient(to bottom, black 5%, transparent 92%);
}
.signal-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 103, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 103, 255, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
}
.signal-field span {
  position: absolute;
  top: -160px;
  color: var(--signal);
  font: 12px/1.9 var(--mono);
  writing-mode: vertical-rl;
  text-shadow: 0 0 10px rgba(103, 245, 154, 0.75);
  animation: signal-fall var(--duration, 15s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes signal-fall { to { transform: translateY(960px); } }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; }
.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(129,103,255,0.28));
}
.site-header nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 700; }
.site-header nav a:hover { color: var(--ink); }
.nav-source { padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; }

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 690px;
  margin: 0 auto;
  padding: 78px 0 88px;
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--violet-bright);
  font: 700 12px/1.2 var(--mono);
  letter-spacing: 0.14em;
}
.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.02; letter-spacing: -0.045em; }
h1 { max-width: 690px; font-size: clamp(52px, 6.2vw, 92px); }
h1 em { color: var(--violet-bright); font-style: normal; }
.lede { max-width: 610px; margin: 28px 0 0; color: #c2bfce; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--violet); color: white; box-shadow: 0 10px 32px rgba(79, 56, 195, 0.28); }
.button-primary:hover { background: var(--violet-bright); color: var(--void); }
.button-secondary { border-color: var(--line); background: rgba(17,18,26,0.72); }
.button-secondary:hover { border-color: var(--violet); }
.install-note { margin: 15px 0 0; color: var(--muted); font: 12px var(--mono); }

.demo-wrap { position: relative; transform: rotate(1.3deg); }
.demo-wrap::before {
  content: "";
  position: absolute;
  inset: 28px -24px -28px 28px;
  z-index: -1;
  border: 1px solid rgba(103,245,154,0.22);
  background-image: radial-gradient(rgba(103,245,154,0.22) 1px, transparent 1px);
  background-size: 15px 15px;
}
.demo-label { display: flex; justify-content: space-between; margin: 0 6px 8px; color: var(--muted); font: 10px var(--mono); letter-spacing: 0.08em; }
.demo-label span:last-child { color: var(--signal); }
.browser-demo { overflow: hidden; border: 1px solid #494b60; border-radius: 13px; background: #0d0e14; box-shadow: 0 36px 90px rgba(0,0,0,0.45); }
.browser-bar { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 11px 13px; border-bottom: 1px solid var(--line); background: #171821; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #4c4d5b; }
.window-dots i:first-child { background: var(--violet); }
.address { overflow: hidden; padding: 7px 12px; border: 1px solid #303240; border-radius: 7px; color: #77798a; background: #0e0f15; font: 11px var(--mono); }
.mode-switch { display: flex; padding: 3px; border: 1px solid #343646; border-radius: 7px; }
.mode-switch button { width: 31px; height: 26px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #7f8191; cursor: pointer; }
.mode-switch button.is-active { background: var(--violet-wash); color: var(--ink); }
.browser-stage { display: grid; grid-template-rows: auto 1fr; min-height: 320px; }
.tab-list { display: flex; gap: 5px; padding: 11px 11px 0; border-bottom: 1px solid #242633; }
.demo-tab {
  min-width: 0;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #171821;
  color: #8d8e9d;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}
.demo-tab span { margin-right: 7px; color: #565867; font: 9px var(--mono); }
.demo-tab.is-active { border-color: var(--violet); background: #292343; color: white; box-shadow: inset 0 2px var(--violet-bright); }
.browser-demo.is-vertical .browser-stage { grid-template-columns: 132px 1fr; grid-template-rows: 1fr; }
.browser-demo.is-vertical .tab-list { flex-direction: column; gap: 5px; padding: 11px 0 11px 11px; border-right: 1px solid #242633; border-bottom: 0; }
.browser-demo.is-vertical .demo-tab { width: 100%; border: 1px solid transparent; border-right: 0; border-radius: 7px 0 0 7px; text-align: left; }
.browser-demo.is-vertical .demo-tab.is-active { border-color: var(--violet); box-shadow: inset 2px 0 var(--violet-bright); }
.page-ghost { padding: 48px 34px; background: radial-gradient(circle at 75% 10%, rgba(129,103,255,0.08), transparent 45%); }
.ghost-title { width: 42%; height: 15px; margin-bottom: 26px; background: #333543; }
.ghost-line { width: 62%; height: 7px; margin: 11px 0; background: #20222d; }
.ghost-line.wide { width: 88%; }
.ghost-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-top: 35px; }
.ghost-grid i { height: 72px; border: 1px solid #282a37; background: #15161e; }
.command-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.command-row button { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(17,18,26,0.9); color: var(--muted); font-size: 10px; cursor: pointer; }
.command-row button:hover { border-color: var(--violet); color: white; }
kbd { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #5b5d70; border-radius: 5px; background: #20212c; color: white; box-shadow: 0 2px #08090d; font: 14px var(--mono); }

.proof-strip { display: grid; grid-template-columns: repeat(3,1fr); width: min(1180px, calc(100% - 40px)); margin: 0 auto; border-block: 1px solid var(--line); }
.proof-strip p { margin: 0; padding: 20px 24px; color: #c8c5d2; font-size: 13px; }
.proof-strip p + p { border-left: 1px solid var(--line); }
.proof-strip span { margin-right: 16px; color: var(--signal); font: 10px var(--mono); }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 130px 0; }
.features { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(50px, 9vw, 120px); align-items: start; }
.section h2 { font-size: clamp(42px, 5vw, 68px); }
.section-intro > p:last-child, .privacy-copy > p { max-width: 460px; margin: 26px 0 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.feature-card { position: relative; min-height: 235px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.feature-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -50px; bottom: -50px; border: 1px solid rgba(129,103,255,0.35); transform: rotate(45deg); }
.feature-card.feature-primary { grid-column: 1 / -1; min-height: 280px; background: linear-gradient(135deg, #19152d, #11121a 60%); }
.feature-icon { display: inline-flex; margin-bottom: 38px; color: var(--signal); font: 13px var(--mono); }
.feature-card h3 { font-size: 26px; }
.feature-card p { max-width: 520px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.axis-visual { position: absolute; right: 32px; bottom: 32px; display: flex; gap: 7px; align-items: flex-end; }
.axis-visual span { width: 15px; height: 48px; border: 1px solid var(--violet); background: rgba(129,103,255,0.12); }
.axis-visual span:nth-child(2) { height: 76px; background: var(--violet); box-shadow: 0 0 22px rgba(129,103,255,0.4); }
.axis-visual span:nth-child(3) { height: 60px; }
.axis-visual span:nth-child(4) { height: 34px; }

.privacy { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(50px, 9vw, 120px); align-items: center; border-top: 1px solid var(--line); }
.privacy-terminal { border: 1px solid #343646; border-radius: 11px; background: #0c0d12; box-shadow: 18px 18px 0 #161225; }
.terminal-head { display: flex; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid #2b2d38; color: #838595; font: 10px var(--mono); }
.terminal-head span:last-child { color: var(--signal); }
.terminal-body { padding: 25px; font: 13px/1.8 var(--mono); }
.terminal-body p { display: flex; margin: 5px 0; color: #858797; }
.terminal-body strong { margin-left: auto; color: #d8d6e2; font-weight: 500; }
.prompt { margin-right: 12px; color: var(--violet-bright); }
.terminal-body .terminal-ok { margin-top: 20px; padding-top: 17px; border-top: 1px solid #252631; color: var(--signal); }
.privacy-copy { order: 2; }
.text-link { display: inline-flex; gap: 12px; margin-top: 28px; color: var(--violet-bright); font-weight: 800; }
.text-link:hover { color: var(--signal); }

.final-cta { display: flex; align-items: end; justify-content: space-between; gap: 60px; border-top: 1px solid var(--line); }
.final-actions { text-align: right; }
.final-actions p { margin: 14px 0 0; color: var(--muted); font: 11px var(--mono); }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); }
footer p { text-align: center; }
footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
footer a:hover { color: var(--ink); }

.legal-main { width: min(760px, calc(100% - 40px)); min-height: calc(100vh - 190px); margin: 0 auto; padding: 100px 0 130px; }
.legal-main h1 { font-size: clamp(48px, 8vw, 76px); }
.legal-copy { margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--line); }
.legal-copy h2 { margin: 36px 0 14px; font-size: 22px; letter-spacing: -0.02em; }
.legal-copy address, .legal-copy p { margin: 0; color: var(--muted); font-style: normal; }
.legal-copy p + p { margin-top: 16px; }
.legal-copy a { color: var(--violet-bright); }
.legal-copy a:hover { color: var(--signal); }
.legal-copy .legal-updated { margin-top: 36px; font: 12px var(--mono); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  .demo-wrap { width: min(680px, 100%); margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .section-intro > p:last-child { max-width: 620px; }
}

@media (max-width: 700px) {
  .site-header { width: min(100% - 28px, 1180px); }
  .site-header nav a:not(.nav-source) { display: none; }
  .site-header nav { gap: 0; }
  .hero, .section, .proof-strip, footer { width: min(100% - 28px, 1180px); }
  .hero { min-height: 0; padding: 62px 0 72px; }
  h1 { font-size: clamp(47px, 15vw, 68px); }
  .lede { font-size: 17px; }
  .demo-wrap { transform: none; }
  .demo-wrap::before { inset: 18px -8px -16px 18px; }
  .browser-bar { grid-template-columns: 54px 1fr auto; gap: 7px; }
  .browser-stage { min-height: 280px; }
  .tab-list { overflow: hidden; }
  .demo-tab { flex: 0 0 auto; max-width: 105px; }
  .command-row { grid-template-columns: repeat(2,1fr); }
  .command-row button { font-size: 11px; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip p + p { border-top: 1px solid var(--line); border-left: 0; }
  .section { padding: 92px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.feature-primary { grid-column: auto; }
  .axis-visual { opacity: 0.45; }
  .privacy { grid-template-columns: 1fr; }
  .privacy-copy { order: -1; }
  .privacy-terminal { box-shadow: 9px 9px 0 #161225; }
  .final-cta { align-items: start; flex-direction: column; }
  .final-actions { text-align: left; }
  footer { grid-template-columns: 1fr; }
  footer p { text-align: left; }
  footer > div { justify-content: flex-start; }
  .legal-main { width: min(100% - 28px, 760px); padding: 72px 0 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
