@font-face {
  font-family: "Lay Grotesk";
  src: url("assets/fonts/LayGrotesk-Regular.woff2") format("woff2"),
       url("assets/fonts/LayGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Lay Grotesk";
  src: url("assets/fonts/LayGrotesk-Medium.woff2") format("woff2"),
       url("assets/fonts/LayGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Lay Grotesk";
  src: url("assets/fonts/LayGrotesk-Semibold.woff2") format("woff2"),
       url("assets/fonts/LayGrotesk-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lay Grotesk";
  src: url("assets/fonts/LayGrotesk-Bold.woff2") format("woff2"),
       url("assets/fonts/LayGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lay Grotesk";
  src: url("assets/fonts/LayGrotesk-Black.woff2") format("woff2"),
       url("assets/fonts/LayGrotesk-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #130f0c;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --dim: rgba(255, 255, 255, 0.5);
  --tile: #1c1815;
  --tile-2: #272320;
  --orange: #fb8442;
  --green: #23613c;
  --pink: #f9bef1;
  --purple: #847cc9;
  --beige: #ddcabc;
  --rule: rgba(255, 255, 255, 0.08);
  --sans: "Lay Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: clip; }

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* ----- Centered content column ----- */
.col {
  position: relative;
  z-index: 2;
  max-width: 544px;
  margin: 0 auto;
  padding: 0 24px 100px;
  transform: translateX(-60px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  margin-top: 180px;
  margin-bottom: 40px;
}
.brand img { height: 22px; width: auto; display: block; }

.scramble-char {
  opacity: 0.7;
}

h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 64px;
  line-height: 56px;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.lede {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 60px;
  max-width: 336px;
}

/* ----- Email row (thin underline, inline CTA link) ----- */
.waitlist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
  padding: 16px 0;
  margin: 0 0 80px;
}
.waitlist:focus-within {
  border-bottom-color: var(--orange);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 4px 0;
}
.waitlist input::placeholder { color: rgba(255, 255, 255, 0.3); }
.waitlist .cta {
  background: transparent;
  border: 0;
  color: var(--orange);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.waitlist .cta:hover { opacity: 0.85; }

/* ----- Repo graph (single SVG) ----- */
.graph {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 48px;
}

/* ----- Long prose ----- */
.prose p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 24px;
}
.prose p:last-child { margin-bottom: 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

/* ----- Scattered decorative tiles -----
   Positions transcribed from the Figma frame (center ≈ 792px).
   Each tile: left = calc(50% + (figmaX - 792)px), top = (figmaY - 50)px.
   The -50 shifts the scatter up by 50px over the Figma baseline. */
.scatter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  min-height: 1200px;
  transform: translateY(40px);
  will-change: transform;
}
.s {
  position: absolute;
  animation: tile-rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes tile-rise {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.s-top, .s-bot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}
.s-dot {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  top: 10px; right: 10px;
}

.s-orange, .s-green, .s-loading {
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.s-orange {
  width: 94px; height: 94px;
  background: var(--orange);
  color: #171411;
  top: -60px; left: calc(50% - 754px);
  animation-delay: 0.30s;
}
.s-green {
  width: 121px; height: 121px;
  background: var(--green);
  color: var(--beige);
  top: -93px; left: calc(50% + 291px);
  animation-delay: 0.45s;
}
.s-loading {
  width: 121px; height: 121px;
  background: var(--tile-2);
  color: var(--beige);
  top: -33px; left: calc(50% + 413px);
  animation-delay: 0.55s;
}

.s-pink {
  width: 180px; height: 42px;
  background: var(--pink);
  top: -136px; left: calc(50% - 904px);
  animation-delay: 0.20s;
}

.s-purple {
  width: 91px; height: 91px;
  background: var(--purple);
  top: 382px; left: calc(50% - 753px);
  animation-delay: 0.70s;
}

.s-beige { background: var(--beige); animation-delay: 0.50s; }
.s-beige-a { width: 90px; height: 59px; top: 28px; left: calc(50% + 227px); }
.s-beige-b { width: 60px; height: 60px; top: 476px; left: calc(50% + 534px); opacity: 0.06; }

.s-dark { background: var(--tile); animation-delay: 0.40s; }
.s-dark-a { width: 107px; height: 107px; top: 32px;  left: calc(50% - 660px); }   /* 132, 82 */
.s-dark-b { width: 116px; height: 107px; top: -112px; left: calc(50% - 87px); }    /* 705, -62 */
.s-dark-e { width: 160px; height: 160px; top: -207px; left: calc(50% - 470px); }   /* 322, -157 */
.s-dark-f { width: 29px;  height: 29px;  top: -47px;  left: calc(50% - 310px); }   /* 482, 3 */
.s-dark-g { width: 77px;  height: 77px;  top: -52px;  left: calc(50% + 568px); }   /* 1360, -2 */
.s-dark-h { width: 77px;  height: 77px;  top: 139px;  left: calc(50% + 457px); }   /* 1249, 189 */

.s-dark-bar {
  width: 245px; height: 42px;
  background: var(--tile);
  top: 340px; left: calc(50% - 1074px);
  animation-delay: 0.70s;
}

/* Thin distorted streak between orange card and top videos —
   Figma crops the source image heavily: 500% height, 122% width,
   -22% left, -200% top. We reproduce with background-size/position. */
.s-img-streak {
  width: 259px; height: 48px;
  top: -16px; left: calc(50% - 570px);
  background: url("assets/streak.png") no-repeat;
  background-size: 122% 500%;
  background-position: -22% -200%;
  filter: saturate(.6) contrast(1.05);
  animation-delay: 0.50s;
}

/* Image / video tiles */
.s-img {
  background-color: #2a2320;
  background-size: cover;
  background-position: center;
  filter: saturate(.55) contrast(1.05);
  animation-delay: 0.60s;
  overflow: hidden;
}
.s-img video {
  width: 169%;
  height: 169%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.s-img { position: absolute; }
.s-img-a { width: 276px; height: 209px; top: 173px; left: calc(50% - 753px); }     /* -37, 223 — shifted +76 to fit 1440 */
.s-img-b { width: 258px; height: 258px; top: 88px;  left: calc(50% + 534px); }     /* 1326, 138 */
.s-img-c { width: 130px; height: 130px; top: 346px; left: calc(50% + 404px); }     /* 1196, 396 */
.s-img-d {                                                                          /* 195x56 faint strip */
  width: 195px; height: 56px;
  top: 34px; left: calc(50% - 949px);
  background: rgba(217, 217, 217, 0.04);
}

/* ----- Status chips ----- */
.s-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(28, 24, 21, 0.92);
  backdrop-filter: blur(4px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  animation-delay: 0.65s;
}
.s-chip-updating  { top: -5px;  left: calc(50% + 29px); }   /* 821, 45 */
.s-chip-analyzing { top: 139px; left: calc(50% - 553px); }  /* 239, 189 */
.s-chip-thinking  { top: 25px;  left: calc(50% + 645px); }  /* 1437, 75 */

.bars {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: block;
}

/* ----- Social links ----- */
.social {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 60px;
  margin-bottom: 24px;
  font-family: var(--sans);
}
.social a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  cursor: pointer;
}
.social a:hover {
  opacity: 1;
}
.social-sep {
  opacity: 0.4;
}

/* ----- Big wordmark at bottom ----- */
.wordmark {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 117 / 21.6;
  overflow: hidden;
}
.wordmark img {
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  left: 0;
  top: 0;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes text-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand,
.lede,
.waitlist,
.graph,
.prose p,
.rule {
  animation: text-rise 1s cubic-bezier(.2,.7,.2,1) both;
}

h1 { animation: none; }
h1 .line {
  display: block;
  overflow: hidden;
  line-height: 56px;
  padding-bottom: 0.02em;
  padding-right: 0.06em;
  white-space: nowrap;
}
h1 .inner {
  display: inline-block;
  transform: translateY(110%);
  animation: line-reveal 1.1s cubic-bezier(.22,.9,.24,1) both;
  white-space: nowrap;
}
@keyframes line-reveal {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.brand                          { animation-delay: .05s; }
h1 .line:nth-child(1) .inner    { animation-delay: .15s; }
h1 .line:nth-child(2) .inner    { animation-delay: .28s; }
.lede                           { animation-delay: .55s; }
.waitlist                       { animation-delay: .75s; }
.graph                          { animation-delay: .95s; }

.prose p, .rule {
  opacity: 0;
  animation-play-state: paused;
  animation-delay: 0s;
}
.prose p.in, .rule.in {
  animation-play-state: running;
}

/* ----- Responsive ----- */
/* Tablet */
@media (max-width: 1100px) {
  .scatter {
    transform: translateY(40px) scale(0.6);
    transform-origin: 50% 0;
  }
  .col {
    transform: none;
    max-width: 600px;
    padding: 0 32px 120px;
  }
  .brand { margin-top: 96px; }
  h1 {
    font-size: 56px;
    line-height: 50px;
  }
  h1 .line { line-height: 56px; }
  .lede { max-width: 420px; }
}

@media (max-width: 820px) {
  h1 {
    font-size: 48px;
    line-height: 44px;
  }
  h1 .line { line-height: 48px; }
}

/* Mobile */
@media (max-width: 640px) {
  .scatter {
    transform: translateY(40px) scale(0.7);
    transform-origin: 50% 0;
    opacity: 0.6;
  }
  .col {
    padding: 0 20px 96px;
  }
  .brand { margin-top: 72px; margin-bottom: 48px; }
  .brand img { height: 20px; }
  h1 {
    font-size: 44px;
    line-height: 42px;
    margin-bottom: 20px;
  }
  h1 .line { line-height: 44px; padding-bottom: 0.04em; }
  .lede { font-size: 15px; line-height: 22px; margin-bottom: 48px; max-width: 100%; }
  .waitlist {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 56px;
  }
  .waitlist .cta { text-align: left; }
  .graph { margin-bottom: 36px; }
  .prose p { font-size: 15px; line-height: 22px; }
  .rule { margin: 36px 0; }
}

@media (max-width: 400px) {
  h1 {
    font-size: 40px;
    line-height: 38px;
  }
  h1 .line { line-height: 40px; }
}

@media (max-width: 360px) {
  h1 {
    font-size: 36px;
    line-height: 34px;
  }
  h1 .line { line-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .s, .col > * { animation: none; }
}
