/* ============ Tokens ============ */
:root {
  --ink: #0F172A;
  --ink-soft: #4B5875;
  --ink-faint: #8A95AC;
  --paper: #FFFFFF;
  --paper-alt: #F3F5FA;
  --line: #E4E9F2;
  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-light: #E4ECFD;
  --navy-start: #0F172A;
  --navy-end: #1E3A8A;
  --good: #16A34A;
  --good-wash: #E3F8EA;
  --warn: #B45309;
  --warn-wash: #FEF3D6;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.05);
  --shadow-md: 0 8px 24px rgba(15,23,42,.10);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.22);
  --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

/* ============ Reset ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.icon { width: 1em; height: 1em; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  border-radius: 999px; padding: 13px 24px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #3B76F6, var(--accent-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,99,235,.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(37,99,235,.45); background: linear-gradient(135deg, #4C82F7, #1B46C4); }
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--paper-alt); }
.btn-large { padding: 15px 30px; font-size: 16px; }
.btn-small { padding: 9px 18px; font-size: 13.5px; }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.nav { display: flex; gap: 30px; }
.nav a { font-weight: 600; font-size: 14.5px; color: var(--ink-soft); transition: color .15s ease; }
.nav a:hover { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.open { max-height: 360px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .topbar-actions .btn-small { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 15% -10%, #16224a 0%, var(--navy-start) 55%, #0B1220 100%);
  color: #fff;
  overflow: hidden;
  padding: 88px 0 100px;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(59,118,246,.35), transparent 65%);
  filter: blur(10px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #A9C0FF; margin: 0 0 18px;
}
.hero h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.hero-lede { font-size: 17px; color: #C7D2E8; max-width: 52ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #DCE4F7; font-weight: 600; }
.hero-trust .icon { color: #5FCB92; width: 18px; height: 18px; flex: none; }

.hero-frame {
  background: #131B33; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-frame-bar { display: flex; gap: 7px; padding: 14px 16px; background: rgba(255,255,255,.04); }
.hero-frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.hero-frame-body { position: relative; aspect-ratio: 16/10; background: linear-gradient(160deg, #182449, #0F1730); }
.hero-frame-body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: #7C8DB5; text-align: center; padding: 24px;
}
.frame-placeholder[hidden] { display: none; }
.frame-placeholder-logo { width: 56px; height: 56px; border-radius: 14px; opacity: .5; }
.frame-placeholder p { font-weight: 700; color: #B9C4E0; }
.frame-placeholder span { font-size: 12.5px; }
.frame-placeholder code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 5px; color: #DCE4F7; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; text-align: left; }
}

/* ============ Stat strip ============ */
.strip { background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 24px; }
.strip-item { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.strip-item strong { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.strip-item span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 700px) { .strip-inner { grid-template-columns: repeat(2, 1fr); } }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 12px;
}
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; max-width: 34ch; }
.section-lede { font-size: 16.5px; color: var(--ink-soft); max-width: 62ch; margin-bottom: 48px; }

/* ============ Feature grid ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease;
}
.feature-card.in-view { opacity: 1; transform: none; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent); background: var(--accent-light);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============ Gallery ============ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--ink-faint); background: linear-gradient(160deg, #EDF1FA, #F7F9FD); text-align: center; padding: 16px;
}
.gallery-placeholder[hidden] { display: none; }
.gallery-placeholder svg { width: 30px; height: 30px; opacity: .6; }
.gallery-placeholder strong { font-size: 13.5px; color: var(--ink-soft); }
.gallery-placeholder span { font-size: 11.5px; }
.gallery-placeholder code { background: rgba(15,23,42,.06); padding: 1px 5px; border-radius: 4px; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  background: linear-gradient(to top, rgba(15,23,42,.75), transparent);
  color: #fff; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(6,10,22,.9); display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 1000px); max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Download ============ */
.section-dark {
  background: radial-gradient(1000px 500px at 85% 0%, #1E3A8A 0%, var(--navy-start) 55%, #0B1220 100%);
  color: #fff;
}
.section-eyebrow--light { color: #A9C0FF; }
.section-title--light { color: #fff; }
.section-lede--light { color: #C7D2E8; }
.download-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.download-card {
  width: 100%; max-width: 640px; display: flex; align-items: center; gap: 22px; text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 28px; margin: 8px 0 32px;
}
.download-card-icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px; background: rgba(59,118,246,.25);
  display: flex; align-items: center; justify-content: center; color: #A9C0FF;
}
.download-card-icon svg { width: 28px; height: 28px; }
.download-card-body h3 { font-size: 18px; margin-bottom: 4px; }
.download-card-body p { color: #A9B4D0; font-size: 13.5px; margin-bottom: 16px; }

.notice {
  display: flex; gap: 14px; text-align: left; max-width: 640px;
  background: rgba(180,83,9,.14); border: 1px solid rgba(227,163,79,.35); border-radius: var(--radius-md);
  padding: 20px 22px; color: #F4E3C4;
}
.notice-icon { flex: none; width: 24px; height: 24px; color: #E3B04B; margin-top: 2px; }
.notice p { margin-top: 8px; font-size: 13.5px; color: #E6D6B8; }
.notice strong { color: #fff; }
.notice a { color: #A9C0FF; text-decoration: underline; }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 22px; background: var(--paper);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; position: relative; padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 16px; font-size: 20px; color: var(--accent); font-weight: 800;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; color: var(--ink-soft); font-size: 14.5px; }

/* ============ Contact ============ */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
}
.contact-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px; font-weight: 700;
  transition: background .15s ease;
}
.contact-row:hover { background: var(--paper-alt); }
.contact-row svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact-hint { font-size: 12.5px; color: var(--ink-faint); font-weight: 500; padding: 10px 12px 0; }
.contact-hint code { background: var(--paper-alt); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 820px) { .contact-inner { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.footer { background: var(--navy-start); color: #93A2C4; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand--footer .brand-name { color: #fff; }
.footer p { font-size: 13px; }

/* ============ To top ============ */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .2s ease;
  z-index: 90;
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
