:root {
  --ink: #f3f5f7;
  --muted: #97a4b1;
  --background: #050a10;
  --background-deep: #03070b;
  --surface: #0b131d;
  --surface-2: #101b27;
  --line: rgba(146, 167, 185, 0.18);
  --blue: #43aef5;
  --teal: #2ed9ca;
  --amber: #ff9d19;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
  --shell: min(1180px, calc(100vw - 48px));
  --header-height: 76px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(32, 75, 112, 0.11), transparent 34rem),
    linear-gradient(180deg, var(--background) 0%, var(--background-deep) 100%);
  color: var(--ink);
  min-width: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.shell { width: var(--shell); margin-inline: auto; }
section[id] { scroll-margin-top: 88px; }
.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;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  transform: translateY(-140%); padding: 10px 14px;
  background: var(--ink); color: var(--background); border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.ambient__wash { position: absolute; width: 42vw; aspect-ratio: 1; border-radius: 50%; filter: blur(100px); opacity: .055; will-change: transform; }
.ambient__wash--blue { background: var(--blue); left: -22vw; top: 20vh; }
.ambient__wash--teal { background: var(--teal); right: -25vw; top: 90vh; }
.ambient__wash--amber { background: var(--amber); left: 45vw; top: 175vh; opacity: .035; }
.ambient__grain {
  position: absolute; inset: -50%; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1240px, calc(100vw - 36px)); height: var(--header-height); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 16, .72); backdrop-filter: blur(18px) saturate(1.25);
  transition: height .25s ease, background .25s ease;
}
.site-header.is-scrolled { height: 64px; background: rgba(5, 10, 16, .9); }
.wordmark { font-size: 1rem; font-weight: 700; letter-spacing: .31em; }
.site-nav { display: flex; align-items: center; gap: 36px; color: #b8c1ca; font-size: .84rem; }
.site-nav > a:not(.button) { transition: color .2s ease; }
.site-nav > a:not(.button):hover, .site-nav > a:not(.button):focus-visible { color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink); }
.nav-toggle span:not(.sr-only) { display: block; width: 23px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .2s ease; }

.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  border: 1px solid var(--blue); padding: 0 23px; color: var(--ink); background: transparent;
  font-size: .84rem; font-weight: 650; letter-spacing: .01em; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .site-nav a:focus-visible, input:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.button--primary { border-color: var(--blue); background: var(--blue); color: #03101a; }
.button--primary:hover { background: #83cbfb; border-color: #83cbfb; }
.button--outline:hover { background: rgba(67, 174, 245, .1); }
.button--compact { min-height: 40px; padding-inline: 18px; }
.text-link { color: var(--blue); font-size: .88rem; padding: 12px 0; }
.text-link span { display: inline-block; margin-left: 10px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.hero { padding: clamp(58px, 7vw, 92px) 0 118px; }
.hero__copy { max-width: 620px; text-align: left; margin: 0; }
.hero h1 { margin: 0; font-size: clamp(3.3rem, 5vw, 5rem); line-height: .98; letter-spacing: -.052em; font-weight: 580; }
.hero__copy > p { margin: 24px 0 0; max-width: 520px; color: #aeb9c3; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.6; }
.actions { display: flex; align-items: center; justify-content: flex-start; gap: 34px; margin-top: 30px; }
.hero__product { margin-top: clamp(54px, 6vw, 76px); will-change: transform; }
.product-frame { position: relative; border: 1px solid rgba(143, 163, 181, .25); background: #05090f; box-shadow: var(--shadow); }
.product-frame::before {
  content: ""; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--blue), var(--teal) 50%, var(--amber)); height: 2px;
}
.product-frame img { width: 100%; }
.product-frame__edge { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 45px rgba(3, 7, 11, .16); }

.signal { padding: 135px 0 118px; border-top: 1px solid var(--line); }
.section-heading { text-align: center; }
.section-heading > span { color: var(--teal); text-transform: uppercase; letter-spacing: .22em; font-size: .7rem; font-weight: 700; }
.section-heading h2 { margin: 14px 0 0; font-size: clamp(2.4rem, 5vw, 4.9rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 560; }
.signal-flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 92px; }
.signal-line { position: absolute; left: 9%; right: 9%; top: 244px; height: 2px; z-index: -1; background: rgba(148, 168, 184, .12); }
.signal-line span { display: block; width: var(--signal-progress, 0%); height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal) 52%, var(--amber)); box-shadow: 0 0 20px rgba(46, 217, 202, .28); transition: width .08s linear; }
.stage { min-width: 0; text-align: center; will-change: transform; }
.stage__visual {
  height: 480px; margin-inline: auto; border: 1px solid var(--line); background-image: url("assets/buscraft-ui-reference.png"); background-repeat: no-repeat;
  background-color: var(--surface); box-shadow: 0 22px 50px rgba(0,0,0,.35); position: relative;
}
.stage__visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 28px rgba(0,0,0,.3); }
.stage__visual--compressor { width: 172px; background-size: auto 100%; background-position: left top; border-top: 2px solid var(--blue); }
.stage__visual--equaliser { width: min(100%, 360px); background-size: auto 100%; background-position: center top; border-top: 2px solid var(--teal); }
.stage__visual--saturator { width: 172px; background-size: auto 100%; background-position: right top; border-top: 2px solid var(--amber); }
.stage__copy { margin: 30px auto 0; max-width: 270px; }
.stage__number { display: block; margin-bottom: 10px; font-size: .7rem; letter-spacing: .25em; font-weight: 700; color: var(--muted); }
.stage h3 { margin: 0; font-size: 1.3rem; }
.stage p { color: var(--muted); line-height: 1.65; font-size: .92rem; }
.stage--compressor h3 { color: var(--blue); }
.stage--equaliser h3 { color: var(--teal); }
.stage--saturator h3 { color: var(--amber); }

.principles { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.principle { text-align: center; padding: 66px 42px 72px; }
.principle + .principle { border-left: 1px solid var(--line); }
.principle svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; margin-bottom: 18px; }
.principle:nth-of-type(1) { color: var(--blue); }
.principle:nth-of-type(2) { color: var(--teal); }
.principle:nth-of-type(3) { color: var(--amber); }
.principle h3 { margin: 0; color: var(--ink); font-size: 1.08rem; }
.principle p { max-width: 270px; margin: 13px auto 0; color: var(--muted); line-height: 1.65; font-size: .88rem; }

.updates { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; padding-block: 100px; }
.updates h2 { margin: 0; font-size: clamp(2.2rem, 4.3vw, 4.2rem); line-height: 1; letter-spacing: -.045em; font-weight: 560; }
.updates > div > p { color: var(--muted); margin: 18px 0 0; }
.signup { display: grid; grid-template-columns: 1fr auto; position: relative; }
.signup input { min-width: 0; height: 50px; padding: 0 18px; border: 1px solid #344250; background: #08111a; color: var(--ink); border-radius: 0; }
.signup .button { min-height: 50px; }
.signup__note,
.signup__status { grid-column: 1 / -1; margin: 10px 0 0; font-size: .78rem; line-height: 1.5; }
.signup__note { color: var(--muted); }
.signup__status { min-height: 1.5em; color: var(--teal); }

.site-footer { min-height: 92px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .78rem; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--ink); letter-spacing: .22em; font-size: .75rem; }
.site-footer__links { display: flex; gap: 38px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.75,.25,1), transform .8s cubic-bezier(.2,.75,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); }
  .site-header { width: calc(100vw - 28px); }
  .site-nav { gap: 22px; }
  .signal-flow { gap: 20px; }
  .stage__visual { height: 360px; }
  .stage__visual--compressor, .stage__visual--saturator { width: 129px; }
  .stage__visual--equaliser { width: min(100%, 270px); }
  .signal-line { top: 182px; }
  .principle { padding-inline: 22px; }
  .updates { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  :root { --header-height: 66px; --shell: calc(100vw - 28px); }
  .site-header { width: calc(100vw - 28px); }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 18px;
    display: grid; gap: 0; background: rgba(5, 10, 16, .98); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav > a { padding: 15px 8px; }
  .site-nav .button { margin-top: 8px; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .hero h1 br { display: none; }
  .hero__copy { text-align: left; }
  .hero__copy > p { margin-left: 0; }
  .actions { justify-content: flex-start; align-items: stretch; flex-direction: column; gap: 12px; }
  .actions .button { width: 100%; }
  .text-link { width: fit-content; }
  .hero__product { margin-top: 56px; }
  .product-frame { margin-inline: -5px; }
  .signal { padding: 88px 0 80px; }
  .section-heading { text-align: left; }
  .signal-flow { grid-template-columns: 1fr; gap: 78px; margin-top: 58px; }
  .signal-line { left: 15px; right: auto; top: 15px; bottom: 15px; width: 2px; height: auto; }
  .signal-line span { width: 100%; height: var(--signal-progress, 0%); background: linear-gradient(var(--blue), var(--teal) 52%, var(--amber)); }
  .stage { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 18px; align-items: center; text-align: left; padding-left: 34px; }
  .stage__visual { height: 330px; }
  .stage__visual--compressor, .stage__visual--saturator { width: 118px; }
  .stage__visual--equaliser { width: min(100%, 248px); }
  .stage__copy { margin: 0; }
  .stage__copy p { font-size: .84rem; }
  .principles { grid-template-columns: 1fr; }
  .principle { padding: 48px 24px; }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--line); }
  .updates { gap: 36px; padding-block: 78px; }
  .signup { grid-template-columns: 1fr; gap: 10px; }
  .signup__note, .signup__status { grid-column: 1; margin-top: 2px; }
  .site-footer { padding-block: 30px; gap: 28px; flex-direction: column; align-items: flex-start; }
  .site-footer__links { width: 100%; justify-content: space-between; gap: 12px; }
}

@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-parallax] { translate: none !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}
