/* Base */

:root {
  --bg: #f5f5f3;
  --bg-elevated: #ffffff;
  --border-subtle: rgba(15, 15, 15, 0.08);
  --text: #141414;
  --text-soft: #6b6b6b;
  --accent: #111111;
  --accent-soft: rgba(0, 0, 0, 0.04);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.05), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.03), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */

.shell {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: 18px 0;
}

.section.subtle {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(245, 245, 243, 0.85);
  border-bottom: 1px solid rgba(15, 15, 15, 0.03);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 6px 0;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  margin-bottom: 4px;
}

/* Buttons */

.btn {
  font: inherit;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 7px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease,
    transform 120ms ease, box-shadow 150ms ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #f5f5f3;
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-subtle);
  color: var(--text);
}

.btn-ghost:hover {
  background: #ffffff;
}

/* Hero */

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 12px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 32rem;
  margin-bottom: 24px;
}

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

.meta {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 15, 15, 0.07);
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.7);
}

/* Countdown */
.countdown {
  margin-top: var(--space-4);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: var(--space-2);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.countdown-value {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}

.countdown-label {
  margin-top: var(--space-1);
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* A11y helper */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Hero media */

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* iPhone device */
.phone {
  position: relative;
  border-radius: 54px;
  width: clamp(280px, 30vw, 420px);
  aspect-ratio: 375 / 812; /* iPhone-ish ratio */

  /* Outer frame */
  background: linear-gradient(145deg, #1c1c1e, #0a0a0a);
  border: 2px solid #1a1a1a;

  /* Edge + depth */
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 0 8px rgba(255, 255, 255, 0.03),
    inset 0 0 6px rgba(255, 255, 255, 0.05),
    inset 0 0 0 12px #000; /* inner bezel */
}

/* Screen area that holds the video */
.phone-screen {
  position: absolute;
  inset: 12px;              /* matches the inset above */
  border-radius: 48px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
  z-index: 1;
}

.phone-screen video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;        /* fill the screen while preserving aspect */
}

.phone-screen {
  position: absolute;
  inset: 12px;
  border-radius: 48px;
  overflow: hidden;
  background: #000;
}

.video-shell {
  position: relative;
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: #000;
  aspect-ratio: 9 / 16;
  width: clamp(280px, 30vw, 420px);
}

/* Inside the phone, let the screen fill fully */
.phone-screen .video-shell {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 600px) {
  .phone {
    width: 80vw;
  }
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.6)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%);
  color: #f5f5f3;
  text-align: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 200ms ease;
}

.video-placeholder[data-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.video-placeholder-inner {
  max-width: 260px;
}

.video-placeholder .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.video-placeholder p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.hint {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0 4px;
}

/* Sections */

.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 18px 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 15, 0.06);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-subtle);
}

.feature-card h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  column-gap: 10px;
  font-size: 0.95rem;
}

.steps li span {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #f5f5f3;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 24px; /* prevent shrinking in flex rows on iOS */
  font-variant-numeric: tabular-nums;
}

.note {
  padding: 18px 18px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(15, 15, 15, 0.15);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  color: var(--text-soft);
}

.note-meta {
  margin-top: 10px;
  font-size: 0.82rem;
}

code {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.86em;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}

/* Footer */

.site-footer {
  padding: 26px 0 30px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.muted {
  color: var(--text-soft);
}

.back-to-top {
  text-decoration: none;
  color: var(--text-soft);
}

.back-to-top:hover {
  color: var(--text);
}

/* Ensure clean numeral rendering in footer on iOS Safari */
.site-footer,
.footer-row,
.muted,
.back-to-top {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* Responsive */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-media {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .nav.is-open .nav-links,
  .nav.is-open .nav-actions {
    display: flex;
  }

  .nav.is-open {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav.is-open .nav-links {
    order: 2;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav.is-open .nav-actions {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 8px;
  }
}

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

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .shell {
    width: min(100% - 26px, 100%);
  }

  .section {
    padding: 56px 0;
  }
}
/* Countdown hero */
.countdown-hero {
  min-height: 200px;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

.countdown-hero-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.countdown-hero .eyebrow {
  color: var(--text-soft);
}

.countdown-hero .countdown-grid {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 16px;
}

.countdown-hero .countdown-item {
  padding: 18px 20px;
}

.countdown-hero .countdown-value {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.countdown-cta {
  margin-top: 10px;
}

@media (max-width: 800px) {
  .countdown-hero .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Announcement */
.announcement {
  padding: 28px 0;
}

.announce-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 15, 15, 0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
  box-shadow: var(--shadow-subtle);
}

.announce-copy h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.announce-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.announce-note {
  margin-top: 8px;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .announce-card {
    grid-template-columns: 1fr;
  }
  .announce-actions {
    justify-content: flex-start;
  }
}

/* Showcase split layout */
.showcase {
  padding: 40px 0 80px;
}

/* Features section spacing tweak */
#features {
  padding-top: 48px;
}

/* CTA below features */
.promo-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 15, 0.06);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-subtle);
}

.promo-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.btn-play {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  display: block;
  fill: currentColor;
}

/* Button icon helper */
.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: middle;
}

.promo-copy h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.promo-copy p {
  margin: 6px 0 0;
}

.promo-actions {
  margin-left: auto;
}

.promo-actions .btn {
  height: 40px;
  padding: 0 18px;
}

@media (max-width: 620px) {
  .promo-inner {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .promo-actions {
    margin-left: 0;
  }
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.data-col {
  display: grid;
  gap: 40px;
}

.intro-actions {
  margin-top: 12px;
}

.sticky-col {
  position: sticky;
  top: 90px;
  display: flex;
  justify-content: center;
}

/* Limit feature grid width and columns in showcase */
.showcase .feature-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .sticky-col {
    position: static;
    order: -1;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
  }
}
