:root {
  color-scheme: dark;
  --page-width: 1440px;
  --content-width: 1240px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --font-body: "Loop Onest", system-ui, sans-serif;
  --font-display: "Loop Onest", system-ui, sans-serif;
  --font-mono: "Loop JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--loop-color-background);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--loop-color-background);
  color: var(--loop-color-text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 420;
  font-feature-settings: normal;
  letter-spacing: -0.005em;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a, button, input[type="checkbox"], label[for] { cursor: pointer; }
a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
iframe:focus-visible {
  outline: var(--loop-focus-width) solid var(--loop-color-interactive-focus);
  outline-offset: var(--loop-focus-offset);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--loop-radius-control);
  background: var(--loop-color-live);
  color: var(--loop-color-background);
  font-family: var(--font-mono);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: min(100%, var(--page-width));
  min-height: 80px;
  margin: 0 auto;
  padding: 12px var(--page-gutter);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--loop-color-border-soft);
  background: rgb(10 16 32 / 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  width: 116px;
  color: var(--loop-color-text);
  transition: color var(--loop-duration-quick) ease;
}

.brand-logo {
  display: block;
  width: 100%;
  aspect-ratio: 208 / 128;
  background: currentColor;
  -webkit-mask: url("assets/brand/logos/loop-word.svg") center / contain no-repeat;
  mask: url("assets/brand/logos/loop-word.svg") center / contain no-repeat;
}

.brand:hover { color: var(--loop-color-live); }

nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
nav a {
  color: var(--loop-color-text-muted);
  font-size: 14px;
  font-feature-settings: "ss02" 1;
  font-weight: 500;
  transition: color var(--loop-duration-quick) ease, border-color var(--loop-duration-quick) ease, background var(--loop-duration-quick) ease;
}
nav a:hover { color: var(--loop-color-text); }
nav .nav-cta {
  padding: 9px 14px;
  border: 1px solid var(--loop-color-border-strong);
  border-radius: var(--loop-radius-control);
  color: var(--loop-color-text);
}
nav .nav-cta:hover { border-color: var(--loop-color-live); background: rgb(199 255 58 / 0.06); }

main, footer { width: min(100%, var(--page-width)); margin: 0 auto; }

.hero {
  max-width: var(--content-width);
  min-height: 650px;
  margin: 0 auto;
  padding: clamp(100px, 13vw, 190px) var(--page-gutter) clamp(100px, 12vw, 170px);
}

h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--font-display); font-feature-settings: "ss02" 1; }

h1 {
  max-width: 1040px;
  margin-bottom: 34px;
  font-size: clamp(72px, 10vw, 144px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

h1 span { color: var(--loop-color-live); }

.hero > p {
  max-width: 720px;
  margin-bottom: 38px;
  color: var(--loop-color-text-muted);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--loop-radius-control);
  font-feature-settings: "ss02" 1;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--loop-duration-quick) ease, border-color var(--loop-duration-quick) ease, color var(--loop-duration-quick) ease, transform var(--loop-duration-quick) ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--loop-color-live); color: var(--loop-color-background); }
.button-primary:hover { background: #d5ff6c; }
.button-secondary { border-color: var(--loop-color-border-strong); background: var(--loop-color-surface); color: var(--loop-color-text); }
.button-secondary:hover { border-color: var(--loop-color-interactive-hover); background: var(--loop-color-interactive-surface); }

.build,
.core-usps,
.technology,
.waitlist {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--content-width);
  margin: 0 auto;
  border-top: 1px solid var(--loop-color-border);
}

.build { padding: clamp(72px, 9vw, 128px) 0; }
.build figure { margin: 0; }
.build-media { position: relative; overflow: hidden; border: 1px solid var(--loop-color-border-strong); background: #080b12; box-shadow: var(--loop-elevation-overlay); }
.build-stage { aspect-ratio: 16 / 9; }
.build-stage > img, .build-stage > iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.build figcaption { margin-top: 14px; color: var(--loop-color-text-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }
.player-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.player-actions button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--loop-color-border-strong);
  border-radius: var(--loop-radius-control);
  background: rgb(10 16 32 / 0.88);
  color: var(--loop-color-text);
  font-family: var(--font-mono);
  font-size: 11px;
}
.player-actions button:hover { border-color: var(--loop-color-live); }

.section-heading {
  max-width: 920px;
  padding: 0 0 clamp(48px, 7vw, 88px);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.core-usps { padding: clamp(88px, 11vw, 152px) 0; }
.core-usps article {
  display: grid;
  padding: 36px 0;
  grid-template-columns: minmax(300px, 0.75fr) minmax(340px, 1fr);
  gap: clamp(40px, 8vw, 120px);
  border-bottom: 1px solid var(--loop-color-border);
}
.core-usps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-feature-settings: "ss02" 1;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.core-usps p { max-width: 600px; margin-bottom: 0; align-self: center; color: var(--loop-color-text-muted); font-size: 18px; }

.technology { padding: clamp(88px, 11vw, 152px) 0; }
.technology-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--loop-color-border); }
.technology-list article { min-height: 180px; padding: 32px 40px 34px 0; border-bottom: 1px solid var(--loop-color-border); }
.technology-list article:nth-child(even) { padding-right: 0; padding-left: 40px; border-left: 1px solid var(--loop-color-border); }
.technology-list h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-feature-settings: "ss02" 1;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.technology-list p { max-width: 470px; margin: 0; color: var(--loop-color-text-muted); font-size: 16px; }

.waitlist {
  display: grid;
  padding: clamp(88px, 11vw, 152px) 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.65fr);
  gap: clamp(48px, 10vw, 140px);
}
.waitlist h2 { margin-bottom: 18px; font-size: clamp(42px, 5.4vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.waitlist > div:first-child > p { color: var(--loop-color-text-muted); font-size: 19px; }
.waitlist-form {
  position: relative;
  display: grid;
  padding-left: 40px;
  gap: 22px;
  border-left: 1px solid var(--loop-color-border-strong);
}
.form-field { display: grid; gap: 7px; }
.form-field label {
  color: var(--loop-color-text);
  font-feature-settings: "ss02" 1;
  font-size: 14px;
  font-weight: 600;
}
.form-field label span {
  margin-left: 6px;
  color: var(--loop-color-text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--loop-color-border-strong);
  border-radius: var(--loop-radius-control);
  background: var(--loop-color-interactive-surface);
  color: var(--loop-color-text);
  caret-color: var(--loop-color-live);
  transition: background var(--loop-duration-quick) ease, border-color var(--loop-duration-quick) ease;
}
.form-field input { min-height: 48px; padding: 10px 12px; }
.form-field textarea { min-height: 112px; padding: 11px 12px; resize: vertical; }
.form-field input:hover,
.form-field textarea:hover { border-color: var(--loop-color-interactive-hover); background: var(--loop-color-surface-overlay); }
.form-field input:focus-visible,
.form-field textarea:focus-visible { border-color: var(--loop-color-interactive-focus); }
.form-field > p,
.form-privacy,
.form-status,
.form-fallback { margin: 0; color: var(--loop-color-text-muted); font-size: 12px; }
.form-check {
  display: grid;
  align-items: start;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--loop-color-text-muted);
  font-size: 14px;
}
.form-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--loop-color-live); }
.waitlist-form > .button { width: fit-content; }
.waitlist-form[aria-busy="true"] > .button { cursor: wait; opacity: 0.72; transform: none; }
.form-status:not(:empty) { color: var(--loop-color-live); font-size: 14px; }
.form-privacy a,
.form-fallback a { color: var(--loop-color-live); text-decoration: underline; }
.waitlist-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

footer {
  display: flex;
  padding: 44px var(--page-gutter) 64px;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--loop-color-border);
  color: var(--loop-color-text-muted);
  font-size: 13px;
}
.footer-brand { width: 92px; color: var(--loop-color-text); }
.footer-meta { text-align: right; }
.footer-meta p { margin-bottom: 6px; }
.footer-meta a { color: var(--loop-color-live); }
.footer-meta a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: flex-end; gap: 18px; }

.legal {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) 0;
}
.legal > header { padding-bottom: clamp(64px, 8vw, 96px); }
.legal-kicker {
  margin-bottom: 18px;
  color: var(--loop-color-live);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal h1 { margin-bottom: 28px; font-size: clamp(64px, 9vw, 112px); }
.legal > header > p:last-child { max-width: 720px; color: var(--loop-color-text-muted); font-size: 22px; }
.legal section {
  display: grid;
  padding: 36px 0;
  grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 88px);
  border-top: 1px solid var(--loop-color-border);
}
.legal section h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.legal section p,
.legal address { grid-column: 2; margin: 0; color: var(--loop-color-text-muted); font-style: normal; }
.legal section p + p { margin-top: 16px; }
.legal section a { color: var(--loop-color-live); text-decoration: underline; }

@media (max-width: 760px) {
  nav > a:not(.nav-cta) { display: none; }
  .hero { min-height: 0; }
  .core-usps article { grid-template-columns: 1fr; gap: 16px; }
  .technology-list { grid-template-columns: 1fr; }
  .technology-list article,
  .technology-list article:nth-child(even) { min-height: 0; padding: 28px 0; border-left: 0; }
  .waitlist { grid-template-columns: 1fr; gap: 32px; }
  .waitlist-form { padding-top: 32px; padding-left: 0; border-top: 1px solid var(--loop-color-border-strong); border-left: 0; }
  .legal section { grid-template-columns: 1fr; gap: 14px; }
  .legal section p,
  .legal address { grid-column: 1; }
}

@media (max-width: 520px) {
  :root { --page-gutter: 18px; }
  .site-header { min-height: 68px; }
  .brand { width: 92px; }
  .nav-cta { padding: 8px 10px !important; font-size: 13px; }
  .hero { padding-top: 84px; }
  h1 { font-size: clamp(64px, 19vw, 88px); }
  h1 span { display: block; }
  .hero > p { font-size: 19px; }
  .button { width: 100%; }
  .core-usps article { padding: 28px 0; }
  footer { align-items: flex-start; flex-direction: column; gap: 28px; }
  .footer-meta { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

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