:root {
  --canvas: #F8FAFC;
  --card: #FFFFFF;
  --surface: #F1F5F9;
  --navy: #0A2351;
  --navy-deep: #061737;
  --ice: #EBF2FF;
  --gold: #D97706;
  --gold-bright: #F59E0B;
  --gold-bg: #FEF3C7;
  --gold-text: #92400E;
  --text: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --border: #E2E8F0;
  --emerald: #059669;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(10, 35, 81, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(10, 35, 81, 0.12);
  --shadow-lg: 0 24px 50px -16px rgba(10, 35, 81, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Cairo', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; top: -48px; inset-inline-start: 16px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Sticky Floating Navbar */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.12);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: 0.02em; }
.brand-sub { font-size: 11px; color: var(--text-subtle); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  padding: 6px 4px; transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 40px; padding: 0 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; font-weight: 800; color: var(--navy); transition: background 0.18s;
}
.lang-pill:hover { background: var(--ice); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 700; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--card); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--ice); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #B45309; }

.mobile-toggle {
  display: none; min-width: 44px; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--navy);
  align-items: center; justify-content: center;
}
.mobile-drawer {
  display: none; border-top: 1px solid var(--border); background: var(--card);
  padding: 16px 20px 20px;
}
.mobile-drawer.open { display: flex; flex-direction: column; gap: 12px; }
.mobile-drawer a { padding: 10px 12px; border-radius: 10px; font-weight: 700; color: var(--navy); background: var(--canvas); }

/* Hero */
.hero {
  background: linear-gradient(180deg, rgba(235, 242, 255, 0.78) 0%, var(--canvas) 100%);
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--gold-bg); border: 1px solid rgba(217, 119, 6, 0.35);
  color: var(--gold-text); font-size: 12px; font-weight: 800;
}
.hero h1 {
  margin: 16px 0 14px; font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25; font-weight: 800; color: var(--navy);
}
.hero-sub {
  margin: 0 0 24px; font-size: 17px; color: var(--text-muted); max-width: 58ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.trust-item { display: inline-flex; align-items: center; gap: 6px; }

/* Hero Composed Preview Card */
.preview-frame {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg);
}
.preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
}
.dots { display: inline-flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.preview-badge {
  background: var(--ice); color: var(--navy); font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}
.chat-user {
  background: var(--navy); color: #fff; font-size: 13px; padding: 12px 14px;
  border-radius: 14px 4px 14px 14px; margin-bottom: 12px; max-width: 92%;
  margin-inline-start: auto;
}
.chat-ai {
  background: var(--canvas); border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px; padding: 14px;
}
.scripture-box {
  background: var(--ice); border-inline-start: 4px solid var(--gold-bright);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
}
.scripture-box strong { display: block; font-size: 13px; color: var(--navy); }
.scripture-box small { font-size: 11px; color: var(--text-subtle); }
.ai-points { margin: 0; padding-inline-start: 18px; font-size: 13px; color: var(--text); }
.ai-points li + li { margin-top: 6px; }
.preview-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini-pill {
  background: var(--surface); border: 1px solid var(--border); color: var(--navy);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px;
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; color: var(--gold-text);
  background: var(--gold-bg); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.section-head h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); color: var(--navy); font-weight: 800; }
.section-head p { margin: 0; color: var(--text-muted); font-size: 16px; }

/* Services Bento Grid (Zero-Empty-Card Contract) */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  justify-content: space-between; gap: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.service-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #0A2351 0%, #10326F 100%);
  color: #fff; border-color: transparent;
}
.service-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--ice); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-card.featured .service-icon { background: rgba(255,255,255,0.14); color: var(--gold-bright); }
.service-card h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 800; color: var(--navy); }
.service-card.featured h3 { color: #fff; }
.service-card p { margin: 0; font-size: 14px; color: var(--text-muted); }
.service-card.featured p { color: rgba(255,255,255,0.86); }
.service-bullets { margin: 12px 0 0; padding-inline-start: 18px; font-size: 13px; color: var(--text-muted); }
.service-card.featured .service-bullets { color: rgba(255,255,255,0.85); }
.service-cta {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800;
  color: var(--navy); padding-top: 6px;
}
.service-card.featured .service-cta { color: var(--gold-bright); }

/* 3-Column Feature/Workflow Cards */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.info-card h3 { margin: 12px 0 8px; font-size: 18px; color: var(--navy); font-weight: 800; }
.info-card p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* Pricing Preview */
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.price-card.popular { border: 2px solid var(--navy); box-shadow: var(--shadow-md); position: relative; }
.price-tag { font-size: 26px; font-weight: 800; color: var(--navy); }
.price-list { margin: 0; padding-inline-start: 18px; font-size: 14px; color: var(--text-muted); flex: 1; }
.price-list li + li { margin-top: 8px; }

/* FAQ */
.faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px;
}
.faq-item summary { font-weight: 800; color: var(--navy); cursor: pointer; list-style: none; }
.faq-item p { margin: 10px 0 0; font-size: 14px; color: var(--text-muted); }

/* Subpage Hero & Legal Prose */
.page-hero {
  background: linear-gradient(180deg, var(--ice) 0%, var(--canvas) 100%);
  padding: 48px 0 36px; border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin: 12px 0 8px; font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); font-weight: 800; }
.page-hero p { margin: 0; color: var(--text-muted); max-width: 68ch; }
.prose-stack { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.prose-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.prose-card h2 { margin: 0 0 10px; font-size: 19px; color: var(--navy); font-weight: 800; }
.prose-card p, .prose-card li { color: var(--text-muted); font-size: 15px; }

/* Footer */
.site-footer {
  background: var(--card); border-top: 1px solid var(--border); padding: 44px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 28px;
}
.footer-col h4 { margin: 0 0 12px; font-size: 14px; color: var(--navy); font-weight: 800; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12px; color: var(--text-subtle);
}

/* Smart Device Banner */
.elyon-smart-banner {
  position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 9999; max-width: 520px; margin: 0 auto;
  background: var(--card); border: 1.5px solid var(--navy); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.elyon-smart-banner-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ice);
  color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.elyon-smart-banner-body { flex: 1; min-width: 0; }
.elyon-smart-banner-title { font-size: 13px; font-weight: 800; color: var(--navy); margin: 0 0 2px; }
.elyon-smart-banner-text { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.45; }
.elyon-smart-banner-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.elyon-smart-banner-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card.featured { grid-column: span 2; }
  .cols-3, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-desktop-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
  .bento-grid, .cols-2 { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .hero { padding: 36px 0 44px; }
  .section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
