/* ─────────────────────────────────────────
   RESET & VARIABLES
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:  #0f3460;
  --blue-mid:   #16213e;
  --blue-deep:  #1a1a2e;
  --accent:     #e94560;
  --green:      #22c55e;
  --purple:     #7c3aed;
  --text:       #374151;
  --text-light: #6b7280;
  --bg:         #f5f7fa;
  --white:      #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}


/* ─────────────────────────────────────────
   NAV (shared)
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.nav-icon {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: #c0392b; }


/* ─────────────────────────────────────────
   FOOTER (shared)
───────────────────────────────────────── */
footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.5);
  padding: 40px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-brand {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.footer-links,
.footer-links-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a,
.footer-links-row a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-links-row a:hover { color: #fff; }
.footer-copy {
  font-size: 12px;
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}


/* ─────────────────────────────────────────
   INDEX — HERO
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue-mid) 50%, var(--blue-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(233,69,96,0.14) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 900;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 12px;
}
.hero h1 .dice { font-size: 0.85em; }

.hero-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.btn-appstore {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.btn-appstore img {
  height: 52px;
  width: auto;
  display: block;
}
.btn-appstore:hover { transform: translateY(-2px); opacity: 0.85; }

.btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.btn-learn:hover { background: rgba(255,255,255,0.18); }

.hero-phones {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.hero-phones img {
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
}
.hero-phones img:nth-child(1) { width: 175px; transform: rotate(-4deg) translateY(16px); }
.hero-phones img:nth-child(2) { width: 195px; transform: translateY(0); }
.hero-phones img:nth-child(3) { width: 175px; transform: rotate(4deg) translateY(16px); }
.hero-phones img:hover { transform: translateY(-8px) rotate(0deg) !important; }
@media (max-width: 600px) {
  .hero-phones img:nth-child(1),
  .hero-phones img:nth-child(3) { display: none; }
  .hero-phones img:nth-child(2) { width: 220px; }
}


/* ─────────────────────────────────────────
   INDEX — SECTION BASE
───────────────────────────────────────── */
section { padding: 96px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--blue-deep);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 560px;
}


/* ─────────────────────────────────────────
   INDEX — FEATURES
───────────────────────────────────────── */
.features { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,52,96,0.10);
}
.feature-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 18px; font-weight: 800; color: var(--blue-deep); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-light); line-height: 1.6; }


/* ─────────────────────────────────────────
   INDEX — iPHONE GALLERY
───────────────────────────────────────── */
.gallery { background: var(--bg); }
.gallery-header { margin-bottom: 48px; }

.scroll-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 4px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15,52,96,0.2) transparent;
}
.scroll-gallery::-webkit-scrollbar { height: 4px; }
.scroll-gallery::-webkit-scrollbar-thumb { background: rgba(15,52,96,0.2); border-radius: 4px; }
.scroll-gallery img {
  flex-shrink: 0;
  scroll-snap-align: center;
  height: 520px;
  width: auto;
  transition: transform 0.25s;
}
.scroll-gallery img:hover { transform: scale(1.03); }


/* ─────────────────────────────────────────
   INDEX — iPAD SECTION
───────────────────────────────────────── */
.ipad-section {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  color: #fff;
}
.ipad-section .section-title { color: #fff; }
.ipad-section .section-desc  { color: rgba(255,255,255,0.65); max-width: 520px; }
.ipad-section .section-label { color: #93c5fd; }

.ipad-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}
@media (max-width: 768px) { .ipad-layout { grid-template-columns: 1fr; } }

.ipad-text ul {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ipad-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}
.ipad-text ul li .check {
  width: 24px;
  height: 24px;
  background: rgba(34,197,94,0.2);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ipad-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ipad-images img { width: 100%; }
.ipad-images img:nth-child(1) { grid-column: 1 / -1; }


/* ─────────────────────────────────────────
   INDEX — STATS STRIP
───────────────────────────────────────── */
.stats { background: var(--accent); padding: 56px 24px; }
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-item .num   { font-size: 48px; font-weight: 900; color: #fff; letter-spacing: -2px; line-height: 1; }
.stat-item .label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.75); margin-top: 4px; }


/* ─────────────────────────────────────────
   INDEX — CTA
───────────────────────────────────────── */
.cta-section { background: #fff; text-align: center; padding: 96px 24px; }
.cta-section .section-title { margin: 0 auto 16px; }
.cta-section .section-desc  { margin: 0 auto 40px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* ─────────────────────────────────────────
   LEGAL PAGES (scoped to .page-wrap)
───────────────────────────────────────── */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Header banner */
.page-wrap header {
  text-align: center;
  padding: 56px 32px 48px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(15,52,96,0.18);
}
.page-wrap header .badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.page-wrap header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.page-wrap header .app-name {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}
.page-wrap header .meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.page-wrap header .meta span { display: flex; align-items: center; gap: 6px; }

/* Content sections (card style) */
.page-wrap section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 36px 36px 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  scroll-margin-top: 24px;
}
@media (max-width: 600px) { .page-wrap section { padding: 24px 20px; } }

.page-wrap section h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f3460;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #0f3460;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.page-wrap h3 { font-size: 15px; font-weight: 700; color: #16213e; margin: 24px 0 10px; }

.page-wrap p { margin-bottom: 14px; color: #374151; font-size: 15px; }
.page-wrap p:last-child { margin-bottom: 0; }

.page-wrap ul { margin: 10px 0 16px 0; padding-left: 0; list-style: none; }
.page-wrap ul li {
  position: relative;
  padding: 6px 12px 6px 28px;
  font-size: 15px;
  color: #374151;
  border-radius: 6px;
  transition: background 0.15s;
}
.page-wrap ul li:hover { background: #f8fafc; }
.page-wrap ul li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 7px;
  height: 7px;
  background: #0f3460;
  border-radius: 50%;
}

.page-wrap a { color: #0f3460; }
.page-wrap a:hover { color: #e94560; }

/* Callout box */
.callout {
  background: #eff6ff;
  border-left: 4px solid #0f3460;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: #1e3a5f;
}
.callout.warning {
  background: #fff7ed;
  border-left-color: #c2410c;
  color: #7c2d12;
}

/* Contact block */
.contact-block {
  background: linear-gradient(135deg, #0f3460, #16213e);
  color: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 20px;
}
.contact-block p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 6px; }
.contact-block .company { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.contact-block a { color: #93c5fd; text-decoration: none; font-weight: 600; }
.contact-block a:hover { color: #fff; }

/* Third-party cards (privacy policy) */
.third-party-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 22px;
  margin: 16px 0;
  background: #f8fafc;
}
.third-party-card h4 { font-size: 15px; font-weight: 700; color: #0f3460; margin-bottom: 10px; }
.third-party-card p  { font-size: 14px; margin-bottom: 8px; }
.third-party-card .links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.third-party-card .links a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #0f3460;
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 6px;
}
.third-party-card .links a:hover { background: #0f3460; color: #fff; border-color: #0f3460; }
