:root {
  --bg: #02060d;
  --bg-2: #050b15;
  --panel: rgba(7, 17, 31, 0.72);
  --panel-solid: #07111f;
  --line: rgba(106, 181, 255, 0.14);
  --line-strong: rgba(83, 194, 255, 0.28);
  --text: #f3f8ff;
  --muted: #91a2b7;
  --cyan: #35c8ff;
  --cyan-2: #6edcff;
  --green: #78e7bd;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 30%, rgba(20, 80, 125, 0.08), transparent 28%),
    linear-gradient(180deg, #02060d 0%, #030914 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(53, 200, 255, 0.28); color: white; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-shell { position: relative; }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}
.site-header.scrolled {
  background: rgba(2, 7, 14, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skewY(-12deg); }
.brand-mark span { border: 1px solid rgba(82, 205, 255, 0.7); background: rgba(53, 200, 255, 0.08); box-shadow: 0 0 15px rgba(53, 200, 255, 0.08); }
.brand-mark span:nth-child(2) { transform: translateY(5px); background: rgba(53, 200, 255, 0.18); }
.brand-name { font-size: 16px; }
.site-nav { display: flex; align-items: center; gap: 32px; color: #b8c7d8; font-size: 14px; }
.site-nav a { position: relative; transition: color 180ms ease; }
.site-nav a:hover { color: white; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--cyan); transition: right 180ms ease; }
.site-nav a:hover::after { right: 0; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; position: relative; }
.nav-toggle span:not(.sr-only) { position: absolute; width: 22px; height: 1px; background: #eaf6ff; left: 10px; transition: transform 180ms ease, top 180ms ease; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 130px 24px 120px;
  background: #020813;
}
.hero-bg {
  position: absolute;
  z-index: -4;
  inset: -6% -4%;
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center center;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.08);
  will-change: transform;
  filter: saturate(0.96) brightness(0.88);
}
.hero-vignette {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1,5,10,0.33) 0%, rgba(1,5,10,0.02) 24%, rgba(1,5,10,0.05) 58%, rgba(1,5,10,0.92) 100%),
    radial-gradient(circle at center 48%, rgba(4, 18, 34, 0.04) 0, rgba(2, 7, 14, 0.14) 38%, rgba(1, 5, 11, 0.54) 100%);
}
.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.13;
  mask-image: linear-gradient(to bottom, transparent 10%, black 58%, transparent 96%);
  background-image: linear-gradient(rgba(64, 174, 226, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 174, 226, 0.12) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(700px) rotateX(68deg) translateY(38%);
  transform-origin: center bottom;
}
.hero-content { width: min(900px, 100%); text-align: center; margin-top: -2vh; }
.eyebrow, .kicker { color: var(--cyan-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(89, 203, 255, 0.2); background: rgba(2, 9, 18, 0.35); backdrop-filter: blur(8px); border-radius: 999px; margin-bottom: 24px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { margin: 0; font-size: clamp(56px, 8.2vw, 118px); line-height: 0.92; letter-spacing: -0.065em; text-shadow: 0 8px 50px rgba(0,0,0,0.5); }
.hero-copy { max-width: 720px; margin: 30px auto 0; color: #b8c8d9; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.62; text-wrap: balance; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 4px; font-size: 14px; font-weight: 700; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #00111c; background: linear-gradient(135deg, #58d4ff, #19aee8); box-shadow: 0 10px 35px rgba(27, 180, 234, 0.16); }
.button-primary:hover { box-shadow: 0 14px 42px rgba(27, 180, 234, 0.25); }
.button-secondary { border: 1px solid rgba(129, 202, 234, 0.24); background: rgba(4, 12, 23, 0.45); color: #dbeeff; backdrop-filter: blur(8px); }
.button-secondary:hover { border-color: rgba(129, 202, 234, 0.5); background: rgba(6, 19, 35, 0.68); }

.hero-readout { position: absolute; bottom: 38px; left: clamp(24px, 5vw, 72px); display: flex; gap: 1px; border: 1px solid var(--line); background: rgba(2, 8, 15, 0.42); backdrop-filter: blur(9px); }
.hero-readout > div { min-width: 178px; padding: 14px 18px 13px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; column-gap: 9px; }
.hero-readout > div:last-child { border-right: 0; }
.hero-readout span { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; grid-row: 1 / 3; }
.hero-readout strong { font-size: 10px; letter-spacing: 0.12em; }
.hero-readout small { color: #6f8398; font-size: 9px; white-space: nowrap; }
.scroll-cue { position: absolute; right: clamp(24px, 5vw, 72px); bottom: 38px; color: #7f94aa; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; display: flex; align-items: center; gap: 13px; }
.scroll-cue i { position: relative; display: block; width: 38px; height: 1px; background: rgba(118, 177, 207, 0.35); }
.scroll-cue i::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-right: 1px solid var(--cyan); border-bottom: 1px solid var(--cyan); transform: rotate(45deg); }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 122px 0; }
.section-heading { max-width: 760px; margin-bottom: 56px; }
.section-heading.split { max-width: none; display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: end; }
.section-heading .kicker, .closing-cta .kicker { margin: 0 0 14px; }
.section-heading h2, .closing-cta h2, .tool-copy h2 { margin: 0; font-size: clamp(38px, 5vw, 70px); letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
.section-heading > p:not(.kicker), .section-heading.split > p { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 24px 0 0; }
.section-heading.split > p { margin: 0; }

.section-process { position: relative; }
.section-process::before { content: ""; position: absolute; width: 520px; height: 520px; left: -25%; top: 12%; background: radial-gradient(circle, rgba(30, 156, 215, 0.08), transparent 68%); pointer-events: none; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-card { position: relative; min-height: 330px; padding: 32px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(7, 17, 31, 0.72), rgba(4, 11, 20, 0.5)); overflow: hidden; transition: border-color 220ms ease, transform 220ms ease; }
.process-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.process-card::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(53, 200, 255, 0.5), transparent); opacity: 0; transition: opacity 220ms ease; }
.process-card:hover::after { opacity: 1; }
.card-number { position: absolute; right: 22px; top: 20px; color: #3f5368; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.process-card h3 { font-size: 25px; margin: 27px 0 13px; }
.process-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
.icon { width: 54px; height: 54px; position: relative; border: 1px solid rgba(74, 192, 243, 0.22); background: rgba(22, 133, 185, 0.04); }
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-build::before { left: 12px; right: 12px; top: 17px; height: 1px; background: var(--cyan); box-shadow: 0 8px 0 rgba(53, 200, 255, 0.55), 0 16px 0 rgba(53, 200, 255, 0.24); }
.icon-build::after { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); left: 22px; top: 15px; box-shadow: 10px 8px 0 rgba(53,200,255,.65), -7px 16px 0 rgba(53,200,255,.4); }
.icon-test::before { inset: 12px; border: 1px solid rgba(53, 200, 255, 0.55); clip-path: polygon(0 100%, 0 55%, 28% 55%, 28% 28%, 62% 28%, 62% 7%, 100% 7%, 100% 100%); }
.icon-test::after { width: 18px; height: 1px; background: var(--cyan); left: 20px; top: 39px; transform: rotate(-28deg); box-shadow: 8px -8px 0 -0.4px rgba(53,200,255,.65); }
.icon-verify::before { width: 24px; height: 13px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); left: 13px; top: 14px; }
.icon-verify::after { inset: 7px; border: 1px solid rgba(53,200,255,.12); border-radius: 50%; }

.section-experiments { padding-top: 80px; }
.experiment-grid { display: grid; grid-template-columns: 1.25fr 0.875fr; gap: 16px; }
.experiment-card { position: relative; min-height: 330px; border: 1px solid var(--line); background: rgba(6, 15, 27, 0.64); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.experiment-card.featured { grid-row: span 2; min-height: 676px; }
.experiment-meta { display: flex; justify-content: space-between; gap: 16px; color: #667b90; text-transform: uppercase; letter-spacing: 0.1em; font-size: 9px; }
.pill { display: inline-flex; align-items: center; width: fit-content; min-height: 23px; padding: 0 9px; border: 1px solid rgba(118, 181, 213, 0.17); color: #a6bbcc; }
.pill.live { color: #86dfc3; border-color: rgba(89, 219, 177, 0.2); }
.pill.live::before { content: ""; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #68dcb6; box-shadow: 0 0 8px rgba(104, 220, 182, 0.7); }
.experiment-copy { position: relative; z-index: 2; }
.project-code { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: 0.1em; margin: 0 0 9px; }
.experiment-copy h3 { font-size: clamp(28px, 4vw, 50px); letter-spacing: -0.035em; margin: 0 0 12px; }
.experiment-card:not(.featured) .experiment-copy h3 { font-size: 31px; }
.experiment-copy > p:not(.project-code) { color: var(--muted); max-width: 600px; line-height: 1.67; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { padding: 6px 9px; border: 1px solid rgba(103, 168, 197, 0.13); color: #70869a; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; }
.experiment-visual { position: absolute; z-index: 1; inset: 68px 26px 210px; opacity: 0.58; }
.visual-sniper { background-image: linear-gradient(rgba(74, 177, 220, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 177, 220, 0.07) 1px, transparent 1px); background-size: 40px 40px; border-left: 1px solid rgba(53,200,255,.08); border-bottom: 1px solid rgba(53,200,255,.08); }
.chart-line { position: absolute; left: 5%; right: 4%; top: 48%; height: 2px; transform: skewY(-4deg) rotate(-7deg); background: linear-gradient(90deg, transparent 0%, rgba(53,200,255,.3) 8%, #35c8ff 48%, rgba(53,200,255,.35) 82%, transparent 100%); box-shadow: 0 0 18px rgba(53,200,255,.18); }
.chart-line::before, .chart-line::after { content:""; position:absolute; height:2px; background:inherit; }
.chart-line::before { width: 35%; left: 17%; top: -38px; transform: rotate(17deg); }
.chart-line::after { width: 29%; right: 14%; top: 34px; transform: rotate(-18deg); }
.signal { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px rgba(53,200,255,.7); }
.signal::after { content:""; position:absolute; width:1px; height:58px; background:linear-gradient(var(--cyan), transparent); left:3px; top:6px; }
.signal-a { left: 26%; top: 35%; }.signal-b { left: 57%; top: 42%; }.signal-c { left: 76%; top: 23%; }

.section-tools { width: 100%; max-width: none; padding: 110px 24px; border-top: 1px solid rgba(110, 178, 211, 0.08); border-bottom: 1px solid rgba(110, 178, 211, 0.08); background: linear-gradient(180deg, rgba(5, 14, 26, 0.65), rgba(3, 9, 17, 0.36)); }
.tool-panel { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 80px; align-items: center; }
.tool-copy .kicker { margin: 0 0 14px; }
.tool-copy p:not(.kicker) { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 510px; margin: 24px 0 0; }
.terminal { border: 1px solid rgba(100, 183, 222, 0.18); background: #030a12; box-shadow: 0 24px 80px rgba(0,0,0,.32); }
.terminal-top { height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(93, 167, 201, 0.12); }
.terminal-top > span { width: 6px; height: 6px; border-radius: 50%; background: #244054; }
.terminal-top small { margin-left: auto; color: #4f6a7e; letter-spacing: 0.16em; font-size: 8px; }
.terminal-body { min-height: 290px; padding: 26px 26px 32px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #7f98ac; position: relative; }
.terminal-body p { margin: 0 0 20px; }
.terminal-body b { color: var(--cyan); margin-right: 10px; }.terminal-body span { color: #a9c1d3; }.terminal-body .cyan { color: var(--cyan); }.terminal-body .green { color: var(--green); }
.terminal-cursor { width: 7px; height: 14px; background: rgba(75, 210, 255, 0.8); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.section-principles { padding-bottom: 80px; }
.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { min-height: 240px; padding: 31px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.principle span { position: absolute; top: 27px; right: 28px; color: #3e566b; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.principle h3 { margin: 50px 0 12px; font-size: 22px; }.principle p { color: var(--muted); margin: 0; line-height: 1.7; max-width: 460px; }

.closing-cta { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 90px 0 130px; text-align: center; position: relative; }
.closing-cta::before { content:""; position:absolute; width: min(760px, 90vw); height: 420px; left:50%; top:10%; transform:translateX(-50%); background:radial-gradient(circle, rgba(34, 163, 219, 0.11), transparent 66%); pointer-events:none; }
.closing-cta h2 { max-width: 800px; margin: 0 auto 32px; position: relative; }
.closing-cta .button { position: relative; }

.site-footer { min-height: 120px; padding: 30px clamp(24px, 5vw, 72px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; color: #556c80; font-size: 11px; }
.site-footer div { display: flex; align-items: center; gap: 14px; }.site-footer strong { color: #b8c8d6; }.site-footer div span { color: #52687b; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-nav { position: fixed; inset: 76px 0 auto; padding: 20px 24px 28px; background: rgba(2,7,14,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); display: grid; gap: 18px; transform: translateY(-140%); transition: transform 220ms ease; }
  .site-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }
  .hero-readout { display: none; }
  .scroll-cue { left: 50%; right: auto; transform: translateX(-50%); }
  .section-heading.split, .tool-panel { grid-template-columns: 1fr; gap: 32px; }
  .section-heading.split > p { max-width: 620px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 260px; }
  .experiment-grid { grid-template-columns: 1fr; }
  .experiment-card.featured { grid-row: auto; min-height: 590px; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 620px) {
  .site-header { height: 68px; padding: 0 18px; }.site-nav { inset: 68px 0 auto; }.brand-name { font-size: 15px; }
  .hero { padding: 110px 18px 105px; min-height: 780px; }
  .hero h1 { font-size: clamp(54px, 18vw, 86px); }
  .hero-copy { font-size: 16px; }
  .hero-actions { display: grid; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
  .section { width: min(100% - 36px, var(--max)); padding: 88px 0; }
  .section-heading { margin-bottom: 38px; }.section-heading > p:not(.kicker), .section-heading.split > p { font-size: 16px; }
  .process-card, .experiment-card, .principle { padding: 24px; }
  .experiment-card.featured { min-height: 520px; }
  .experiment-visual { inset: 70px 20px 230px; }
  .section-tools { padding: 82px 18px; }.terminal-body { padding: 22px 18px; font-size: 10px; }
  .principles-grid { grid-template-columns: 1fr; }
  .closing-cta { width: calc(100% - 36px); padding: 72px 0 100px; }
  .site-footer { padding: 28px 18px; }.site-footer div { flex-direction: column; align-items: flex-start; gap: 2px; }
}

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