:root {
  --cream: #fff7f1;
  --coral: #ff6b4a;
  --coral-dark: #e5563d;
  --ink: #2a1c18;
  --ink-muted: rgba(42,28,24,.65);
  --glass: rgba(255,255,255,.92);
  --app-bg: #0d0b12;
  --app-card: #1a1820;
  --violet: #8B5CF6;
  --violet-light: #A855F7;
  --green: #22c55e;
  --red: #F03A2F;
  --grey: #8a8a94;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* Typography */
.kicker {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  letter-spacing: -.04em;
  line-height: 1;
  font-weight: 700;
  margin: 0 0 20px;
}

h1 em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--coral);
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 18px;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0 0 10px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 36ch;
  line-height: 1.6;
}

/* Navigation */
body > nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  width: min(1120px, calc(100% - 24px));
  margin: 12px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(42,28,24,.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color .2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: background .2s;
}

.btn:hover {
  background: var(--coral-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(42,28,24,.15);
}

.btn.ghost:hover {
  border-color: rgba(42,28,24,.3);
  background: rgba(42,28,24,.03);
}

/* Layout */
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

section {
  padding: 80px 0;
}

.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}

.demo-split{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center}
@media(max-width:900px){.demo-split{grid-template-columns:1fr}}

/* Realistic iPhone Device */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.phone-device {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 390 / 844;
  background: #000;
  border-radius: 46px;
  box-shadow: 
    0 0 0 10px #05070d,
    0 0 0 11px rgba(255,255,255,.14),
    0 30px 60px rgba(42,28,24,.2),
    0 50px 100px rgba(255,107,74,.12);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  50% { transform: translateY(-12px) rotateY(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-device { animation: none; }
}

/* Dynamic Island */
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
  pointer-events: none;
}

.island .mic {
  position: absolute;
  left: 18px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
}

/* Phone Screen */
.phone-screen {
  position: absolute;
  inset: 10px;
  border-radius: 36px;
  background: var(--app-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  color: #fff;
}

/* Status Bar */
.status-bar {
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 6px;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

.status-right {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}

.signal-bars {
  display: flex;
  gap: 1.5px;
  align-items: flex-end;
  height: 11px;
}

.signal-bars i {
  width: 3px;
  background: #fff;
  border-radius: 1px;
  display: block;
}

.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 6px; }
.signal-bars i:nth-child(3) { height: 8px; }
.signal-bars i:nth-child(4) { height: 11px; }

.battery {
  width: 22px;
  height: 11px;
  border: 1.4px solid #fff;
  border-radius: 3px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: #fff;
  border-radius: 0 1px 1px 0;
}

.battery b {
  display: block;
  height: 100%;
  width: 70%;
  background: #fff;
}

/* Phone Content */
.phone-content {
  flex: 1;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.phone-identity {
  font-size: 13px;
  color: #c4b5fd;
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
}

.incoming-card {
  background: var(--app-card);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(168,85,247,.3);
}

.incoming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.incoming-from {
  font-size: 16px;
  font-weight: 650;
  color: var(--violet-light);
}

.incoming-label {
  font-size: 11px;
  color: var(--grey);
  margin-top: 2px;
}

.call-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
}

.call-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.call-btn.accept {
  background: var(--green);
}

.call-btn.decline {
  background: var(--red);
}

.call-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.message-card {
  background: var(--app-card);
  border-radius: 14px;
  padding: 12px 14px;
}

.message-from {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 4px;
}

.message-text {
  font-size: 13px;
  color: #c9cde0;
}

.identity-ready {
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.identity-ready .label {
  color: var(--grey);
  font-size: 11px;
}

/* Home Indicator */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(255,255,255,.3);
  border-radius: 3px;
}

/* Steps */
.steps {
  display: flex;
  gap: 18px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}

.step b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Store Badges */
.stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}

.stores a {
  display: flex;
  align-items: center;
  height: 44px;
}

.stores img {
  height: 40px;
  width: auto;
}

.stores a:last-child img {
  height: 60px;
  margin-top: -10px;
  margin-bottom: -10px;
}

/* Chips */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,107,74,.12);
  border: 1.5px solid rgba(255,107,74,.2);
  color: var(--coral-dark);
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(42,28,24,.04);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42,28,24,.08);
}

.card p {
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Interactive Privacy Section */
.privacy-interactive {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  margin-top: 40px;
  background: #fff;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(42,28,24,.06);
}

.privacy-visual {
  position: relative;
  background: linear-gradient(135deg, rgba(255,107,74,.08), rgba(255,107,74,.02));
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}

.visual-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .4s ease;
  padding: 40px;
}

.visual-content.active {
  opacity: 1;
}

.visual-rail {
  text-align: center;
}

.rail-path {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.rail-node {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,107,74,.3);
  border-radius: 16px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,107,74,.1);
}

.rail-arrow {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255,107,74,.6), rgba(255,107,74,.2));
}

.rail-label {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 24ch;
}

.visual-door {
  text-align: center;
}

.door-container {
  position: relative;
  width: 180px;
  height: 240px;
  margin: 0 auto;
}

.door-frame {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 3px solid var(--coral);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 24px rgba(255,107,74,.2);
}

.door-knob {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--coral);
  border-radius: 50%;
  transform: translateY(-50%);
}

.door-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  text-align: center;
  line-height: 1.4;
}

.door-caption {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 26ch;
}

.visual-version {
  text-align: center;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

.version-card {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,107,74,.2);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.version-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.version-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.version-caption {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 28ch;
}

/* Privacy Options */
.privacy-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-option {
  background: rgba(255,107,74,.04);
  border: 2px solid rgba(255,107,74,.1);
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
}

.privacy-option.active {
  background: rgba(255,107,74,.08);
  border-color: var(--coral);
  box-shadow: 0 4px 16px rgba(255,107,74,.12);
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.option-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-badge {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.option-badge.default {
  background: rgba(34,197,94,.15);
  color: #15803d;
}

.option-badge.optional {
  background: rgba(255,107,74,.15);
  color: var(--coral-dark);
}

.option-badge.yours {
  background: rgba(139,92,246,.15);
  color: #7c3aed;
}

.option-body {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.privacy-option.active .option-body {
  max-height: 200px;
}

/* Principles */
.principles {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
}

.principles h2 {
  color: var(--cream);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.principles p {
  color: rgba(255,247,241,.8);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 42ch;
  margin: 20px auto 0;
}

/* Builders */
.builders .cards {
  margin-top: 28px;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 2px solid rgba(42,28,24,.08);
  margin-top: 60px;
}

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

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

.footer-links a {
  font-size: 14px;
  color: var(--ink-muted);
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero > div:first-child {
    order: 1;
  }

  .hero > div:last-child {
    order: 0;
  }

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

  .privacy-interactive {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .privacy-visual {
    min-height: 300px;
  }

  body > nav {
    padding: 10px 14px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  section {
    padding: 60px 0;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .phone-device {
    width: min(260px, 75vw);
  }

  .wrap {
    width: calc(100% - 32px);
  }
}

@media (max-width: 640px) {
  .steps {
    flex-direction: column;
    gap: 12px;
  }

  .chips {
    gap: 8px;
  }

  .chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  .privacy-visual {
    padding: 24px;
    min-height: 260px;
  }

  .door-container {
    width: 140px;
    height: 200px;
  }

  .version-grid {
    max-width: 220px;
  }
}

/* iOS lock screen — hero phone only */
.phone-device.lock .phone-screen {
  background:
    linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.05) 28%, rgba(0,0,0,.35) 100%),
    url("lock-sunset.jpg") center/cover no-repeat,
    url("https://images.unsplash.com/photo-1495616811223-4d98c6e9c869?auto=format&fit=crop&w=800&h=1600&q=70") center/cover no-repeat;
  color: #fff;
}
.phone-device.lock .lock-status { height: 48px; padding: 0 22px 4px; }
.phone-device.lock .lock-status > span { opacity: 0; width: 36px; }
.phone-device.lock .lock-clock { text-align: center; padding: 6px 0 14px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.phone-device.lock .lock-time { font-size: 76px; font-weight: 200; letter-spacing: -3px; line-height: .9; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; }
.phone-device.lock .lock-date { font-size: 19px; font-weight: 560; margin-top: 6px; letter-spacing: -.02em; }
.phone-device.lock .lock-notifs { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; flex: 1; }
.phone-device.lock .ios-banner {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start;
  background: rgba(255,255,255,.28); backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 22px; padding: 10px 12px 11px;
  border: 1px solid rgba(255,255,255,.28); box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.phone-device.lock .ios-banner-icon {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(160deg, #A855F7, #D946A6);
  box-shadow: 0 4px 10px rgba(168,85,247,.35);
}
.phone-device.lock .ios-banner-icon.msg { background: linear-gradient(160deg, #8B5CF6, #6366f1); }
.phone-device.lock .ios-banner-top { display: flex; justify-content: space-between; align-items: baseline; }
.phone-device.lock .ios-app { font-size: 11px; font-weight: 700; letter-spacing: .06em; opacity: .78; }
.phone-device.lock .ios-when { font-size: 11px; opacity: .62; }
.phone-device.lock .ios-title { font-size: 14px; font-weight: 700; line-height: 1.2; margin-top: 1px; }
.phone-device.lock .ios-text { font-size: 13px; opacity: .92; margin-top: 1px; }
.phone-device.lock .lock-docks { display: flex; justify-content: space-between; padding: 10px 22px 8px; }
.phone-device.lock .lock-pad {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(16px);
  display: grid; place-items: center;
}
.phone-device.lock .home-indicator { background: rgba(255,255,255,.85); }
