/* ============================================================
   Zappio — Shared Stylesheet
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --glass-bg: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.22);
  --blur: 28px;
  --accent: #0A84FF;
  --accent2: #BF5AF2;
  --accent3: #FF375F;
  --text: #F5F5F7;
  --text-muted: rgba(245,245,247,0.52);
  --radius: 28px;
  /* Natural Titanium palette */
  --ti-light: #C8BFB0;
  --ti-mid:   #A89F94;
  --ti-dark:  #7A736B;
  --ti-shine: #E2DAD0;
}

html {
  scroll-behavior: smooth;
  /* Contain horizontal bleed from decorative elements (hero phone glows).
     overflow-x: hidden on <body> alone is unreliable (esp. iOS Safari);
     clip is the robust fix and does not create a scroll container. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: 'Figtree', sans-serif;
  background: #07080D;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
}

/* ── Background ─────────────────────────────────────────────── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(10,132,255,0.5) 0%, transparent 70%);
  top: -200px; left: -150px;
  opacity: .5;
  animation-duration: 18s;
}
.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(191,90,242,0.45) 0%, transparent 70%);
  top: 25%; right: -180px;
  opacity: .45;
  animation-duration: 22s;
  animation-delay: -7s;
}
.orb-3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,55,95,0.35) 0%, transparent 70%);
  bottom: 8%; left: 18%;
  opacity: .3;
  animation-duration: 20s;
  animation-delay: -4s;
}
.orb-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(48,209,88,0.3) 0%, transparent 70%);
  bottom: -80px; right: 8%;
  opacity: .28;
  animation-duration: 24s;
  animation-delay: -11s;
}

@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(28px,-36px) scale(1.06); }
  100% { transform: translate(-22px,28px) scale(0.95); }
}

.bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .45;
  pointer-events: none;
}

/* ── Layout ─────────────────────────────────────────────────── */
.page { position: relative; z-index: 1; }

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(880px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.16);
  animation: fadeDown 0.7s ease both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: rgba(10,132,255,.22);
  border: 1px solid rgba(10,132,255,.4);
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.nav-cta:hover { background: rgba(10,132,255,.38); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 24px 60px;
}

/* Hero variant used on inner pages */
.hero--page {
  min-height: unset;
  padding: 140px 24px 50px;
  max-width: 980px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(10,132,255,.14);
  border: 1px solid rgba(10,132,255,.32);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #60B0FF;
  margin-bottom: 28px;
  animation: fadeUp .8s .2s ease both;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0A84FF;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.hero-title {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  animation: fadeUp .8s .35s ease both;
}
.hero-title .line-1 { display: block; color: #fff; }
.hero-title .line-2 {
  display: block;
  background: linear-gradient(135deg, #0A84FF, #BF5AF2 50%, #FF375F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #0A84FF, #BF5AF2 50%, #FF375F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 500px;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  animation: fadeUp .8s .5s ease both;
}

.hero p { color: var(--text-muted); }

/* ── Disclaimer Banner ──────────────────────────────────────── */
.disclaimer {
  max-width: 560px;
  margin-bottom: 36px;
  padding: 14px 20px;
  background: rgba(255,159,10,0.10);
  border: 1px solid rgba(255,159,10,0.30);
  border-radius: 16px;
  font-size: .85rem;
  color: rgba(255,210,120,0.9);
  line-height: 1.55;
  animation: fadeUp .8s .6s ease both;
}
.disclaimer strong { color: #FFD060; }

/* ── Buttons ────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .8s .7s ease both;
  margin-bottom: 80px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: linear-gradient(135deg, #0A84FF, #0060D0);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(10,132,255,.4), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 48px rgba(10,132,255,.55), inset 0 1px 0 rgba(255,255,255,.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background .2s, transform .2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Two Phones ─────────────────────────────────────────────── */
.phones-duo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0; /* was an invalid negative value (ignored); phones overlap via transforms */
  animation: fadeUp 1s .85s ease both;
  position: relative;
}

.phone-wrapper {
  position: relative;
  transition: transform .4s ease;
}
.phone-wrapper.left  { transform: rotate(-6deg) translateX(30px); z-index: 1; }
.phone-wrapper.right { transform: rotate(6deg) translateX(-30px); z-index: 1; }
.phone-wrapper:hover { transform: rotate(0deg) translateY(-12px) translateX(0) !important; z-index: 10; }

/* iPhone 15 Pro — Natural Titanium */
.iphone15pro {
  width: 260px;
  aspect-ratio: 706 / 1466;
  position: relative;
  height: auto;
  isolation: isolate;
}

.iphone15pro::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 17.8% / 8.6%;
  background: #050505;
  z-index: 0;
}

.iphone-screen-area {
  position: absolute;
  left: 6.8%;
  top: 3.68%;
  width: 86.4%;
  height: 91.95%;
  border-radius: 12.1% / 5.5%;
  background: #000;
  overflow: hidden;
  z-index: 1;
}

.screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12.1% / 5.5%;
}

.iphone-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.phone-glow-left {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-110%);
  width: 280px; height: 100px;
  background: radial-gradient(ellipse, rgba(10,132,255,.25) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.phone-glow-right {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(10%);
  width: 280px; height: 100px;
  background: radial-gradient(ellipse, rgba(191,90,242,.22) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.phone-label {
  text-align: center;
  margin-top: 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Features ───────────────────────────────────────────────── */
.section {
  padding: 100px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feat-card {
  padding: 30px 26px;
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .25s, background .25s;
}
.feat-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.1);
}
.feat-card.iap {
  background: rgba(255,159,10,0.07);
  border-color: rgba(255,159,10,0.22);
}
.feat-card.iap:hover { background: rgba(255,159,10,0.13); }

.feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.feat-icon.blue   { background: linear-gradient(135deg,rgba(10,132,255,.35),rgba(10,132,255,.1)); border: 1px solid rgba(10,132,255,.3); }
.feat-icon.purple { background: linear-gradient(135deg,rgba(191,90,242,.35),rgba(191,90,242,.1)); border: 1px solid rgba(191,90,242,.3); }
.feat-icon.red    { background: linear-gradient(135deg,rgba(255,55,95,.35),rgba(255,55,95,.1)); border: 1px solid rgba(255,55,95,.3); }
.feat-icon.green  { background: linear-gradient(135deg,rgba(48,209,88,.35),rgba(48,209,88,.1)); border: 1px solid rgba(48,209,88,.3); }
.feat-icon.orange { background: linear-gradient(135deg,rgba(255,159,10,.35),rgba(255,159,10,.1)); border: 1px solid rgba(255,159,10,.3); }
.feat-icon.teal   { background: linear-gradient(135deg,rgba(90,200,250,.35),rgba(90,200,250,.1)); border: 1px solid rgba(90,200,250,.3); }
.feat-icon.gold   { background: linear-gradient(135deg,rgba(255,214,10,.35),rgba(255,214,10,.1)); border: 1px solid rgba(255,214,10,.3); }

.feat-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feat-desc  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

.feat-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,159,10,.18);
  border: 1px solid rgba(255,159,10,.35);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #FFB830;
}

.iap-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.iap-header-line { flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.iap-header-label {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,159,10,.12);
  border: 1px solid rgba(255,159,10,.28);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FFB830;
  white-space: nowrap;
}

/* ── Stats ──────────────────────────────────────────────────── */
.stats-strip {
  max-width: 1080px;
  margin: 0 auto 100px;
  padding: 0 24px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  overflow: hidden;
}
.stat-cell {
  padding: 38px 24px;
  background: rgba(255,255,255,.04);
  text-align: center;
  backdrop-filter: blur(20px);
  transition: background .2s;
}
.stat-cell:hover { background: rgba(255,255,255,.08); }
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section {
  padding: 0 24px 120px;
  max-width: 1080px;
  margin: 0 auto;
}
.cta-inner {
  padding: 72px 48px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(10,132,255,.16), rgba(191,90,242,.12));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(32px);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 40px 80px rgba(0,0,0,.3);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(10,132,255,.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.cta-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 14px; }
.cta-disclaimer {
  font-size: .82rem;
  color: rgba(255,210,100,.75);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  transition: background .2s, transform .2s;
}
.badge:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.badge svg { width: 20px; height: 20px; }

/* ── Inner Page Content (Privacy, Terms, Support) ───────────── */
.content {
  max-width: 980px;
  margin: 0 auto 70px;
  padding: 0 24px;
}

.card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* reuse .section class for inner page sections (scoped via .card) */
.card .section { margin-bottom: 24px; }
.card .section h2 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; letter-spacing: -.01em; }
.card .section p,
.card .section li { color: var(--text-muted); line-height: 1.7; font-size: .95rem; }
ul { margin-left: 18px; }
a { color: #60B0FF; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.8;
}
footer strong { color: var(--text); }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .nav-cta { display: none; }
  .card { padding: 22px; }
}
@media (max-width: 640px) {
  nav {
    top: 12px;
    width: calc(100% - 20px);
    padding: 11px 14px;
  }
  .nav-logo { font-size: 1rem; }
  .hero {
    min-height: auto;
    padding: 102px 16px 46px;
  }
  .hero--page {
    padding: 102px 16px 36px;
  }
  .hero-title {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .disclaimer {
    margin-bottom: 24px;
    padding: 12px 14px;
    font-size: .82rem;
    line-height: 1.5;
  }
  .hero-actions {
    width: 100%;
    gap: 10px;
    margin-bottom: 44px;
  }
  .btn-primary,
  .btn-ghost {
    width: min(100%, 320px);
    justify-content: center;
    padding: 13px 20px;
    font-size: .98rem;
  }
  .section {
    padding: 72px 16px;
  }
  .section-title {
    margin-bottom: 34px;
  }
  .features-grid { grid-template-columns: 1fr; }
  .phones-duo {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .phone-wrapper.left,
  .phone-wrapper.right { transform: none; }
  .phone-label {
    margin-top: 12px;
    font-size: .72rem;
  }
  .cta-inner { padding: 48px 24px; }
  .iphone15pro { width: 214px; height: auto; }
  .content {
    padding: 0 16px;
  }
  .card {
    padding: 18px;
    border-radius: 18px;
  }
}
@media (max-width: 480px) {
  nav {
    top: 8px;
    width: calc(100% - 12px);
    padding: 10px 12px;
  }
  .hero {
    padding: 86px 12px 34px;
  }
  .hero--page {
    padding: 86px 12px 30px;
  }
  .hero-eyebrow {
    font-size: .66rem;
    padding: 5px 12px;
    margin-bottom: 18px;
  }
  .hero-sub {
    font-size: .96rem;
  }
  .disclaimer {
    max-width: 100%;
  }
  .section,
  .stats-strip,
  .cta-section,
  footer {
    padding-left: 12px;
    padding-right: 12px;
  }
  .feat-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .stat-cell {
    padding: 28px 16px;
  }
  .stat-num {
    font-size: 2rem;
  }
  .cta-inner {
    border-radius: 24px;
    padding: 36px 16px;
  }
  .badge {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
  }
  .iphone15pro {
    width: 194px;
    height: auto;
  }
  .stats-inner { grid-template-columns: 1fr; }
}
