/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1d1d1f;
  background: #ffffff;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(0,0,0,0.06);
  padding: 0.06em 0.4em;
  border-radius: 4px;
}
button { font: inherit; }

:root {
  --max: 1120px;
  --narrow: 820px;
  --pad: clamp(20px, 5vw, 48px);
  --break-fg: #717171;
  --accent: #0071e3;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.nav__brand img { border-radius: 5px; }
.nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: 13px;
  color: #1d1d1f;
}
.nav__links a:hover { color: var(--accent); }
@media (max-width: 540px) {
  .nav__links a:nth-child(2) { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 120ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: #0077ed; }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid currentColor;
}
.btn--ghost:hover { background: rgba(0,113,227,0.08); }
.btn--large { padding: 16px 30px; font-size: 17px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 14vw, 160px) var(--pad) clamp(80px, 12vw, 140px);
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 30% 10%, rgba(0,113,227,0.18), transparent 70%),
    radial-gradient(50% 40% at 80% 30%, rgba(255,45,85,0.10), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(0,0,0,0.04), transparent 70%),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}
.hero__icon {
  width: clamp(140px, 22vw, 220px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.18)) drop-shadow(0 8px 16px rgba(0,0,0,0.10));
}
.hero__title {
  margin: 0 0 12px;
  font-size: clamp(56px, 11vw, 112px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #1d1d1f 0%, #4a4a4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__tagline {
  margin: 0 0 20px;
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}
.hero__sub {
  margin: 0 auto 36px;
  max-width: 620px;
  font-size: clamp(15px, 2.2vw, 19px);
  color: #515154;
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero__meta {
  font-size: 12px;
  color: #86868b;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ============ SECTION SCAFFOLD ============ */
.section {
  padding: clamp(80px, 12vw, 140px) var(--pad);
}
.section--soft  { background: #f5f5f7; }
.section--dark  { background: #000; color: #f5f5f7; }
.section--accent {
  background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1e 100%);
  color: #fff;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
}
.container--narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-size: clamp(28px, 5.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 18px;
  text-align: center;
}
.title {
  font-size: clamp(36px, 6.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.lede {
  font-size: clamp(17px, 2.4vw, 22px);
  color: #515154;
  max-width: 720px;
  margin: 0 auto 56px;
  line-height: 1.5;
  text-align: center;
}
.lede--invert { color: #a1a1a6; }

/* ============ MENU BAR DEMO ============ */
.menubar-demo {
  margin: 64px auto 0;
  max-width: 980px;
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255,255,255,0.6), transparent 70%),
    linear-gradient(180deg, #e7e7ec 0%, #d8d8dd 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 24px 60px rgba(0,0,0,0.15);
}
.menubar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 28px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  color: #1d1d1f;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.menubar__left, .menubar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menubar__apple {
  width: 12px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'><path d='M11.6 9.6c0-2.2 1.8-3.3 1.9-3.3-1-1.5-2.6-1.7-3.2-1.7-1.4-.1-2.6.8-3.3.8-.7 0-1.7-.8-2.9-.8-1.5 0-2.9.9-3.6 2.2-1.6 2.7-.4 6.6 1.1 8.8.7 1 1.6 2.2 2.7 2.2 1.1 0 1.5-.7 2.8-.7s1.7.7 2.9.7c1.2 0 2-1 2.7-2 .8-1.1 1.2-2.3 1.2-2.4-.1-.1-2.3-.9-2.3-3.5zM10 3.6c.6-.7 1-1.6.9-2.6-.8 0-1.8.5-2.4 1.2-.5.6-1 1.6-.9 2.5.9.1 1.8-.4 2.4-1.1z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'><path d='M11.6 9.6c0-2.2 1.8-3.3 1.9-3.3-1-1.5-2.6-1.7-3.2-1.7-1.4-.1-2.6.8-3.3.8-.7 0-1.7-.8-2.9-.8-1.5 0-2.9.9-3.6 2.2-1.6 2.7-.4 6.6 1.1 8.8.7 1 1.6 2.2 2.7 2.2 1.1 0 1.5-.7 2.8-.7s1.7.7 2.9.7c1.2 0 2-1 2.7-2 .8-1.1 1.2-2.3 1.2-2.4-.1-.1-2.3-.9-2.3-3.5zM10 3.6c.6-.7 1-1.6.9-2.6-.8 0-1.8.5-2.4 1.2-.5.6-1 1.6-.9 2.5.9.1 1.8-.4 2.4-1.1z'/></svg>") center / contain no-repeat;
}
.menubar__app { font-weight: 700; }
.menubar__timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(0,113,227,0.14);
  color: #0040b0;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgba(0,113,227,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.menubar__dot { color: #0071e3; }
.menubar__icon, .menubar__time {
  font-size: 12px;
  opacity: 0.78;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,113,227,0.18); }
  50%      { box-shadow: 0 0 0 3px rgba(0,113,227,0.10); }
}
@media (max-width: 720px) {
  .menubar__left span:nth-child(n+5) { display: none; }
}
@media (max-width: 480px) {
  .menubar__left span:nth-child(n+3) { display: none; }
  .menubar__right .menubar__icon { display: none; }
  .menubar__right .menubar__time:not(:last-child) { display: none; }
}

/* ============ OVERLAY DEMO ============ */
.overlay-demo {
  margin: 64px auto 0;
  max-width: 980px;
  padding: 0 var(--pad);
}
.overlay-demo__bezel {
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, #2a2a2c 0%, #1a1a1c 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 40px 100px rgba(0,0,0,0.55);
}
.overlay-demo__screen {
  border-radius: 14px;
  background: #000;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  gap: 14px;
}
.overlay-demo__progress {
  position: relative;
  width: clamp(180px, 32%, 320px);
  height: 7px;
}
.overlay-demo__progress-track,
.overlay-demo__progress-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}
.overlay-demo__progress-track {
  background: rgba(113,113,113,0.18);
}
.overlay-demo__progress-fill {
  background: var(--break-fg);
  width: 0;
  animation: fill 6s ease-out infinite alternate;
}
@keyframes fill {
  0%   { width: 8%; }
  100% { width: 92%; }
}
.overlay-demo__times {
  display: flex;
  justify-content: space-between;
  width: clamp(180px, 32%, 320px);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--break-fg);
  font-variant-numeric: tabular-nums;
}
.overlay-demo__skip {
  background: transparent;
  color: var(--break-fg);
  border: 1px solid var(--break-fg);
  border-radius: 6px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  pointer-events: none;
}

/* ============ FEATURE GRID ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #f5f5f7;
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.card p {
  font-size: 15px;
  color: #515154;
  margin: 0;
  line-height: 1.55;
}

/* ============ HARDENING LIST ============ */
.hard-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  text-align: left;
  display: grid;
  gap: 14px;
}
.hard-list li {
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 15px;
  color: #515154;
  line-height: 1.5;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.hard-list li strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__num {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  font-size: 13px;
  color: #a1a1a6;
  letter-spacing: 0.02em;
}

/* ============ DOWNLOAD ============ */
.download-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 22px;
}
.download-meta {
  font-size: 13px;
  color: #86868b;
  margin: 0;
}

/* ============ FOOTER ============ */
.footer {
  padding: 36px var(--pad);
  background: #f5f5f7;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.footer__brand img { border-radius: 5px; }
.footer__copy {
  font-size: 13px;
  color: #86868b;
  margin: 0;
}
.footer__copy a { color: var(--accent); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .overlay-demo__progress-fill,
  .menubar__timer { animation: none; }
  html { scroll-behavior: auto; }
}
