@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "ITC Avant Garde Gothic";
  src: url("./assets/fonts/ITCAvantGardeGothic-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;

  --cs-bg: #050404;
  --cs-fg: #f7f4f1;
  --cs-muted: #a89f97;
  --cs-red: #ff2430;
  --cs-red-deep: #a80f16;
  --cs-hairline: rgba(247, 244, 241, 0.14);
  --cs-card: rgba(255, 255, 255, 0.03);

  --cs-display: "ITC Avant Garde Gothic", "Inter", sans-serif;
  --cs-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --cs-inset: clamp(1.25rem, 4vw, 3rem);
  --cs-radius: 0.42rem;
}

html {
  scroll-behavior: smooth;
}

.cs-body {
  background: var(--cs-bg);
  color: var(--cs-fg);
  font-family: var(--cs-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--cs-red);
  color: #fff;
}

.cs-inner {
  width: min(72rem, 100% - 2 * var(--cs-inset));
  margin-inline: auto;
}

.cs-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--cs-red);
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--cs-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--cs-red);
}

/* ---------------------------------------------------------------- topbar */

.cs-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--cs-inset);
  pointer-events: none;
}

.cs-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(5, 4, 4, 0.72), rgba(5, 4, 4, 0));
  pointer-events: none;
}

.cs-topbar a,
.cs-topbar-kicker {
  position: relative;
  pointer-events: auto;
}

.cs-back,
.cs-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cs-fg);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 0.25s ease, transform 0.25s ease;
}

.cs-back svg,
.cs-visit svg {
  width: 0.7rem;
  height: 0.7rem;
  transition: transform 0.25s ease;
}

.cs-back:hover {
  color: var(--cs-red);
  transform: translateX(-0.2rem);
}

.cs-back:hover svg {
  transform: translateX(-0.18rem);
}

.cs-visit:hover {
  color: var(--cs-red);
  transform: translateX(0.12rem) translateY(-0.12rem);
}

.cs-visit:hover svg {
  transform: translate(0.14rem, -0.14rem);
}

.cs-topbar-kicker {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: rgba(247, 244, 241, 0.5);
}

/* ------------------------------------------------------------------ hero */

.cs-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cs-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.cs-hero-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(5, 4, 4, 0.08) 0%, rgba(5, 4, 4, 0.62) 78%),
    linear-gradient(rgba(5, 4, 4, 0.35), rgba(5, 4, 4, 0.25) 55%, var(--cs-bg) 98%);
}

.cs-hero-copy {
  position: relative;
  text-align: center;
  padding: 0 var(--cs-inset);
  max-width: 60rem;
}

.cs-hero-kicker {
  margin-bottom: 1.6rem;
}

.cs-hero-title {
  font-size: clamp(4.2rem, 16vw, 12.5rem);
  text-transform: uppercase;
}

.cs-hero-line {
  display: block;
  overflow: hidden;
}

.cs-hero-line > span {
  display: inline-block;
  will-change: transform;
}

.cs-hero-sub {
  margin-top: 2rem;
  margin-inline: auto;
  max-width: 30rem;
  color: rgba(247, 244, 241, 0.82);
  font-size: 0.98rem;
}

.cs-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: rgba(247, 244, 241, 0.6);
}

.cs-scroll-cue svg {
  width: 0.75rem;
  height: 0.75rem;
  animation: cs-cue 2.2s ease-in-out infinite;
}

@keyframes cs-cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(0.4rem);
    opacity: 1;
  }
}

/* ------------------------------------------------------------- manifesto */

.cs-manifesto {
  padding: clamp(6rem, 14vh, 10rem) 0;
  border-bottom: 1px solid var(--cs-hairline);
}

.cs-statement {
  margin-top: 2.2rem;
  max-width: 56rem;
  font-family: var(--cs-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: 0.005em;
}

.cs-statement em {
  font-style: normal;
  color: var(--cs-red);
}

.cs-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--cs-hairline);
}

.cs-stat-num {
  display: block;
  font-family: var(--cs-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
}

.cs-stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cs-muted);
}

/* ------------------------------------------------------------------ tour */

.cs-tour {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(78rem, 100% - 2 * var(--cs-inset));
  margin-inline: auto;
  padding: clamp(4rem, 10vh, 8rem) 0;
}

.cs-tour-stage {
  position: relative;
}

.cs-device {
  position: sticky;
  /* iPhone 17 Pro Max: 440×956pt → 19.5rem wide ≈ 42.4rem tall; center in viewport */
  top: max(4.5rem, calc(50vh - 21.2rem));
  width: min(19.5rem, 72%);
  aspect-ratio: 440 / 956;
  margin-inline: auto;
  border-radius: 3rem;
  background: #0b0a0a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 0.45rem #17161a,
    0 0 0 calc(0.45rem + 1px) rgba(255, 255, 255, 0.09),
    0 2.4rem 5rem rgba(0, 0, 0, 0.6),
    0 0 7rem rgba(255, 36, 48, 0.12);
  overflow: hidden;
}

.cs-device-notch {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 1.15rem;
  border-radius: 1rem;
  background: #000;
  z-index: 3;
}

.cs-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.7s ease;
}

.cs-screen.is-active {
  opacity: 1;
  transform: scale(1);
}

.cs-tour-progress {
  position: sticky;
  top: calc(max(4.5rem, calc(50vh - 21.2rem)) + 43.6rem);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.cs-tour-progress span {
  width: 1.6rem;
  height: 2px;
  background: rgba(247, 244, 241, 0.18);
  transition: background 0.4s ease;
}

.cs-tour-progress span.is-active {
  background: var(--cs-red);
}

.cs-chapters {
  display: flex;
  flex-direction: column;
  gap: clamp(10rem, 38vh, 22rem);
  /* bottom padding keeps the sticky device pinned through the last chapter */
  padding: 18vh 0 52vh;
}

.cs-chapter h2 {
  margin-top: 1.4rem;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  text-transform: uppercase;
}

.cs-chapter p {
  margin-top: 1.6rem;
  max-width: 26rem;
  color: var(--cs-muted);
  font-size: 0.95rem;
}

.cs-chapter-shot {
  display: none;
}

/* ------------------------------------------------------------- interlude */

.cs-interlude {
  position: relative;
  min-height: 88svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-block: 1px solid var(--cs-hairline);
}

.cs-interlude-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-interlude-tint {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 4, 0.58);
}

.cs-interlude-copy {
  position: relative;
  text-align: center;
  padding: 0 var(--cs-inset);
}

.cs-interlude-line {
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  text-transform: uppercase;
  white-space: nowrap;
}

.cs-interlude-copy p {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 244, 241, 0.66);
}

/* ------------------------------------------------------------------- web */

.cs-web {
  padding: clamp(6rem, 14vh, 11rem) 0;
}

.cs-web-title {
  margin-top: 2rem;
  font-size: clamp(2.8rem, 7vw, 6rem);
  text-transform: uppercase;
}

.cs-web-sub {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: var(--cs-muted);
}

.cs-browser {
  margin-top: 3.6rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2.6rem 6rem rgba(0, 0, 0, 0.55);
  background: #17161a;
}

.cs-browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-browser-chrome > span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.cs-browser-chrome > span:first-child {
  background: rgba(255, 36, 48, 0.75);
}

.cs-browser-url {
  margin-inline: auto;
  padding: 0.24rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 241, 0.62);
}

.cs-browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------- toolkit */

.cs-toolkit {
  padding: clamp(5rem, 12vh, 9rem) 0 clamp(6rem, 14vh, 11rem);
  border-top: 1px solid var(--cs-hairline);
}

.cs-toolkit-title {
  margin-top: 2rem;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  text-transform: uppercase;
}

.cs-toolkit-grid {
  display: grid;
  /* 3 columns × 2 rows = all 6 slots filled, no exposed backdrop */
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3.4rem;
  background: var(--cs-hairline);
  border: 1px solid var(--cs-hairline);
}

.cs-tool {
  position: relative;
  padding: 1.9rem 1.7rem 2.1rem;
  background: var(--cs-bg);
  transition: background 0.35s ease;
}

.cs-tool:hover {
  background: var(--cs-card);
}

.cs-tool-num {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--cs-red);
}

.cs-tool h3 {
  margin-top: 1.1rem;
  font-family: var(--cs-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.cs-tool p {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--cs-muted);
}

/* ------------------------------------------------------------------- cta */

.cs-cta {
  padding: clamp(6rem, 16vh, 12rem) 0;
  border-top: 1px solid var(--cs-hairline);
  text-align: center;
}

.cs-cta-title {
  font-size: clamp(3.6rem, 13vw, 10rem);
  text-transform: uppercase;
}

.cs-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  margin-top: 3rem;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--cs-radius);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--cs-fg);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.cs-btn svg {
  width: 0.72rem;
  height: 0.72rem;
  transition: transform 0.25s ease;
}

.cs-apple {
  width: 0.95rem !important;
  height: 0.95rem !important;
}

.cs-btn-primary {
  background: var(--cs-red);
  color: #fff;
}

.cs-btn-primary:hover {
  background: #ff3a45;
  transform: translateX(0.14rem) translateY(-0.14rem);
}

.cs-btn-primary:hover svg {
  transform: translate(0.16rem, -0.16rem);
}

.cs-btn-ghost {
  border: 1px solid var(--cs-hairline);
  color: rgba(247, 244, 241, 0.8);
  cursor: default;
}

.cs-btn-ghost[href] {
  cursor: pointer;
}

.cs-btn-ghost:hover {
  border-color: rgba(247, 244, 241, 0.4);
  color: var(--cs-fg);
}

a.cs-btn-ghost:hover {
  transform: translateX(-0.14rem);
}

a.cs-btn-ghost:hover svg {
  transform: translateX(-0.14rem);
}

/* --------------------------------------------------------------- tooltip */

[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.2rem);
  padding: 0.34rem 0.7rem;
  border-radius: 0.34rem;
  background: #17161a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cs-fg);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------------- waitlist */

.cs-waitlist {
  max-width: 26rem;
  margin: 3rem auto 0;
}

.wl-lead {
  font-family: var(--cs-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cs-muted);
  margin-block-end: 0.7rem;
}

.wl-row {
  display: flex;
  gap: 0.5rem;
}

.wl-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.72rem 1.1rem;
  background: var(--cs-card);
  border: 1px solid var(--cs-hairline);
  border-radius: 999px;
  font: inherit;
  font-family: var(--cs-body);
  font-size: 0.82rem;
  color: var(--cs-fg);
  outline: none;
  transition: border-color 0.2s ease;
}

.wl-input::placeholder {
  color: rgba(247, 244, 241, 0.4);
}

.wl-input:focus {
  border-color: var(--cs-red);
}

.wl-btn {
  flex: 0 0 auto;
  padding: 0.72rem 1.2rem;
  background: var(--cs-red);
  border: none;
  border-radius: 999px;
  font: inherit;
  font-family: var(--cs-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wl-btn:hover {
  background: #ff3a45;
}

.wl-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.wl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wl-msg {
  min-height: 1.2rem;
  margin-block-start: 0.6rem;
  font-family: var(--cs-body);
  font-size: 0.74rem;
  color: #ff8a8a;
}

.wl-msg.is-ok {
  color: var(--cs-muted);
}

.wl-form.is-done .wl-row {
  display: none;
}

@media (max-width: 30rem) {
  .wl-row {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------- footer */

.cs-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 1.6rem var(--cs-inset) 2rem;
  border-top: 1px solid var(--cs-hairline);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 244, 241, 0.45);
}

/* ---------------------------------------------------------------- reveal */

.cs-reveal {
  opacity: 0;
  transform: translateY(1.4rem);
}

.cs-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .cs-topbar-kicker {
    display: none;
  }

  .cs-toolkit-grid {
    grid-template-columns: 1fr;
  }

  .cs-tour {
    grid-template-columns: 1fr;
    width: min(72rem, 100% - 2 * var(--cs-inset));
  }

  .cs-tour-stage {
    display: none;
  }

  .cs-chapters {
    gap: 5.5rem;
    padding: 2rem 0 3rem;
  }

  .cs-chapter-shot {
    display: block;
    width: min(15rem, 68%);
    aspect-ratio: 440 / 956;
    margin: 0 0 1.8rem;
    border-radius: 2.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 0.32rem #17161a, 0 1.4rem 3rem rgba(0, 0, 0, 0.55);
  }

  .cs-chapter-shot img,
  .cs-chapter-shot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .cs-interlude-line {
    white-space: normal;
  }
}

/* -------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cs-scroll-cue svg {
    animation: none;
  }

  .cs-reveal {
    opacity: 1;
    transform: none;
  }
}
