:root {
  --navy: #0a2558;
  --navy-deep: #071a3d;
  --navy-mid: #143a7a;
  --blue: #2095f3;
  --cyan: #00cfdd;
  --bg: #eef2f7;
  --surface: #ffffff;
  --text: #1d2b3a;
  --muted: #5f7085;
  --faint: #8a9bb0;
  --border: #d9e1ec;
  --shadow: 0 18px 50px rgba(7, 26, 61, 0.16);
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Source Sans 3", system-ui, sans-serif;
  --header-h: 68px;
  --radius: 14px;
  --blue-soft: #eef7fe;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(7, 26, 61, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
}

.brand img {
  border-radius: 9px;
}

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

.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: white;
}

.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 10px 16px;
  border-radius: 999px;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 35;
  background: var(--navy-deep);
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: white;
  font-weight: 700;
  padding: 10px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 26, 61, 0.92) 0%, rgba(10, 37, 88, 0.72) 42%, rgba(10, 37, 88, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 26, 61, 0.35) 0%, rgba(7, 26, 61, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto 0 6vw;
  padding: calc(var(--header-h) + 48px) 0 72px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.03em;
}

.hero-brand img {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  max-width: 11ch;
  margin-bottom: 18px;
}

.hero-lead {
  max-width: 36ch;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--display);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 28px rgba(32, 149, 243, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary {
  background: var(--navy);
  color: white;
}

.section {
  padding: 96px 0;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  max-width: 18ch;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 48px;
}

.scroll-hint {
  display: none;
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.h-scroll {
  width: 100%;
}

.header-cta-mobile {
  display: none;
}

.mobile-dock {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.feature {
  padding-top: 8px;
  border-top: 2px solid rgba(32, 149, 243, 0.35);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(32, 149, 243, 0.14), rgba(0, 207, 221, 0.12));
  color: var(--navy);
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.how {
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(32, 149, 243, 0.12), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 36px;
  align-items: center;
}

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

.steps li {
  display: grid;
  gap: 4px;
  padding: 16px 0 16px 18px;
  border-left: 3px solid var(--cyan);
}

.steps strong {
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.1rem;
}

.steps span {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.how-devices {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.apple-stage {
  position: relative;
  width: 100%;
  padding: 12px 56px 28px 0;
  min-height: 340px;
}

/* —— MacBook (Space Black style) —— */
.apple-mac {
  width: 88%;
  position: relative;
  z-index: 1;
}

.apple-mac__lid {
  background: linear-gradient(180deg, #3a3a3c 0%, #2c2c2e 100%);
  border-radius: 14px 14px 0 0;
  padding: 10px 10px 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(0, 0, 0, 0.35);
}

.apple-mac__bezel {
  position: relative;
  background: #000;
  border-radius: 8px;
  padding: 12px 8px 8px;
  overflow: hidden;
}

.apple-mac__camera {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 6px;
  border-radius: 4px;
  background: #1c1c1e;
  z-index: 2;
}

.apple-mac__camera::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #2f3540;
}

.apple-mac__screen {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
}

.apple-mac__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.apple-mac__base {
  height: 12px;
  margin: 0 -2%;
  background: linear-gradient(180deg, #4a4a4c 0%, #2f2f31 55%, #1f1f21 100%);
  border-radius: 0 0 10px 10px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.apple-mac__indent {
  position: absolute;
  left: 50%;
  top: 3px;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: #1a1a1c;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* —— iPhone (thin bezel + Dynamic Island) —— */
.apple-phone {
  position: absolute;
  right: 0;
  bottom: 6px;
  z-index: 4;
  width: 156px;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.28));
}

.apple-phone__bezel {
  position: relative;
  background: #1c1c1e;
  border-radius: 28px;
  padding: 7px;
  border: 1.5px solid #3a3a3c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.apple-phone__screen {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

.apple-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-featured {
  border-color: transparent;
  background: linear-gradient(165deg, var(--navy-deep), var(--navy-mid));
  color: white;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.price-tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--cyan);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.price h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.price-featured h3,
.price-featured .price-amount,
.price-featured .price-meta,
.price-featured li {
  color: white;
}

.price-amount {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.75;
}

.price-meta {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.price ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
}

.price li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 16px;
  position: relative;
}

.price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.price .btn {
  width: 100%;
}

.price-featured .btn-primary {
  background: white;
  color: var(--navy);
  box-shadow: none;
}

.cta-band {
  padding-top: 24px;
}

.cta-inner {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--navy-mid));
  color: white;
  border-radius: 24px;
  padding: 42px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.cta-inner h2 {
  color: white;
  max-width: 16ch;
  margin-bottom: 8px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
}

.site-footer {
  padding: 48px 0 36px;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.footer-inner .brand {
  color: var(--navy);
  width: fit-content;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--navy);
  font-weight: 700;
}

.copy {
  font-size: 0.85rem;
  color: var(--faint);
  margin-top: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

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

  .how-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .how-devices {
    max-width: 480px;
  }

  .apple-phone {
    width: 140px;
  }

  .apple-stage {
    min-height: 300px;
    padding-right: 48px;
  }

  .price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 60px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .hero {
    min-height: 100svh;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    padding: 0 14px;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }

  .nav,
  .menu-btn {
    display: none !important;
  }

  .header-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: white;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 9px 14px;
    border-radius: 999px;
  }

  .hero-content {
    margin: 0 auto;
    width: min(100% - 28px, 640px);
    padding-bottom: 48px;
  }

  .hero-brand {
    font-size: 1.75rem;
    gap: 10px;
  }

  .hero-brand img {
    width: 48px;
    height: 48px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-lead {
    max-width: none;
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section-inner {
    width: min(1120px, calc(100% - 28px));
  }

  .section h2 {
    max-width: none;
  }

  .section-lead {
    margin-bottom: 20px;
    font-size: 1.05rem;
  }

  .scroll-hint {
    display: block;
  }

  /*
   * Transform carousel (not overflow-x scroll).
   * overflow-x:auto traps vertical touch on iOS; touch-action:pan-y keeps page scroll.
   */
  .h-scroll {
    margin-inline: -14px;
    padding-inline: 14px;
    overflow: hidden;
    touch-action: pan-y;
    padding-bottom: 8px;
    scroll-snap-type: none;
  }

  .feature-grid,
  .price-grid {
    display: flex;
    gap: 14px;
    width: max-content;
    max-width: none;
    padding-right: 14px;
    will-change: transform;
  }

  .feature,
  .price {
    flex: 0 0 min(78vw, 290px);
    width: auto;
    max-width: none;
    scroll-snap-align: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 8px 24px rgba(10, 37, 88, 0.06);
  }

  .feature {
    border-top: 3px solid rgba(32, 149, 243, 0.45);
    min-height: 210px;
  }

  .price {
    min-height: 320px;
  }

  .price-featured {
    transform: none;
    background: linear-gradient(165deg, var(--navy-deep), var(--navy-mid));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow);
  }

  .price-featured h3,
  .price-featured .price-amount,
  .price-featured .price-meta,
  .price-featured li {
    color: white;
  }

  .price-featured .btn-primary {
    background: white;
    color: var(--navy);
  }

  .how-layout {
    grid-template-columns: unset;
  }

  .how-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .steps {
    display: grid;
    gap: 14px;
    margin-top: 22px;
  }

  .steps li {
    background: white;
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: 14px;
    padding: 14px 14px 14px 16px;
  }

  .how-devices {
    max-width: 100%;
    order: -1;
  }

  .apple-stage {
    min-height: 240px;
    padding: 8px 36px 20px 0;
  }

  .apple-phone {
    width: 108px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Sticky bottom dock */
  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(10, 37, 88, 0.08);
  }

  .mobile-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    border-radius: 10px;
  }

  .mobile-dock a.is-active {
    color: var(--navy);
    background: var(--blue-soft);
  }

  .mobile-dock__cta {
    background: var(--blue) !important;
    color: white !important;
    font-weight: 800 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
