:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #161618;
  --ink-soft: #63666f;
  --line: rgba(22, 22, 24, 0.08);
  --soba-blue: #129fd0;
  --night-bg: #050608;
  --night-ink: #f5f5f7;
  --night-soft: #979aa3;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

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

html {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.54 var(--font);
  letter-spacing: -0.014em;
  overflow-x: clip;
}

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

a,
button {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--soba-blue);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-inline: 28px;
}

/* ===========================
   Minimal Floating Liquid Glass Header
   =========================== */
.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 20px;
  pointer-events: none;
}

.glass-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 780px;
  height: 48px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

body.nav-dark .glass-nav {
  background: rgba(22, 24, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--night-ink);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.wordmark .dot {
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--soba-blue);
}

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

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

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

body.nav-dark .nav-links a {
  color: rgba(245, 245, 247, 0.72);
}

body.nav-dark .nav-links a:hover {
  color: #ffffff;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s var(--ease);
}

.nav-download:hover {
  transform: translateY(-1px);
  background: #000000;
}

body.nav-dark .nav-download {
  background: #ffffff;
  color: var(--ink);
}

/* ===========================
   Photorealistic Machined Titanium iPhone Pro
   (Always 100% Uncropped Top-to-Bottom)
   =========================== */
.iphone-pro {
  position: relative;
  width: var(--phone-w, 268px);
  aspect-ratio: 1290 / 2796;
  padding: 2.5px;
  border-radius: 49px;
  background: linear-gradient(135deg,
      #f3f4f6 0%,
      #b7bbc4 22%,
      #868b96 46%,
      #dcdfe5 72%,
      #9fa4af 100%);
  box-shadow:
    0 34px 70px -18px rgba(15, 23, 42, 0.24),
    0 12px 24px -10px rgba(15, 23, 42, 0.12),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.92),
    inset 0 -1px 1px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.iphone-pro--hero {
  --phone-w: 284px;
}

.iphone-pro--dark {
  background: linear-gradient(135deg,
      #525660 0%,
      #25272d 28%,
      #18191d 55%,
      #3d4049 78%,
      #1e2025 100%);
  box-shadow:
    0 38px 80px -14px rgba(0, 0, 0, 0.86),
    0 0 42px rgba(74, 134, 190, 0.14),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.26);
}

/* Physical Pro Side Hardware Buttons */
.hw-btn {
  position: absolute;
  width: 2.5px;
  border-radius: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, #9da2ad, #dfe2e8);
}

.iphone-pro--dark .hw-btn {
  background: linear-gradient(90deg, #27292f, #4c505a);
}

.hw-action {
  left: -2.5px;
  top: 19%;
  height: 3.8%;
}

.hw-vol-up {
  left: -2.5px;
  top: 25.5%;
  height: 7.2%;
}

.hw-vol-down {
  left: -2.5px;
  top: 34.4%;
  height: 7.2%;
}

.hw-power {
  right: -2.5px;
  top: 28%;
  height: 11%;
}

/* Jet-Black OLED Inner Bezel */
.iphone-oled {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 5.5px;
  border-radius: 46.5px;
  background: #090a0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 41px;
  overflow: hidden;
  background: #ffffff;
}

.iphone-pro--dark .iphone-screen {
  background: #0a0b0d;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(125deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.02) 32%,
      transparent 55%);
  opacity: 0.45;
}

.crossfade-img {
  transition: opacity 0.24s var(--ease), transform 0.34s var(--ease);
}

.crossfade-img.is-swapping {
  opacity: 0.2;
  transform: scale(0.99);
}

/* ===========================
   Download CTA & Liquid Glass Pills
   =========================== */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 46px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn-download:hover {
  transform: translateY(-1.5px);
  background: #000000;
}

.btn-download svg {
  width: 14px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.hero.is-night-hero .btn-download {
  background: #ffffff;
  color: var(--ink);
}

.glass-seg {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.seg-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.2s ease, box-shadow 0.25s var(--ease);
}

.seg-btn[aria-selected="true"] {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

/* ===========================
   Act 1: Apple Air Luminous Canvas Hero
   =========================== */
.hero {
  position: relative;
  width: 100%;
  padding: 114px 0 96px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 68%, #fbfbfd 100%);
  transition: background 0.55s var(--ease), color 0.45s var(--ease);
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26%;
  width: 780px;
  height: 780px;
  margin-left: -390px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(18, 159, 208, 0.14) 0%,
    rgba(74, 134, 190, 0.08) 38%,
    transparent 70%
  );
  animation: airStudioGlow 11s ease-in-out infinite alternate;
  transition: background 0.55s var(--ease);
}

.hero.is-night-hero {
  background: linear-gradient(180deg, #06070a 0%, #0b0e15 70%, #050608 100%);
  color: var(--night-ink);
}

.hero.is-night-hero::before {
  background: radial-gradient(
    circle,
    rgba(74, 134, 190, 0.22) 0%,
    rgba(235, 139, 44, 0.09) 42%,
    transparent 72%
  );
}

.hero.is-night-hero .hero-sub {
  color: var(--night-soft);
}

@keyframes airStudioGlow {
  from { transform: scale(0.95) translate3d(0, 0, 0); opacity: 0.78; }
  to   { transform: scale(1.06) translate3d(0, -18px, 0); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(42px, 5.6vw, 66px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.044em;
}

.hero-sub {
  margin: 16px auto 28px;
  max-width: 470px;
  font-size: 18.5px;
  line-height: 1.48;
  color: var(--ink-soft);
}

.hero-device-stage {
  display: flex;
  justify-content: center;
  overflow: visible;
  animation: heroFloat 7s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -8px, 0);
  }
}

/* ===========================
   Act 2: Minimal Mode (First Section After Hero)
   =========================== */
.minimal-section {
  position: relative;
  width: 100%;
  padding: 112px 0;
  text-align: center;
  background: var(--night-bg);
  color: var(--night-ink);
  overflow: hidden;
}

.minimal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.62;
  pointer-events: none;
  transform-origin: center center;
  animation: proGlow 14s ease-in-out infinite alternate;
}

@keyframes proGlow {
  from { transform: scale(1); opacity: 0.56; }
  to   { transform: scale(1.03); opacity: 0.72; }
}

.minimal-inner {
  position: relative;
  z-index: 2;
}

.section-head {
  max-width: 520px;
  margin: 0 auto 56px;
}

.section-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soba-blue);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.036em;
}

.section-head p {
  margin: 14px 0 0;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.minimal-section .section-head h2 {
  color: #ffffff;
}

.minimal-section .section-head p,
.minimal-section .duo-label {
  color: var(--night-soft);
}

.duo-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 52px;
  overflow: visible;
}

.duo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  overflow: visible;
}

.duo-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ===========================
   Act 3: Color Mode (Light & Dark Side-by-Side)
   =========================== */
.color-section {
  position: relative;
  width: 100%;
  padding: 108px 0;
  text-align: center;
  background: linear-gradient(180deg, #fbfbfd 0%, #f4f6fa 52%, #fbfbfd 100%);
  overflow: hidden;
}

/* ===========================
   Act 4: App Download Closing & Footer
   =========================== */
.download-section {
  width: 100%;
  padding: 88px 0 96px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.download-box {
  max-width: 520px;
  margin: 0 auto;
}

.download-box h2 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.034em;
}

.download-box p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.link-quiet {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
}

.link-quiet:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 42px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===========================
   Single-Pass Spring Reveals
   =========================== */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ===========================
   Mobile Breakpoint
   =========================== */
@media (max-width: 720px) {
  .wrap {
    padding-inline: 20px;
  }

  .nav-wrap {
    top: 10px;
    padding-inline: 14px;
  }

  .glass-nav {
    padding: 0 7px 0 15px;
    height: 44px;
    gap: 10px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 12.5px;
  }

  .nav-download {
    height: 30px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero {
    padding: 90px 0 68px;
  }

  .hero::before {
    width: 420px;
    height: 420px;
    margin-left: -210px;
  }

  .minimal-section,
  .color-section,
  .download-section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .duo-stage {
    flex-direction: column;
    align-items: center;
    gap: 44px;
  }

  .iphone-pro,
  .iphone-pro--hero {
    --phone-w: 248px;
    border-radius: 44px;
  }

  .iphone-oled {
    border-radius: 41.5px;
    padding: 5px;
  }

  .iphone-screen {
    border-radius: 36.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before,
  .hero-device-stage,
  .minimal-bg {
    animation: none !important;
  }

  .reveal,
  html.js-ready .reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}