:root {
  --black: #000;
  --ember: #e07a52;
  --peach: #ffd2b4;
  --plum: #3b1d5c;
  --bone: #f4efea;
  --muted: #8c8792;
  --line: rgba(244, 239, 234, 0.1);

  --display: "Inter Tight", system-ui, sans-serif;
  --ui: "Nunito", ui-rounded, system-ui, sans-serif;

  --nh: 36px;

  --open: cubic-bezier(0.32, 1.42, 0.5, 1);
  --close: cubic-bezier(0.3, 0.9, 0.3, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient light: the icon's ember glow and the film's plum glow. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% 108%, rgba(224, 122, 82, 0.28), transparent 70%),
    radial-gradient(800px 600px at 96% -8%, rgba(59, 29, 92, 0.55), transparent 70%);
  z-index: -1;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ------------------------------------------------------------ Menu bar */

.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nh);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
}

.menu-links {
  display: flex;
  gap: 22px;
  margin-right: auto;
  margin-left: 26px;
}

.menu-links a,
.menubar-cta {
  text-decoration: none;
  color: rgba(244, 239, 234, 0.72);
  transition: color 0.2s;
}

.menu-links a:hover,
.menubar-cta:hover { color: var(--bone); }

.menubar-cta {
  color: var(--peach);
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  border: 0;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(244, 239, 234, 0.1);
  color: rgba(244, 239, 234, 0.8);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.lang:hover { background: rgba(244, 239, 234, 0.18); }

/* ------------------------------------------------------------ Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 110px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 9.2vw, 136px);
  line-height: 0.94;
  text-wrap: balance;
  letter-spacing: -0.045em;
  margin: 0;
}

.hero-title .line { display: block; }

/* The second line glows like the icon's screen. */
.hero-title .line + .line {
  background: linear-gradient(180deg, var(--bone) 20%, var(--peach) 70%, var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 34em;
  margin: 32px auto 0;
  font-size: clamp(18px, 2vw, 21px);
  color: rgba(244, 239, 234, 0.72);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 26px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.25s var(--open), background 0.2s, box-shadow 0.3s;
}

.btn:active { transform: scale(0.96); }

.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn-primary {
  background: var(--bone);
  color: #000;
  box-shadow: 0 0 0 rgba(224, 122, 82, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(224, 122, 82, 0.45);
}

.btn-ghost {
  background: rgba(244, 239, 234, 0.08);
  color: var(--bone);
}

.btn-ghost:hover { background: rgba(244, 239, 234, 0.14); }

.hero-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.hero-clip {
  width: min(1100px, 100%);
  margin: 0;
  text-align: center;
}

.hero-clip video {
  aspect-ratio: 2000 / 760;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 120px rgba(224, 122, 82, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.6);
}

.hero-clip figcaption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* ------------------------------------------------------------ Film */

.film {
  width: 100%;
  margin-top: 56px;
  display: flex;
  justify-content: center;
  scroll-margin-top: 60px;
}

.live {
  display: flex;
  justify-content: center;
  padding: 0 24px 120px;
}

/* The film sits in a Mac screen: thick black bezel (the footage has the real notch). */
.bezel {
  position: relative;
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  padding: clamp(8px, 1.4vw, 18px);
  border-radius: clamp(18px, 3vw, 40px);
  background: linear-gradient(180deg, #2c2c31, #0c0c0e 40%, #050506);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 40px 120px rgba(224, 122, 82, 0.22),
    0 20px 60px rgba(0, 0, 0, 0.6);
}

.bezel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(10px, 1.8vw, 24px);
  background: #000;
}

.film-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 239, 234, 0.92);
  color: #000;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--open), opacity 0.3s;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.film-play svg { width: 36px; height: 36px; fill: currentColor; margin-left: 4px; }
.film-play:hover { transform: scale(1.08); }
.film.is-playing .film-play { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* ------------------------------------------------------------ Features */

.features {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(56px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.feature h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.feature p {
  margin: 0;
  max-width: 30em;
  color: rgba(244, 239, 234, 0.72);
  font-weight: 600;
}

.feature .feature-detail {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

/* A real clip of the app, recorded on the desktop. */
.screen {
  position: relative;
  aspect-ratio: 1440 / 560;
  border-radius: 20px;
  overflow: hidden;
  background: #120d14;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.5);
}

.screen video,
.hero-clip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------ Install */

.install {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) 24px;
  border-top: 1px solid var(--line);
}

.install h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 56px;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: #000;
  color: var(--peach);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 180, 0.3);
}

.steps h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.steps p { margin: 0; color: rgba(244, 239, 234, 0.68); font-weight: 600; font-size: 16px; }

code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(244, 239, 234, 0.08);
}

/* ------------------------------------------------------------ Footer */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 24px 70px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.footer-crab { width: 96px; height: 60px; image-rendering: pixelated; }
.footer p { margin: 0; }

/* ------------------------------------------------------------ Responsive */

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature .screen { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --nh: 32px; }
  body { font-size: 17px; }
  .menu-links { display: none; }
  .brand span { display: none; }
  .menubar { padding: 0 16px; font-size: 13px; }
  .hero { padding: 120px 16px 64px; }
  .film { margin-top: 40px; }
  .live { padding: 0 16px 80px; }
  .features, .install { padding-left: 16px; padding-right: 16px; }
  .screen { border-radius: 16px; }
  .hero-clip video { border-radius: 16px; }
}

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