/* ════════════════════════════════════════════════
   OBSIDIAN GLASS — dumoreapps.com
   ════════════════════════════════════════════════ */

:root {
  --bg: #06060e;
  --surface: #0c0c18;
  --card: #111120;
  --accent: #6c63ff;        /* electric indigo */
  --accent-2: #00d4ff;       /* cyan */
  --text: #e8e8f4;
  --muted: #7070a0;
  --dim: #40405a;

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --nav-h: 52px;
  --shelf-h: 64px;

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
}

/* Global grain overlay — 4% opacity SVG noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Custom cursor — hide native on desktop */
@media (hover: hover) and (pointer: fine) {
  html, html * { cursor: none !important; }
}

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 220ms var(--ease-out), height 220ms var(--ease-out),
              border-radius 220ms var(--ease-out);
  mix-blend-mode: difference;
  will-change: transform;
}
#cursor-dot.expand {
  width: 28px; height: 28px;
}
#cursor-dot.cross {
  width: 28px; height: 28px;
  background: transparent;
  border-radius: 0;
}
#cursor-dot.cross::before, #cursor-dot.cross::after {
  content: ""; position: absolute; background: #fff;
  top: 50%; left: 50%;
}
#cursor-dot.cross::before { width: 28px; height: 1px; transform: translate(-50%, -50%); }
#cursor-dot.cross::after  { width: 1px; height: 28px; transform: translate(-50%, -50%); }
@media (hover: none), (pointer: coarse) { #cursor-dot { display: none; } }

/* ════════════════════════════════════════════════
   S1 — NAV (52px)
   ════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
  background: transparent;
  transition: background 280ms ease, backdrop-filter 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 6, 14, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(255,255,255,0.06);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav__brand em { font-style: italic; color: var(--accent-2); }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: auto;
  list-style: none;
}
.nav__links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  display: inline-block;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease-out;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a:not(:hover)::after { transform-origin: right center; }

/* Compact App Store badge for nav (full-size variant lives further down) */
.appstore-badge.appstore-badge--sm {
  height: 34px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  gap: 8px;
}
.appstore-badge.appstore-badge--sm svg { width: 16px; height: 16px; }
.appstore-badge.appstore-badge--sm .appstore-badge__small { font-size: 7px; }
.appstore-badge.appstore-badge--sm .appstore-badge__big   { font-size: 12px; margin-top: 1px; }
.appstore-badge__big { white-space: nowrap; }
.appstore-badge__small { white-space: nowrap; }

@media (max-width: 767px) {
  .nav { padding: 0 18px; gap: 12px; }
  .nav__links { display: none; }
}

/* ════════════════════════════════════════════════
   S2 — APP SHELF (64px, sticky below nav)
   ════════════════════════════════════════════════ */
.shelf {
  position: sticky;
  top: var(--nav-h);
  height: var(--shelf-h);
  z-index: 90;
  background: rgba(6, 6, 14, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 32px;
  margin-top: var(--nav-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }

.shelf__inner {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 100%;
}

.app-card {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  position: relative;
  transition: filter 160ms ease, border-color 160ms ease, background 160ms ease;
  flex-shrink: 0;
}
.app-card:hover {
  filter: brightness(1.06);
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.app-card.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--accent-2);
  border-radius: 1px;
}
.app-card__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  background: #0a0a14;
}
.app-card__icon img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}

.app-card__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}
.app-card__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
  white-space: nowrap;
}
.app-card__sub {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.app-card__sub .sep { color: var(--dim); margin: 0 4px; }

@media (max-width: 767px) {
  .shelf { padding: 0 18px; }
}

/* ════════════════════════════════════════════════
   S3 — HERO (100vh)
   ════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - var(--shelf-h));
  padding: 80px 64px 60px;
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero__glow--indigo {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.55) 0%, transparent 70%);
  top: -120px; right: -80px;
  opacity: 0.18;
}
.hero__glow--cyan {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.5) 0%, transparent 70%);
  bottom: -100px; left: -60px;
  opacity: 0.16;
}

.hero__copy { position: relative; z-index: 2; max-width: 620px; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent-2);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero h1 .line2 {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.hero__sub {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.55;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 18px 0 16px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  transition: filter 160ms ease, transform 160ms var(--ease-out);
}
.appstore-badge:hover { filter: brightness(1.15); transform: scale(1.02); }
.appstore-badge svg { width: 22px; height: 22px; }
.appstore-badge__txt { display: flex; flex-direction: column; line-height: 1; }
.appstore-badge__small { font-size: 9px; letter-spacing: 0.04em; opacity: 0.85; }
.appstore-badge__big { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; margin-top: 3px; }

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 64px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll .chev {
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* iPhone CSS frame (pure CSS device) */
.hero__device { position: relative; z-index: 2; justify-self: center; }

.iphone {
  position: relative;
  width: 300px;
  height: 612px;
  border-radius: 48px;
  padding: 8px;
  background:
    linear-gradient(180deg, #2a2a35 0%, #14141c 60%, #1a1a26 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1.5px 0 rgba(255,255,255,0.15),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 10px 30px -10px rgba(108, 99, 255, 0.35);
  transform: rotateY(-3deg) translateY(0);
  transform-style: preserve-3d;
  perspective: 1000px;
}
.iphone::before {
  /* side rail highlight */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 44px;
  background: linear-gradient(180deg, #0a0a12 0%, #1a1a26 100%);
  z-index: 0;
}
.iphone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
  z-index: 1;
}
.iphone__island {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #000;
  border-radius: 16px;
  z-index: 5;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.04);
}

/* Split screen demo content inside phone */
.split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 6px 1fr;
  background: #06060e;
  transition: opacity 600ms ease;
  opacity: 0;
}
.split.active { opacity: 1; }
.split__divider {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  position: relative;
}
.split__divider::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 32px; height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.split__pane {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.split__pane.dark { background: #0d0d14; color: #fff; }

/* Pane chrome (mini browser bar) */
.pane__bar {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.pane__bar .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.pane__url {
  flex: 1;
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
}

.pane__body { flex: 1; position: relative; overflow: hidden; }

/* YouTube mock */
.mock-yt { background: #0d0d14; }
.mock-yt__player {
  margin: 8px;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a0c0c 0%, #2a0808 100%);
  border-radius: 4px;
  position: relative;
  display: grid; place-items: center;
}
.mock-yt__play {
  width: 24px; height: 24px;
  background: #ff0000;
  border-radius: 50%;
  position: relative;
}
.mock-yt__play::after {
  content: "";
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}
.mock-yt__title { padding: 0 10px; font-size: 9px; color: rgba(255,255,255,0.85); line-height: 1.3; }
.mock-yt__meta { padding: 4px 10px 0; font-size: 7px; color: rgba(255,255,255,0.45); }
.mock-yt__row { display: flex; gap: 8px; padding: 8px 10px; align-items: center; }
.mock-yt__thumb { width: 60px; height: 36px; background: rgba(255,255,255,0.06); border-radius: 3px; flex-shrink: 0; }
.mock-yt__rowtxt { font-size: 7px; line-height: 1.3; color: rgba(255,255,255,0.7); }

/* Twitter/X mock */
.mock-tw { background: #000; padding: 8px 10px; gap: 8px; display: flex; flex-direction: column; }
.mock-tw__tweet { display: flex; gap: 6px; align-items: flex-start; }
.mock-tw__avatar { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #6c63ff, #00d4ff); flex-shrink: 0; }
.mock-tw__body { flex: 1; }
.mock-tw__name { font-size: 8px; font-weight: 700; color: #fff; }
.mock-tw__handle { font-size: 7px; color: rgba(255,255,255,0.45); }
.mock-tw__text { font-size: 8px; color: rgba(255,255,255,0.9); margin-top: 2px; line-height: 1.35; }
.mock-tw__divider { height: 1px; background: rgba(255,255,255,0.08); }

/* Maps mock */
.mock-maps { background: #0a1a2a; position: relative; }
.mock-maps__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 212, 255, 0.18) 0%, transparent 40%),
    linear-gradient(135deg, #0a1a2a 0%, #122538 100%);
}
.mock-maps__road {
  position: absolute; inset: 0; pointer-events: none;
}
.mock-maps__road svg { width: 100%; height: 100%; }
.mock-maps__pin {
  position: absolute;
  top: 40%; left: 55%;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.35);
}
.mock-maps__card {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 8px;
  color: #fff;
}
.mock-maps__card b { display: block; font-size: 9px; margin-bottom: 1px; }
.mock-maps__card span { color: rgba(255,255,255,0.55); font-size: 7px; }

/* Spotify mock */
.mock-spo { background: linear-gradient(180deg, #1b4d2e 0%, #050a08 100%); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-spo__art { width: 80px; height: 80px; background: linear-gradient(135deg, #1ed760, #064e2e); border-radius: 4px; align-self: center; box-shadow: 0 6px 16px rgba(0,0,0,0.5); }
.mock-spo__track { text-align: center; font-size: 9px; font-weight: 700; color: #fff; }
.mock-spo__artist { text-align: center; font-size: 7px; color: rgba(255,255,255,0.6); }
.mock-spo__bar { height: 2px; background: rgba(255,255,255,0.18); border-radius: 2px; position: relative; margin-top: 4px; }
.mock-spo__bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 45%; background: #1ed760; border-radius: 2px; }
.mock-spo__controls { display: flex; justify-content: center; gap: 12px; margin-top: 2px; }
.mock-spo__btn { width: 12px; height: 12px; background: rgba(255,255,255,0.3); border-radius: 50%; }
.mock-spo__btn.play { background: #fff; width: 18px; height: 18px; }

/* Gmail mock */
.mock-gm { background: #0d0d14; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mock-gm__item { display: flex; gap: 6px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mock-gm__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); margin-top: 3px; flex-shrink: 0; }
.mock-gm__txt { flex: 1; }
.mock-gm__sender { font-size: 8px; font-weight: 700; color: #fff; }
.mock-gm__sub { font-size: 7px; color: rgba(255,255,255,0.55); margin-top: 1px; line-height: 1.3; }

/* BBC News mock */
.mock-bbc { background: #0a0a12; padding: 0 0 8px; }
.mock-bbc__strap { background: #bb1919; padding: 4px 8px; font-size: 8px; font-weight: 700; color: #fff; letter-spacing: 0.06em; }
.mock-bbc__hero { margin: 6px 8px; height: 60px; background: linear-gradient(135deg, #1a1a2a, #2a2a3a); border-radius: 2px; }
.mock-bbc__head { padding: 0 8px; font-size: 9px; font-weight: 700; color: #fff; line-height: 1.25; }
.mock-bbc__lede { padding: 2px 8px 0; font-size: 7px; color: rgba(255,255,255,0.55); line-height: 1.3; }

/* WhatsApp mock */
.mock-wa { background: #0a1410; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mock-wa__msg { max-width: 75%; padding: 4px 6px; border-radius: 6px; font-size: 8px; line-height: 1.3; }
.mock-wa__msg.them { background: rgba(255,255,255,0.06); color: #fff; align-self: flex-start; border-bottom-left-radius: 2px; }
.mock-wa__msg.you  { background: #1ed760; color: #062a18; align-self: flex-end; border-bottom-right-radius: 2px; font-weight: 700; }

/* Reddit mock */
.mock-rd { background: #0d0d14; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mock-rd__post { padding: 6px; background: rgba(255,255,255,0.03); border-radius: 4px; border-left: 2px solid #ff4500; }
.mock-rd__sub { font-size: 7px; color: rgba(255,255,255,0.45); }
.mock-rd__title { font-size: 8px; font-weight: 700; color: #fff; line-height: 1.3; margin-top: 2px; }
.mock-rd__meta { font-size: 7px; color: rgba(255,255,255,0.4); margin-top: 3px; }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 60px 32px; gap: 60px; }
  .iphone { transform: rotateY(0) scale(0.9); }
  .hero__scroll { left: 32px; }
}
@media (max-width: 767px) {
  .hero { padding: 40px 18px 80px; }
  .iphone { transform: scale(0.78); transform-origin: top center; margin-bottom: -100px; }
  .hero__scroll { left: 18px; bottom: 18px; }
}

/* ════════════════════════════════════════════════
   S4 — PROOF BAR (50vh)
   ════════════════════════════════════════════════ */
.proof {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 100px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 0;
}
.stat {
  text-align: center;
  padding: 20px 16px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.stat__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
}
.stat__num .suffix {
  font-size: 0.45em;
  color: var(--accent-2);
  font-style: italic;
  margin-left: 6px;
  letter-spacing: -0.01em;
}
.stat__label {
  display: block;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 767px) {
  .proof { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .stat + .stat::before { display: none; }
  .stat { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 40px; }
  .stat:first-child { border-top: 0; padding-top: 20px; }
}

/* ════════════════════════════════════════════════
   S5 — PINNED PHONE DEMO (200vh)
   ════════════════════════════════════════════════ */
.pinned {
  position: relative;
  height: 300vh;
}
.pinned__stage {
  height: 100vh;
  position: sticky;
  top: 0;
  display: grid;
  /* explicit min-widths on side cells so they don't collapse —
     state-copy children are absolutely positioned, so the cell has no intrinsic width */
  grid-template-columns: minmax(300px, 1fr) 360px minmax(300px, 1fr);
  align-items: center;
  padding: 0 64px;
  gap: 40px;
  overflow: hidden;
  justify-content: center;
}
.pinned__bg-text {
  position: absolute;
  top: 50%;
  left: -2vw;
  right: -2vw;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(180px, 22vw, 320px);
  line-height: 0.9;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.04em;
  font-style: italic;
  font-weight: 400;
  will-change: transform;
}

.pinned__phone {
  position: relative;
  z-index: 2;
  justify-self: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.pinned__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  /* abs children need a real box to inset into */
  min-height: 280px;
}
.pinned__copy.left  { justify-self: end;   text-align: right; }
.pinned__copy.right { justify-self: start; text-align: left; }

.state-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.state-copy.active { opacity: 1; }
.state-copy__num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.state-copy__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.state-copy__h em { font-style: italic; color: var(--accent-2); }
.state-copy__p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.state-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.state-dot {
  width: 32px; height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
  transition: background 300ms ease, width 300ms ease;
}
.state-dot.active { background: var(--accent-2); width: 48px; }

/* Below ~1100px the 3-col layout starts to crowd — switch to single column.
   Threshold raised from 1024 because the side cells need 300px minimum each
   for headline copy to wrap naturally. */
@media (max-width: 1100px) {
  .pinned__stage {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 80px 24px;
  }
  .pinned__copy {
    width: min(560px, 100%);
    max-width: 100%;
    min-height: 200px;
    text-align: center !important;
    justify-self: center !important;
  }
  .pinned__copy.right { order: 3; min-height: 0; }
  .pinned__copy.right:empty { display: none; }
}
@media (max-width: 767px) {
  .pinned { height: auto; }
  .pinned__stage { position: relative; top: auto; height: auto; gap: 24px; padding: 60px 18px; }
  .pinned__bg-text { display: none; }
  .state-copy { position: relative; opacity: 1; pointer-events: auto; }
  .state-indicators { display: none; }
  .pinned__phone { transform: scale(0.85); }
}

/* ════════════════════════════════════════════════
   S6 — CLIP-PATH REVEALS (120vh)
   ════════════════════════════════════════════════ */
.reveals {
  position: relative;
  padding: 120px 64px;
  overflow: hidden;
  background: var(--bg);
}
.reveals__bgtext {
  position: absolute;
  top: 50%;
  left: -4vw;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(160px, 20vw, 280px);
  color: rgba(255,255,255,0.035);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  font-weight: 400;
  letter-spacing: -0.04em;
  will-change: transform;
}
.reveals__head {
  position: relative; z-index: 2;
  max-width: 700px;
  margin: 0 auto 80px;
  text-align: center;
}
.reveals__h {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.reveals__h em { font-style: italic; color: var(--accent-2); }
.reveals__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.reveal-card {
  aspect-ratio: 4/5;
  background: var(--card);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  clip-path: inset(40% 40% 40% 40% round 12px);
  transform: scale(0.6);
  will-change: clip-path, transform;
}
.reveal-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
}
.reveal-card__h {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.reveal-card__p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.reveal-card__visual {
  flex: 1;
  margin: 24px -28px;
  background: linear-gradient(135deg, rgba(108,99,255,0.12) 0%, rgba(0,212,255,0.08) 100%);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  display: grid;
  place-items: center;
}
@media (max-width: 1024px) { .reveals__grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .reveals { padding: 60px 18px; } }

/* ════════════════════════════════════════════════
   S7 — FEATURE GRID (7 cards)
   ════════════════════════════════════════════════ */
.features {
  padding: 140px 64px;
  background: var(--surface);
  position: relative;
}
.features__head {
  max-width: 700px;
  margin: 0 auto 64px;
  text-align: center;
}
.features__h {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.features__h em { font-style: italic; color: var(--accent-2); }
.features__p {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.feat {
  position: relative;
  padding: 28px 24px 30px;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 220ms cubic-bezier(0.2,0,0,1),
              border-color 220ms cubic-bezier(0.2,0,0,1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}
.feat.in { opacity: 1; transform: translateY(0); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0,0,1), border-color 220ms ease; }
.feat:hover {
  transform: translateY(-4px);
  border-color: rgba(108,99,255,0.4);
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(108,99,255,0.18) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.feat:hover::before { opacity: 1; }

.feat__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.feat__h {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.feat__p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: auto;
}

/* Card #4 — Left-hand support (differentiator) — span 2, dark accent */
.feat--lefthand {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(108,99,255,0.08) 0%, rgba(0,212,255,0.04) 100%);
  border-color: rgba(108,99,255,0.18);
  flex-direction: row;
  align-items: center;
  gap: 32px;
  min-height: 280px;
}
.feat--lefthand .feat__body { flex: 1; }
.feat--lefthand .feat__h { font-size: 36px; }
.feat--lefthand .feat__p { max-width: 380px; font-size: 14px; }
.feat--lefthand .feat__visual {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: 9/16;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #0a0a12 0%, #14141c 100%);
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.feat--lefthand .feat__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(108,99,255,0.12) 0%, transparent 100%);
}
.feat--lefthand .feat__visual-inner {
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  gap: 4px;
}
.feat--lefthand .feat__chip {
  height: 32px;
  background: rgba(108,99,255,0.18);
  border-radius: 8px;
  align-self: flex-end;
  width: 70%;
  display: flex; align-items: center; padding: 0 10px;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feat--lefthand { grid-column: span 2; }
}
@media (max-width: 767px) {
  .features { padding: 80px 18px; }
  .features__grid { grid-template-columns: 1fr; }
  .feat--lefthand { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .feat--lefthand .feat__visual { width: 100%; max-width: 200px; align-self: center; }
}

/* ════════════════════════════════════════════════
   S8 — PAY ONCE STATEMENT (100vh)
   ════════════════════════════════════════════════ */
.payonce {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.payonce__h {
  font-family: var(--serif);
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 2;
}
.payonce__h em { font-style: italic; color: var(--accent-2); }
.payonce__h .underlined {
  position: relative;
  display: inline-block;
}
.payonce__underline {
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 14px;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}
.payonce__underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}
.payonce__sub {
  margin-top: 40px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.payonce__sub b { color: var(--text); font-weight: 700; }
.payonce__sub .sep { color: var(--dim); margin: 0 12px; }
.payonce__cta { margin-top: 40px; }

/* ════════════════════════════════════════════════
   S9 — iPad SHOWCASE (60vh+)
   ════════════════════════════════════════════════ */
.ipad-section {
  position: relative;
  padding: 140px 64px;
  background: var(--surface);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.ipad-section__bgtext {
  position: absolute;
  top: 50%; right: -4vw;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(180px, 24vw, 320px);
  font-weight: 400;
  color: rgba(255,255,255,0.035);
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  will-change: transform;
}
.ipad-section__wrap {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.ipad-section__copy h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.ipad-section__copy h2 em { font-style: italic; color: var(--accent-2); }
.ipad-section__copy p {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.55;
}

.ipad {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(180deg, #2a2a35 0%, #14141c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 50px 100px -30px rgba(0,0,0,0.7),
    0 10px 30px -10px rgba(0, 212, 255, 0.25);
  position: relative;
  transform: translateX(80px);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.2,0,0,1), opacity 1.1s ease;
}
.ipad.in { transform: translateX(0); opacity: 1; }
.ipad__screen {
  width: 100%; height: 100%;
  border-radius: 16px;
  background: #06060e;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 6px 1fr;
}
.ipad__screen .split__divider { width: 6px; height: 100%; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.18), transparent); }
.ipad__screen .split__divider::after { width: 3px; height: 32px; }
.ipad__pane { overflow: hidden; position: relative; }

@media (max-width: 1024px) {
  .ipad-section__wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .ipad-section { padding: 80px 18px; }
}

/* ════════════════════════════════════════════════
   S10 — DEVELOPER NOTE
   ════════════════════════════════════════════════ */
.devnote {
  padding: 160px 32px;
  text-align: center;
  background: var(--bg);
}
.devnote__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 880px;
  margin: 0 auto;
  color: var(--text);
}
.devnote__quote .word {
  display: inline-block;
  opacity: 0.18;
  transition: opacity 240ms ease;
  margin-right: 0.22em;
}
.devnote__quote .word.lit { opacity: 1; }
.devnote__sign {
  margin-top: 56px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.devnote__sign b { color: var(--text); }

/* ════════════════════════════════════════════════
   S11 — FINAL CTA + FOOTER
   ════════════════════════════════════════════════ */
.final {
  min-height: 100vh;
  position: relative;
  padding: 120px 32px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.final::before, .final::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.final::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.4) 0%, transparent 70%);
  top: 5%; left: 50%; transform: translateX(-50%);
  opacity: 0.18;
}
.final::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.4) 0%, transparent 70%);
  bottom: 20%; right: 10%;
  opacity: 0.14;
}
.final__h {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.final__h em { font-style: italic; color: var(--accent-2); }
.final__sub {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
  position: relative; z-index: 2;
}
.final__cta {
  margin-top: 44px;
  display: inline-flex;
  position: relative; z-index: 2;
}

.footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding: 80px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1280px;
}
.footer__copy { font-size: 12px; color: var(--muted); font-weight: 300; }
.footer__copy em { font-family: var(--serif); font-style: italic; color: var(--text); }
.footer__links { display: flex; gap: 24px; list-style: none; }
.footer__links a {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  transition: color 150ms ease;
  position: relative;
}
.footer__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform 150ms ease-out;
}
.footer__links a:hover { color: var(--text); }
.footer__links a:hover::after { transform: scaleX(1); }

@media (max-width: 767px) {
  .final { padding: 80px 18px 40px; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-card { clip-path: inset(0 round 0) !important; transform: scale(1) !important; }
  .feat { opacity: 1 !important; transform: none !important; }
  .ipad { opacity: 1 !important; transform: none !important; }
  #cursor-dot { display: none; }
  html, html * { cursor: auto !important; }
}
