/* ------------------------------------------------------------------
   iPhone 2035 — styles
   ------------------------------------------------------------------ */

:root {
  --bg: #000;
  --bg-elev: #0a0a0c;
  --bg-soft: #f5f5f7;
  --ink: #f5f5f7;
  --ink-soft: #a1a1a6;
  --ink-dark: #1d1d1f;
  --ink-dark-soft: #6e6e73;
  --accent: #2997ff;
  --line: rgba(255, 255, 255, 0.08);
  --phone-color: #2b2b30;
  --phone-glow: rgba(120, 140, 255, 0.35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* Typography ------------------------------------------------------- */

h1 {
  font-size: clamp(56px, 11vw, 136px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 28px;
  max-width: 34em;
}
.center .lead { margin-left: auto; margin-right: auto; }
.fine {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 24px;
}

/* Reveal animation ------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Navigation ------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: inline-flex; color: var(--ink); opacity: 0.9; }
.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.nav__cta:hover { background: #3ea2ff; transform: translateY(-1px); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: calc(var(--nav-h) + 96px) 24px 0;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 1;
  transform: translate(-50%, -30%);
  background: radial-gradient(closest-side, var(--phone-glow), transparent 70%);
  filter: blur(40px);
  opacity: 0.8;
  pointer-events: none;
  transition: background 0.8s;
}
.hero__eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero__title {
  background: linear-gradient(180deg, #fff 0%, #cfcfd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  margin-top: 22px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Phone ------------------------------------------------------------ */

.phone-stage {
  position: relative;
  margin-top: 72px;
  perspective: 1600px;
  width: min(300px, 70vw);
}
.phone-stage--small {
  margin: 56px auto 0;
  width: min(220px, 60vw);
}
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.phone__frame {
  position: absolute;
  inset: 0;
  border-radius: 14% / 6.5%;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 40%),
    var(--phone-color);
  padding: 2.5%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 120px -20px var(--phone-glow);
  transition: background 0.8s, box-shadow 0.8s;
  overflow: hidden;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12% / 5.6%;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.phone__wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 20% 0%, #5b6bff 0%, transparent 55%),
    radial-gradient(90% 90% at 90% 100%, #ff6a9a 0%, transparent 55%),
    radial-gradient(80% 60% at 60% 50%, #2d1b4f 0%, #05050a 100%);
  filter: saturate(1.1);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  to { transform: scale(1.12) translate(-3%, 2%); }
}
.phone__time {
  position: absolute;
  top: 12%;
  left: 0; right: 0;
  text-align: center;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 200;
  letter-spacing: -0.03em;
}
.phone__greeting {
  position: absolute;
  top: 26%;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(12px, 1.2vw, 15px);
  color: rgba(255,255,255,0.85);
}
.coffee {
  width: 1.5em;
  height: 1.5em;
  color: #ffe6c7;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  overflow: visible;
}
.coffee__steam path {
  opacity: 0;
  animation: steam 2.6s ease-in-out infinite;
}
.coffee__steam path:nth-child(2) { animation-delay: 0.5s; }
.coffee__steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(2px); }
  30%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-4px); }
}
.phone__widget {
  position: absolute;
  left: 8%; right: 8%;
  bottom: 9%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: clamp(10px, 1vw, 12px);
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.phone__widget-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 8px #30d158;
  flex: none;
}
.phone__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0) 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateX(-120%);
  animation: shine 7s var(--ease) infinite;
}
@keyframes shine {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}
.phone__shadow {
  position: absolute;
  left: 10%; right: 10%;
  bottom: -14%;
  height: 10%;
  border-radius: 50%;
  background: rgba(0,0,0,0.9);
  filter: blur(24px);
  transform: translateZ(-60px);
}

/* Manifesto -------------------------------------------------------- */

.manifesto {
  padding: 200px 0 180px;
}
.manifesto__text {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.manifesto__sign {
  margin-top: 48px;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.manifesto__sign::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--ink-soft);
  margin-bottom: 20px;
  opacity: 0.5;
}

/* Feature sections ------------------------------------------------- */

.feature {
  padding: 160px 0;
}
.feature--split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.feature--reverse .container .feature__copy { order: 2; }
.feature--reverse .container .feature__visual { order: 1; }
.feature__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.feature--dark {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.spec-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 16px;
}
.spec-list strong {
  display: inline-block;
  min-width: 96px;
  color: var(--ink);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* Glass slab visual */
.glass-slab {
  position: relative;
  width: 200px;
  aspect-ratio: 9 / 19;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 60px 120px -40px rgba(41,151,255,0.5);
  transform: rotate(-12deg) rotateY(22deg);
  transform-style: preserve-3d;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.glass-slab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 30% 10%, rgba(41,151,255,0.45), transparent 60%);
  filter: blur(20px);
  z-index: -1;
}
.glass-slab__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), transparent 8%, transparent 92%, rgba(255,255,255,0.35));
  opacity: 0.6;
}

/* Trio ------------------------------------------------------------- */

.trio {
  padding: 40px 0 160px;
}
.trio__grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  padding: 40px 32px;
  border-radius: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.16);
}
.card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 28px;
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 14px; }
.card p {
  color: var(--ink-soft);
  font-size: 16px;
}

/* Stats ------------------------------------------------------------ */

.stats {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.stat__value {
  display: block;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, #9a9aa0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* Ring visual ------------------------------------------------------ */

.ring {
  position: relative;
  width: 300px;
  height: 300px;
}
.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring__track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 10;
}
.ring__fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke: #30d158;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 553;
  stroke-dashoffset: 553;
  transition: stroke-dashoffset 2.4s var(--ease) 0.3s;
  filter: drop-shadow(0 0 14px rgba(48,209,88,0.6));
}
.ring.is-visible .ring__fill { stroke-dashoffset: 40; }
.ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink-soft);
}
.ring__label span {
  font-size: 84px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}

/* Finish ----------------------------------------------------------- */

.finish {
  padding: 160px 0;
  background: var(--bg-soft);
  color: var(--ink-dark);
}
.finish .eyebrow { color: #0066cc; }
.finish .phone__frame {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 40px 80px -20px rgba(0,0,0,0.35);
}
.finish .phone__shadow { background: rgba(0,0,0,0.25); }
.swatches {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--c);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.4),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    0 0 0 2px #fff,
    0 0 0 3px transparent;
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active {
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.4),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    0 0 0 2px #fff,
    0 0 0 4px #0066cc;
}
.swatch-name {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-dark-soft);
}

/* One more thing --------------------------------------------------- */

.omt {
  padding: 220px 0;
  position: relative;
  overflow: hidden;
}
.omt::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(41,151,255,0.18), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.omt__line {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.omt__title {
  font-size: clamp(40px, 7vw, 96px);
}

/* Buy -------------------------------------------------------------- */

.buy {
  padding: 120px 0 160px;
  border-top: 1px solid var(--line);
}
.buy__price {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
}
.buy__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #3ea2ff; }
.btn--ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--ink);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.6); }

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

.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}
.footer__quote {
  margin-top: 16px;
  font-style: italic;
  opacity: 0.7;
}

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

@media (max-width: 900px) {
  .feature--split .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .feature--reverse .container .feature__copy { order: 1; }
  .feature--reverse .container .feature__visual { order: 2; }
  .feature__visual { min-height: 320px; }
  .trio__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 48px; }
  .feature, .finish { padding: 112px 0; }
  .manifesto { padding: 140px 0 120px; }
  .omt { padding: 160px 0; }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 72px); }
  .phone-stage { margin-top: 56px; }
  .ring { width: 240px; height: 240px; }
  .ring__label span { font-size: 64px; }
  .card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone { transition: none; }
  .phone__wallpaper, .phone__shine, .hero__scroll span { animation: none; }
  .coffee__steam path { animation: none; opacity: 0.7; }
  .ring__fill { transition: none; }
}
