/* ═══════════════════════════════════════════════════════════════
   ios-design.css  —  Global Apple / iOS design system overrides
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --ios-bg:        #f5f5f7;
  --ios-surface:   #ffffff;
  --ios-navy:      #050e1f;
  --ios-blue:      #2563eb;
  --ios-blue-dk:   #1d4ed8;
  --ios-indigo:    #6366f1;
  --ios-teal:      #14b8a6;
  --ios-label:     #1d1d1f;
  --ios-label-2:   #6e6e73;
  --ios-label-3:   #aeaeb2;
  --ios-sep:       rgba(0,0,0,.06);
  --ios-radius-sm: 12px;
  --ios-radius:    18px;
  --ios-radius-lg: 24px;
  --ios-radius-xl: 28px;
  --ios-font:      -apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',sans-serif;
  --ios-font-disp: -apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI',sans-serif;
  --ios-shadow-sm: 0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.06);
  --ios-shadow:    0 2px 8px rgba(0,0,0,.05),0 12px 36px rgba(0,0,0,.09);
  --ios-shadow-lg: 0 4px 16px rgba(0,0,0,.07),0 24px 64px rgba(0,0,0,.13);
}

body {
  background: var(--ios-bg);
  font-family: var(--ios-font);
  color: var(--ios-label);
  margin: 0;
}


/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 48px;
  background: #0a0f23;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: #fff;
  text-decoration: none;
  transition: opacity .18s;
}
.footer-logo:hover { opacity: .8; }
.logo-icon { font-size: 25px; }
.footer-copy { font-size: 15px; color: rgba(255,255,255,.38); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 15px; color: rgba(255,255,255,.45); text-decoration: none;
  transition: color .18s;
}
.footer-links a:hover { color: rgba(255,255,255,.8); }
@media(max-width:680px) {
  footer { padding: 24px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── SHARED HERO PATTERN ─────────────────────────────────────── */
.ios-hero {
  position: relative;
  background: linear-gradient(160deg, #050e1f 0%, #0a1a3a 55%, #0d2050 100%);
  padding: 110px 60px 110px;
  text-align: center;
  overflow: hidden;
  margin-top: 72px; /* offset fixed nav */
}
.ios-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.ios-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.ios-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 6px 18px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.ios-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  animation: iOSBlink 2.2s ease-in-out infinite;
}
@keyframes iOSBlink { 0%,100%{opacity:1}50%{opacity:.25} }

.ios-hero h1 {
  font-size: clamp(47px, 6.5vw, 90px);
  font-weight: 800; letter-spacing: -2px;
  color: #fff; line-height: 1.06; margin: 0 0 20px;
  font-family: var(--ios-font-disp);
}
.ios-hero h1 em { font-style: normal; }
.ios-hero p {
  font-size: 20px; color: rgba(255,255,255,.58);
  line-height: 1.65; max-width: 540px; margin: 0 auto;
}

/* orbs */
.ios-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: iOSOrb 10s ease-in-out infinite alternate;
}
@keyframes iOSOrb {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(28px,36px) scale(1.12); }
}

/* ── SHARED SECTION WRAPPER ──────────────────────────────────── */
.ios-section {
  max-width: 1120px; margin: 0 auto; padding: 80px 48px;
}
.ios-section-head {
  text-align: center; margin-bottom: 56px;
}
.ios-section-head h2 {
  font-size: clamp(32px, 4vw, 47px); font-weight: 800;
  letter-spacing: -.8px; color: var(--ios-label); margin: 0 0 12px;
  font-family: var(--ios-font-disp);
}
.ios-section-head p { font-size: 18px; font-weight: 500; color: var(--ios-label-2); margin: 0; }

/* ── GLASS CARD ──────────────────────────────────────────────── */
.ios-card {
  background: var(--ios-surface);
  border: 1px solid var(--ios-sep);
  border-radius: var(--ios-radius-xl);
  box-shadow: var(--ios-shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.ios-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ios-shadow-lg);
}

/* ── SHARED BUTTONS ──────────────────────────────────────────── */
.ios-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  background: linear-gradient(135deg,#1e3a8a,#2563eb);
  color: #fff; font-size: 17px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,99,235,.4);
  transition: opacity .18s, transform .15s;
  font-family: var(--ios-font);
}
.ios-btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.ios-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  color: #fff; font-size: 17px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .18s, transform .15s;
  font-family: var(--ios-font);
}
.ios-btn-ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }

/* ── FEATURE ROW ─────────────────────────────────────────────── */
.ios-feat-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  background: #f5f5f7; border-radius: 14px;
  border: 1px solid rgba(0,0,0,.04);
  transition: background .15s;
}
.ios-feat-row:hover { background: #efefef; }
.ios-feat-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.ios-feat-check svg {
  width: 13px; height: 13px; stroke: #fff; stroke-width: 2.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.ios-feat-label { font-size: 16px; font-weight: 500; color: var(--ios-label); }

/* ── STAT CHIP ───────────────────────────────────────────────── */
.ios-stat-chip {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 16px 24px;
  backdrop-filter: blur(12px);
  text-align: center; min-width: 120px;
}
.ios-stat-num {
  font-size: 32px; font-weight: 800; color: #fff;
  letter-spacing: -.5px; line-height: 1;
}
.ios-stat-num span { font-size: 18px; color: #818cf8; }
.ios-stat-label { font-size: 12px; color: rgba(255,255,255,.42); margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }

/* ── MOBILE DRAWER (override — loads after main.css) ─────────── */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}
.nav-drawer.open { pointer-events: all; }

.nav-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .32s ease, backdrop-filter .32s ease, -webkit-backdrop-filter .32s ease;
}
.nav-drawer.open .nav-drawer-backdrop {
  background: rgba(5,8,20,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(300px, 84vw);
  height: 100%;
  background: #ffffff !important;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(0.32,0.72,0,1);
  overflow: hidden;
  box-shadow: -16px 0 56px rgba(0,0,0,.18);
}
.nav-drawer-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b45309, #d97706, #f59e0b, #d97706, #b45309);
  z-index: 1;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }

.ndr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 18px 20px;
  flex-shrink: 0;
  background: #ffffff;
}
.ndr-brand { display: flex; align-items: center; gap: 11px; }
.ndr-brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  font-size: 14px; font-weight: 900; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(217,119,6,.3);
}
.ndr-brand-name {
  font-size: 16px; font-weight: 800;
  color: #0d1b4b; letter-spacing: .08em; line-height: 1.2;
}
.ndr-brand-sub {
  font-size: 11px; color: #9ca3af;
  margin-top: 2px; letter-spacing: .02em;
}

.nav-drawer-close {
  position: static !important;
  top: unset !important; right: unset !important;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
  flex-shrink: 0;
}
.nav-drawer-close:hover {
  background: #e5e7eb;
  color: #111827;
  border-color: #d1d5db;
}

.ndr-divider {
  height: 1px; background: #f0f0f0;
  margin: 0 18px; flex-shrink: 0;
}

.ndr-nav {
  flex: 1; overflow-y: auto;
  padding: 14px 10px;
  background: #ffffff;
  scrollbar-width: none;
}
.ndr-nav::-webkit-scrollbar { display: none; }

.nav-drawer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.nav-drawer-links li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .28s ease, transform .28s ease;
  transition-delay: calc(var(--i, 0) * 50ms + 60ms);
}
.nav-drawer.open .nav-drawer-links li {
  opacity: 1; transform: translateX(0);
}
.nav-drawer-links li a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .18s;
}
.nav-drawer-links li a:hover { background: #f9fafb; }
.nav-drawer-links li a.active { background: #fff7ed; }

.ndr-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .18s;
}
.ndr-icon svg { width: 17px; height: 17px; stroke: #6b7280; transition: stroke .18s; }
.nav-drawer-links li a:hover .ndr-icon { background: #e5e7eb; }
.nav-drawer-links li a:hover .ndr-icon svg { stroke: #0d1b4b; }
.nav-drawer-links li a.active .ndr-icon { background: #fef3c7; }
.nav-drawer-links li a.active .ndr-icon svg { stroke: #d97706; }

.ndr-label {
  flex: 1;
  font-size: 17px; font-weight: 600;
  color: #374151;
  transition: color .18s; letter-spacing: .01em;
}
.nav-drawer-links li a:hover .ndr-label { color: #0d1b4b; }
.nav-drawer-links li a.active .ndr-label { color: #d97706; }

.ndr-arrow {
  flex-shrink: 0;
  stroke: #d1d5db;
  transition: stroke .18s, transform .18s;
}
.nav-drawer-links li a:hover .ndr-arrow { stroke: #9ca3af; transform: translateX(2px); }
.nav-drawer-links li a.active .ndr-arrow { stroke: #f59e0b; }

.ndr-footer {
  padding: 14px 14px 36px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: #ffffff;
}
.ndr-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d1b4b, #1e3a8a);
  color: #fff;
  text-decoration: none;
  font-size: 16px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 4px 20px rgba(13,27,75,.25);
  transition: opacity .18s, transform .18s, box-shadow .18s;
}
.ndr-cta-btn:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(13,27,75,.35);
}

/* ── GLOBAL NAV RESPONSIVENESS ──────────────────────────────
   These rules load after main.css and override per-page nav CSS.
   Breakpoints:
     1200px — reduce padding
     1100px — shrink logo + tighten links gap
      960px — collapse to hamburger drawer
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  nav { padding: 16px 40px !important; }
}

@media (max-width: 1100px) {
  nav { padding: 16px 28px !important; }
  .logo-img { max-width: 170px !important; }
  .nav-links { gap: 20px !important; }
  .nav-links a { font-size: 13.5px !important; }
  .btn-nav { padding: 9px 16px !important; font-size: 13px !important; white-space: nowrap; }
}

@media (max-width: 960px) {
  nav { padding: 14px 20px !important; }
  .nav-links { display: none !important; }
  .btn-nav { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .nav-drawer { display: block !important; }
}
