:root {
  color-scheme: light;
  --ink: oklch(17% 0.035 224);
  --muted: oklch(43% 0.036 224);
  --paper: oklch(96% 0.02 95);
  --cream: oklch(91% 0.045 95);
  --blue: oklch(39% 0.19 258);
  --xp-blue: oklch(49% 0.19 250);
  --green: oklch(69% 0.17 138);
  --red: oklch(58% 0.19 28);
  --cyan: oklch(72% 0.13 205);
  --pink: oklch(72% 0.15 345);
  --chrome: oklch(77% 0.025 230);
  --line: oklch(18% 0.03 224 / 0.18);
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-soft: 0 24px 70px oklch(13% 0.04 224 / 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, oklch(20% 0.045 185 / 0.08) 1px, transparent 1px),
    linear-gradient(oklch(20% 0.045 185 / 0.08) 1px, transparent 1px),
    linear-gradient(135deg, var(--paper), oklch(91% 0.045 174) 45%, oklch(95% 0.035 85));
  background-size: 34px 34px, 34px 34px, auto;
  min-height: 100vh;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: oklch(97% 0.014 92 / 0.9);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: oklch(98% 0.01 90);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 900;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.header-cta {
  justify-self: end;
  background: var(--green);
}

.primary-button {
  color: oklch(98% 0.012 70);
  background: var(--red);
}

.secondary-button {
  background: oklch(98% 0.012 90);
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(370px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(34px, 5vw, 82px);
  align-items: center;
  max-width: 1780px;
  margin: 0 auto;
  padding: clamp(54px, 6vw, 98px) clamp(28px, 5vw, 92px) clamp(64px, 7vw, 108px);
  overflow: hidden;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  line-height: 0.94;
}

h1 {
  max-width: 12ch;
  font-size: clamp(56px, 5.25vw, 104px);
}

h2 {
  max-width: 12ch;
  font-size: clamp(38px, 6.8vw, 88px);
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.hero-text,
.section-heading p,
.creator-panel p {
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.hero-text {
  max-width: 55ch;
  font-size: clamp(17px, 1.25vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-video {
  justify-self: stretch;
  align-self: center;
  margin-left: auto;
  width: 100%;
  max-width: 960px;
}

.ticker {
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background: var(--green);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 38px;
  padding: 13px 0;
  font-weight: 900;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  white-space: nowrap;
}

.theme-gallery,
.apps,
.creator {
  padding: clamp(70px, 10vw, 136px) clamp(16px, 5vw, 76px);
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 900px;
}

.theme-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.theme-card {
  display: grid;
  gap: 16px;
  min-height: 470px;
  padding: 14px 14px 20px;
  background: oklch(98% 0.012 90);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.theme-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.38;
}

.mini-screen {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-content: start;
  min-height: 300px;
  padding: 26px 18px 70px;
  overflow: hidden;
  border: 3px solid oklch(10% 0.02 230);
}

.mini-screen img {
  width: min(100%, 78px);
  justify-self: center;
  filter: drop-shadow(0 12px 12px oklch(8% 0.03 230 / 0.28));
}

.xp-mini {
  background:
    linear-gradient(180deg, oklch(65% 0.15 240), oklch(83% 0.08 205) 54%, transparent 54%),
    linear-gradient(150deg, oklch(79% 0.18 136), oklch(45% 0.14 145));
}

.ios-mini {
  background: linear-gradient(180deg, oklch(75% 0.08 230), oklch(87% 0.05 190) 45%, oklch(64% 0.16 138) 45%);
}

.win98-mini {
  background:
    linear-gradient(90deg, oklch(20% 0.06 185 / 0.18) 1px, transparent 1px),
    linear-gradient(oklch(20% 0.06 185 / 0.18) 1px, transparent 1px),
    oklch(53% 0.105 186);
  background-size: 30px 30px, 30px 30px, auto;
}

.y2k-mini {
  background:
    radial-gradient(circle at 30% 25%, oklch(80% 0.14 205 / 0.72), transparent 32%),
    radial-gradient(circle at 76% 20%, oklch(78% 0.16 340 / 0.6), transparent 28%),
    oklch(17% 0.08 258);
}

.mini-taskbar,
.mini-dock,
.aero-pill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 48px;
}

.mini-taskbar {
  padding: 13px;
  color: white;
  font-weight: 900;
  background: linear-gradient(180deg, oklch(66% 0.17 245), oklch(43% 0.18 255));
}

.win98-mini .mini-taskbar {
  color: var(--ink);
  background: var(--chrome);
  border-top: 2px solid oklch(98% 0.01 90);
}

.mini-dock {
  background: linear-gradient(180deg, oklch(98% 0.01 90 / 0.65), oklch(50% 0.12 220 / 0.7));
}

.aero-pill {
  left: 30px;
  right: 30px;
  bottom: 24px;
  min-height: 46px;
  padding: 12px;
  color: white;
  text-align: center;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.promo-frame {
  margin: 0;
  padding: clamp(8px, 1.4vw, 14px);
  background: var(--chrome);
  border: 3px solid oklch(98% 0.01 90);
  border-right-color: oklch(12% 0.03 230);
  border-bottom-color: oklch(12% 0.03 230);
  box-shadow: 12px 12px 0 var(--ink);
}

.promo-frame::before {
  content: "Watch the retro phone studio";
  display: block;
  margin: -4px -4px 10px;
  padding: 8px 10px;
  color: oklch(98% 0.01 90);
  background: linear-gradient(90deg, var(--blue), var(--xp-blue));
  font-weight: 900;
}

.promo-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: oklch(10% 0.03 230);
  border: 2px solid var(--ink);
}

.promo-frame figcaption {
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: stretch;
}

.app-window {
  background: var(--cream);
  border: 3px solid oklch(98% 0.01 90);
  border-right-color: oklch(12% 0.03 230);
  border-bottom-color: oklch(12% 0.03 230);
  box-shadow: var(--shadow-hard);
}

.window-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  color: oklch(98% 0.01 90);
  background: linear-gradient(90deg, var(--blue), var(--xp-blue));
  font-weight: 900;
}

.feed-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 42px);
}

.feed-card img {
  width: 116px;
}

.feed-card strong {
  font-size: 34px;
  line-height: 1;
}

.feed-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.42;
}

.app-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(58px, 1fr));
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  padding: clamp(20px, 4vw, 44px);
  background: oklch(17% 0.05 185);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.app-wall img {
  width: min(100%, 104px);
  justify-self: center;
  transition: transform 160ms ease-out;
  filter: drop-shadow(0 16px 14px oklch(8% 0.03 230 / 0.3));
}

.app-wall img:hover {
  transform: translateY(-8px) rotate(-4deg);
}

.creator-panel {
  display: grid;
  gap: 22px;
  max-width: 1060px;
  padding: clamp(26px, 6vw, 68px);
  background:
    radial-gradient(circle at 86% 18%, oklch(82% 0.19 132 / 0.45), transparent 28%),
    linear-gradient(135deg, oklch(98% 0.014 92), oklch(86% 0.06 190));
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.creator-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.creator-points span {
  padding: 9px 12px;
  font-weight: 900;
  background: oklch(98% 0.012 90);
  border: 2px solid var(--ink);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(16px, 5vw, 76px);
  color: oklch(96% 0.014 92);
  background: var(--ink);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease-out, transform 560ms ease-out;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(300px, 0.82fr) minmax(430px, 1.18fr);
    padding-inline: clamp(20px, 4vw, 52px);
  }

  h1 {
    font-size: clamp(52px, 6vw, 74px);
  }

  .theme-cards {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .app-showcase {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-video {
    max-width: 760px;
  }

  .app-wall {
    grid-template-columns: repeat(3, minmax(58px, 1fr));
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 28px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(50px, 15vw, 66px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(36px, 13vw, 56px);
  }

  .theme-cards {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .promo-frame,
  .theme-card,
  .app-window,
  .app-wall,
  .creator-panel {
    box-shadow: 5px 5px 0 var(--ink);
  }
}
