:root {
  --ink: #0b0d0f;
  --panel: #111417;
  --panel-soft: #171b1e;
  --paper: #f1f0e9;
  --muted: #a2a59e;
  --line: rgba(241, 240, 233, 0.15);
  --orange: #ff6b35;
  --lime: #c8f135;
  --display: "Azeret Mono", "SFMono-Regular", Consolas, monospace;
  --body: "Manrope", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--lime);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(110px);
  opacity: .13;
  pointer-events: none;
}
.ambient-one { width: 460px; height: 460px; top: 180px; right: -180px; background: var(--orange); }
.ambient-two { width: 380px; height: 380px; top: 780px; left: -220px; background: #168fff; }

.site-header,
footer {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  align-items: end;
  gap: 3px;
  width: 31px;
  height: 31px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  transform: rotate(-4deg);
}
.brand-mark i { display: block; width: 6px; background: var(--paper); border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 17px; background: var(--orange); }
.brand-mark i:nth-child(3) { height: 12px; }
nav { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 600; }
nav a { color: #c8c9c4; transition: color .2s ease; }
nav a:hover { color: white; }
.nav-cta { padding: 12px 17px; border: 1px solid var(--line); border-radius: 999px; }

.hero { width: min(1400px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0 108px; }
.eyebrow, .section-index {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: #b8bab3; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px rgba(200,241,53,.85); }
.hero h1 {
  max-width: 1200px;
  margin: 34px 0 46px;
  font-family: var(--display);
  font-size: clamp(52px, 8.6vw, 132px);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.075em;
}
.hero h1 em, h2 em { color: var(--orange); font-style: normal; }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.hero-bottom > p { max-width: 620px; margin: 0; color: #afb1aa; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.6; }
.hero-actions { display: flex; justify-content: flex-end; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.button-secondary:hover { color: var(--ink); background: var(--paper); }

.product-stage { position: relative; margin-top: 92px; padding: 46px 42px 44px; background: #d6d5cd; color: var(--ink); }
.product-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  pointer-events: none;
  background-image: linear-gradient(rgba(11,13,15,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(11,13,15,.12) 1px, transparent 1px);
  background-size: 32px 32px;
}
.stage-label { position: absolute; z-index: 2; font-family: var(--display); font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.stage-label span { color: #777972; }
.stage-label-top { top: 17px; left: 19px; }
.stage-label-bottom { bottom: 16px; right: 20px; }
.stage-label-bottom span { color: #25a95b; }
.window-frame { position: relative; overflow: hidden; border: 1px solid #303238; border-radius: 13px; box-shadow: 0 34px 80px rgba(11,13,15,.35); background: #151719; }
.window-bar { display: flex; align-items: center; gap: 7px; height: 29px; padding: 0 12px; border-bottom: 1px solid #35373b; background: #202225; }
.window-bar span { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar b { margin-left: auto; color: #85878a; font-family: var(--display); font-size: 8px; font-weight: 500; }
.window-frame img { width: 100%; }

.ticker { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: var(--lime); }
.ticker div { display: flex; width: max-content; align-items: center; gap: 26px; animation: ticker 22s linear infinite; }
.ticker span { font-family: var(--display); font-size: 13px; font-weight: 700; }
.ticker i { font-style: normal; font-size: 9px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.debugger { padding: 150px 0 40px; }
.debugger-heading { display: grid; grid-template-columns: .65fr 1.4fr 1fr; gap: 50px; align-items: start; margin-bottom: 72px; }
.debugger-heading p { max-width: 430px; margin: 7px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.debugger-stage { position: relative; min-height: 760px; padding: 74px 7% 0; overflow: hidden; border: 1px solid var(--line); background: #c8f135; }
.debugger-stage::before { content: "EVENT STREAM / LOCAL ONLY"; position: absolute; top: 24px; left: 26px; color: rgba(11,13,15,.62); font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.debugger-stage::after { content: "78 EVENTS"; position: absolute; top: 24px; right: 26px; color: rgba(11,13,15,.62); font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.debugger-window { z-index: 2; height: 740px; transform: rotate(-1.2deg); border-color: #0b0d0f; border-radius: 20px 20px 0 0; box-shadow: 0 50px 100px rgba(11,13,15,.35); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.debugger-stage:hover .debugger-window { transform: rotate(0) translateY(-8px); }
.debugger-window img { height: 100%; object-fit: cover; object-position: top; }
.debugger-orbit { position: absolute; border: 1px solid rgba(11,13,15,.22); border-radius: 50%; }
.debugger-orbit-one { width: 520px; height: 520px; left: -260px; top: 120px; }
.debugger-orbit-two { width: 280px; height: 280px; right: -110px; bottom: -70px; }
.debugger-callout { position: absolute; z-index: 3; display: grid; gap: 4px; padding: 13px 16px; color: var(--paper); background: var(--ink); box-shadow: 8px 8px 0 rgba(11,13,15,.2); font-family: var(--display); }
.debugger-callout b { color: var(--lime); font-size: 9px; letter-spacing: .12em; }
.debugger-callout span { font-size: 10px; }
.debugger-callout-sent { left: 2.2%; top: 30%; transform: rotate(-5deg); }
.debugger-callout-received { right: 1.8%; bottom: 14%; transform: rotate(4deg); }
.debugger-details { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; padding: 110px 0; }
.debugger-kicker { color: var(--lime); font-family: var(--display); font-size: 10px; letter-spacing: .1em; }
.debugger-copy h3 { margin: 34px 0 24px; font-family: var(--display); font-size: clamp(29px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.055em; }
.debugger-copy > p { margin: 0 0 38px; color: var(--muted); line-height: 1.75; }
.debugger-copy ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.debugger-copy li { display: flex; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); color: #d0d2cb; font-size: 13px; }
.debugger-copy li span { color: var(--orange); font-family: var(--display); font-size: 9px; }
.raw-peek { position: relative; margin: 0; padding: 18px 18px 0; border: 1px solid var(--line); background: var(--panel); transform: rotate(1.2deg); box-shadow: 0 30px 70px rgba(0,0,0,.35); transition: transform .5s ease; }
.raw-peek:hover { transform: rotate(0) translateY(-5px); }
.raw-peek img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; border: 1px solid #34373a; }
.raw-peek figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 17px 2px 19px; color: var(--muted); font-size: 11px; }
.raw-peek figcaption span { color: var(--orange); font-family: var(--display); font-size: 9px; letter-spacing: .1em; }

.section-shell { width: min(1400px, calc(100% - 48px)); margin: 0 auto; }
.features { padding: 150px 0; }
.section-heading { display: grid; grid-template-columns: .65fr 1.4fr 1fr; gap: 50px; align-items: start; margin-bottom: 72px; }
.section-index { padding-top: 9px; color: var(--orange); }
h2 { margin: 0; font-family: var(--display); font-size: clamp(42px, 5vw, 74px); line-height: .98; letter-spacing: -.06em; }
.section-heading p { max-width: 420px; margin: 7px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card { position: relative; overflow: hidden; min-height: 650px; padding: 34px 34px 0; border: 1px solid var(--line); background: var(--panel); }
.feature-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: .7fr 1.3fr; min-height: 610px; padding-right: 0; }
.card-copy { position: relative; z-index: 2; max-width: 480px; }
.card-number { display: block; margin-bottom: 120px; color: var(--orange); font-family: var(--display); font-size: 10px; }
.feature-card-wide .card-number { margin-bottom: 150px; }
.card-copy h3 { margin: 0 0 15px; font-family: var(--display); font-size: clamp(27px, 3vw, 43px); line-height: 1.08; letter-spacing: -.05em; }
.card-copy p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.65; }
.image-well { position: absolute; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.image-well img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.feature-card:hover .image-well img { transform: scale(1.025); }
.image-well-projects { position: relative; align-self: end; height: 510px; border-right: 0; border-bottom: 0; }
.image-well-model { left: 34px; right: 34px; bottom: 0; height: 310px; border-bottom: 0; }
.feature-card-menu { background: #d7d6ce; color: var(--ink); }
.feature-card-menu .card-copy p { color: #545750; }
.menu-visual { position: absolute; right: 7%; bottom: -12%; width: 60%; transform: rotate(-4deg); filter: drop-shadow(0 25px 25px rgba(0,0,0,.25)); transition: transform .5s ease; }
.feature-card-menu:hover .menu-visual { transform: rotate(-1deg) translateY(-8px); }

.privacy { padding: 130px 0; border-top: 1px solid var(--line); }
.privacy-intro { display: grid; grid-template-columns: .65fr 2.4fr; gap: 50px; margin-bottom: 96px; }
.privacy-intro h2 { max-width: 850px; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-grid article { min-height: 300px; padding: 34px; border-right: 1px solid var(--line); }
.privacy-grid article:last-child { border: 0; }
.privacy-icon { display: block; margin-bottom: 82px; color: var(--lime); font-family: var(--display); font-size: 31px; }
.privacy-grid h3 { margin: 0 0 13px; font-family: var(--display); font-size: 20px; letter-spacing: -.04em; }
.privacy-grid p { max-width: 330px; margin: 0; color: var(--muted); line-height: 1.6; }
.privacy-path { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 24px; margin-top: 22px; padding: 22px 25px; border: 1px solid var(--line); background: var(--panel); }
.privacy-path span, .privacy-path button, .terminal button { font-family: var(--display); font-size: 9px; letter-spacing: .08em; }
.privacy-path span { color: var(--orange); }
.privacy-path code { overflow: hidden; color: #b9bbb5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.privacy-path button, .terminal button { cursor: pointer; color: var(--paper); border: 0; background: transparent; }
.privacy-path button:hover, .terminal button:hover { color: var(--lime); }

.install { padding: 40px 0 150px; }
.install-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 68px; color: var(--ink); background: var(--orange); }
.install-panel .section-index { color: var(--ink); opacity: .65; }
.install-panel h2 { margin-top: 42px; }
.install-panel h2 em { color: var(--paper); }
.install-panel p { max-width: 480px; margin: 30px 0 0; line-height: 1.6; }
.terminal { overflow: hidden; border: 1px solid #33383b; border-radius: 8px; color: var(--paper); background: #0e1113; box-shadow: 0 30px 60px rgba(41,20,10,.28); }
.terminal-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid #2b2e31; background: #1a1d1f; }
.terminal-bar span { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-bar b { margin-left: auto; color: #7f8383; font-family: var(--display); font-size: 9px; font-weight: 500; }
.terminal pre { overflow-x: auto; margin: 0; padding: 34px 28px 20px; color: #d1d2ce; font-family: var(--display); font-size: 11px; line-height: 2.15; }
.terminal code span { color: var(--lime); }
.terminal button { margin: 0 28px 25px; }

footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p { margin: 0; text-align: center; }
footer > div { display: flex; justify-content: flex-end; gap: 30px; }
footer a:hover { color: white; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
[data-reveal].revealed { opacity: 1; transform: none; }
.hero [data-reveal]:nth-child(2) { transition-delay: .08s; }
.hero [data-reveal]:nth-child(3) { transition-delay: .16s; }
.hero [data-reveal]:nth-child(4) { transition-delay: .25s; }

@media (max-width: 900px) {
  nav > a:not(.nav-cta) { display: none; }
  .hero { padding-top: 74px; }
  .hero-bottom, .debugger-heading, .section-heading, .privacy-intro, .install-panel { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .product-stage { padding: 36px 18px 34px; }
  .debugger-stage { min-height: 600px; padding: 68px 4% 0; }
  .debugger-window { height: 570px; }
  .debugger-details { grid-template-columns: 1fr; gap: 60px; }
  .feature-card-wide { grid-template-columns: 1fr; padding-right: 34px; }
  .image-well-projects { height: 330px; margin-top: 50px; border-right: 1px solid var(--line); }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .privacy-icon { margin-bottom: 42px; }
  footer { grid-template-columns: 1fr auto; row-gap: 24px; }
  footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (max-width: 640px) {
  .ambient { display: none; }
  .site-header, .hero, .section-shell, footer { width: min(100% - 28px, 1400px); }
  .site-header { height: 72px; }
  .brand > span:last-child { font-size: 10px; }
  .nav-cta { padding: 10px 12px; font-size: 10px; }
  .hero { padding: 64px 0 76px; }
  .hero h1 { margin: 28px 0 36px; font-size: clamp(44px, 14.2vw, 72px); }
  .hero-bottom { gap: 30px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .product-stage { margin-top: 64px; }
  .window-bar { display: none; }
  .window-frame { border-radius: 5px; }
  .features { padding: 100px 0; }
  .debugger { padding-top: 100px; }
  .debugger-heading { gap: 28px; margin-bottom: 48px; }
  .debugger-stage { min-height: 0; padding: 54px 12px 0; }
  .debugger-stage::before { top: 18px; left: 14px; }
  .debugger-stage::after { top: 18px; right: 14px; }
  .debugger-window { height: auto; transform: none; border-radius: 9px 9px 0 0; }
  .debugger-window img { height: auto; }
  .debugger-callout { display: none; }
  .debugger-details { padding: 72px 0; }
  .raw-peek { padding: 10px 10px 0; }
  .raw-peek figcaption { flex-direction: column; gap: 7px; }
  .section-heading { gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: auto; }
  .feature-card { min-height: 560px; padding: 25px 25px 0; }
  .feature-card-wide { min-height: 580px; padding-right: 25px; }
  .card-number, .feature-card-wide .card-number { margin-bottom: 70px; }
  .image-well-model { left: 25px; right: 25px; height: 250px; }
  .image-well-projects { height: 270px; }
  .menu-visual { width: 80%; }
  .privacy { padding: 96px 0; }
  .privacy-intro { gap: 28px; margin-bottom: 60px; }
  .privacy-path { grid-template-columns: 1fr auto; }
  .privacy-path code { grid-column: 1 / -1; grid-row: 2; }
  .install-panel { gap: 50px; padding: 38px 24px; }
  .terminal pre { padding: 24px 18px 15px; font-size: 9px; }
  .terminal button { margin-left: 18px; }
  footer > div { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
