:root {
  --bg-0: #060b15;
  --bg-1: #0b1220;
  --bg-2: #111a2d;
  --panel: #111d33;
  --panel-soft: #14223d;
  --line: #253a60;
  --line-soft: #1c2f4e;
  --text: #ecf4ff;
  --muted: #aabbd8;
  --brand: #d53a1f;
  --brand-2: #b32216;
  --brand-soft: #ff7f50;
  --ok: #2db873;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --font-sm: 0.9rem;
  --font-md: 1rem;
  --font-lg: 1.15rem;
  --font-xl: clamp(1.7rem, 3vw, 2.8rem);

  --shadow-1: 0 8px 22px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 18px 42px rgba(0, 0, 0, 0.35);

  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 400px at 8% -8%, rgba(59, 85, 133, 0.35), transparent 60%),
    radial-gradient(800px 350px at 96% 5%, rgba(154, 43, 25, 0.2), transparent 62%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  line-height: 1.5;
}

.container { width: min(1200px, 92vw); margin: 0 auto; }
.section {
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(37, 58, 96, 0.45);
  position: relative;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.25;
  pointer-events: none;
}
.section > .container { position: relative; z-index: 2; }

h1, h2, h3, h4 { margin: 0 0 var(--space-2); line-height: 1.2; }
h1 { font-size: var(--font-xl); }
h2 { font-size: clamp(1.5rem, 2.3vw, 2.15rem); }
h3 { font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
p { margin: 0 0 var(--space-3); color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}
.site-header.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(8, 12, 22, 0.82);
  border-color: var(--line-soft);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  padding: 3px;
  background: rgba(5, 10, 18, 0.7);
  box-shadow: var(--shadow-1);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-sm);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--text);
  border-color: var(--brand-soft);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 38px;
  border-radius: var(--radius-sm);
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-color: rgba(255,255,255,0.18);
}
.btn-secondary {
  color: var(--text);
  background: rgba(21, 35, 57, 0.9);
  border-color: var(--line);
}
.btn-sm { padding: 0.55rem 0.9rem; font-size: var(--font-sm); }

/* Hero */
.hero {
  padding-top: calc(var(--space-6) + var(--space-2));
  border-top: none;
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1.1fr 0.9fr;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe0d1;
  border: 1px solid rgba(255, 127, 80, 0.35);
  background: rgba(181, 46, 24, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  margin-bottom: var(--space-3);
}
.lead { font-size: var(--font-lg); max-width: 66ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.trust-line { color: #c4d1e8; font-size: var(--font-sm); }
.hero-stats {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: var(--space-2);
}
.stat-card {
  background: linear-gradient(180deg, rgba(18, 29, 50, 0.88), rgba(13, 22, 40, 0.95));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.stat-card p { margin-bottom: 0; font-size: var(--font-sm); }

.hero-visual {
  align-content: start;
}
.flow-chart {
  background: linear-gradient(180deg, rgba(19, 30, 52, 0.92), rgba(12, 20, 35, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-2);
}
.flow-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--space-2);
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 12px rgba(45, 184, 115, 0.65); }
.flow-image-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(8, 13, 24, 0.75);
}
.flow-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.6rem 0;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 38px;
  width: 2px;
  height: calc(100% - 8px);
  background: linear-gradient(180deg, rgba(255,127,80,0.45), rgba(37,58,96,0.7));
}
.flow-num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border: 1px solid rgba(255,255,255,0.18);
}
.flow-step h4 {
  margin: 0 0 0.25rem;
  font-size: var(--font-md);
}
.flow-step p {
  margin: 0;
  font-size: var(--font-sm);
}

/* Common section helpers */
.section-lead { max-width: 72ch; margin-bottom: var(--space-4); }
.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: var(--space-4);
}
.section-heading.compact {
  margin-bottom: var(--space-3);
}
.card-grid {
  display: grid;
  gap: var(--space-3);
}
.card-grid.three { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.info-card, .panel-card, .feature-card, .shot-card {
  background: linear-gradient(180deg, rgba(18, 30, 50, 0.9), rgba(12, 20, 35, 0.95));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-1);
}
.info-card h3 { margin-bottom: 0.4rem; }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-4);
  align-items: start;
}
.check-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.check-list li { margin: 0 0 0.55rem; }
.panel-metrics {
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-1);
}
.panel-metrics div {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(7, 13, 24, 0.3);
}
.panel-metrics b { color: var(--text); }
.fit-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr 1fr 0.9fr;
}
.fit-proof {
  align-self: stretch;
}

/* Features */
.feature-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}
.feature-card {
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: #3f5f94;
  box-shadow: var(--shadow-2);
}
.feature-card .icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-bottom: 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255,127,80,0.45);
  background: radial-gradient(circle at 30% 30%, rgba(255,127,80,0.3), rgba(22,35,55,0.9));
}
.feature-card p { font-size: var(--font-sm); margin-bottom: 0; }

/* Platform galleries */
.gallery-stack {
  display: grid;
  gap: var(--space-3);
}
.gallery-launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: var(--space-3);
}
.gallery-launch-card {
  background: linear-gradient(180deg, rgba(18, 30, 50, 0.9), rgba(12, 20, 35, 0.95));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-1);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.gallery-panel {
  background: linear-gradient(180deg, rgba(18, 30, 50, 0.9), rgba(12, 20, 35, 0.95));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-1);
}
.gallery-head p { margin-bottom: var(--space-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: var(--space-2);
}
.mobile-gallery { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
.gallery-source[hidden] { display: none !important; }
.gallery-item {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(6, 11, 20, 0.9);
  min-height: 140px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.gallery-item:hover {
  transform: translateY(-2px);
  border-color: #406196;
  box-shadow: var(--shadow-1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: var(--space-2);
}
.timeline.simple {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.timeline article {
  background: linear-gradient(180deg, rgba(18, 30, 50, 0.9), rgba(12, 20, 35, 0.95));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.timeline span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  margin-bottom: 0.6rem;
}

/* Accountability board */
.accountability-board {
  background: linear-gradient(180deg, rgba(19, 31, 52, 0.95), rgba(11, 19, 34, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.board-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}
.board-grid div {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  background: rgba(6, 12, 22, 0.35);
}
.board-grid .wide { grid-column: span 2; }
.board-grid p {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

/* Comparison table */
.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: rgba(12, 21, 36, 0.88);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.75rem;
  text-align: left;
  color: var(--muted);
  font-size: var(--font-sm);
}
.compare-table th {
  color: var(--text);
  background: rgba(20, 35, 58, 0.95);
}
.compare-table td:last-child,
.compare-table th:last-child { color: #e4edf9; font-weight: 700; }

/* FAQ */
.faq-list details {
  background: rgba(16, 28, 47, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: var(--space-2);
}
.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
.faq-list details p { margin-top: 0.75rem; margin-bottom: 0; }
.faq-layout {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

/* Contact */
.cta-section {
  background: radial-gradient(900px 300px at 20% 10%, rgba(181, 46, 24, 0.25), transparent 60%);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4);
}
.cta-proof {
  align-self: start;
}
.contact-form {
  background: linear-gradient(180deg, rgba(18, 30, 51, 0.9), rgba(10, 17, 30, 0.98));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.contact-form label {
  display: block;
  font-size: var(--font-sm);
  color: #cfdaf0;
  margin-bottom: var(--space-2);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 14, 25, 0.9);
  color: var(--text);
  padding: 0.7rem;
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.form-note { margin-top: var(--space-2); font-size: var(--font-sm); }

/* Contact modal */
.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1rem;
}
.contact-modal.open { display: flex; }
.contact-modal-card {
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.98), rgba(9, 15, 27, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: var(--space-3);
}
.contact-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.contact-modal-close {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(21, 35, 57, 0.9);
  color: var(--text);
  padding: .5rem .75rem;
  font-weight: 700;
  cursor: pointer;
}

/* Gallery modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 85;
  padding: 1rem;
}
.gallery-modal.open { display: flex; }
.gallery-modal-card {
  width: min(1280px, 98vw);
  max-height: 93vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.98), rgba(9, 15, 27, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: var(--space-3);
}
.gallery-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.gallery-modal-close {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(21, 35, 57, 0.9);
  color: var(--text);
  padding: .5rem .75rem;
  font-weight: 700;
  cursor: pointer;
}
.gallery-modal-body .gallery-grid { margin-top: .35rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: var(--space-5) 0 var(--space-3);
  background: rgba(7, 12, 22, 0.92);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-3);
}
.site-footer nav { display: grid; gap: 0.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.copyright {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line-soft);
  color: #8ea3c8;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .fit-grid,
  .faq-layout,
  .cta-grid,
  .footer-grid,
  .gallery-launch-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .mobile-gallery { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .card-grid.three { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .timeline,
  .timeline.simple { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3) var(--space-4);
    background: rgba(8, 13, 24, 0.97);
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav.open { display: flex; }
  .nav-cta { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .feature-grid, .card-grid.three, .timeline, .timeline.simple { grid-template-columns: 1fr; }
  .gallery-grid, .mobile-gallery { grid-template-columns: 1fr; }
  .flow-step { grid-template-columns: 28px 1fr; gap: 0.6rem; }
  .flow-num { width: 26px; height: 26px; font-size: 0.8rem; }
  .flow-step:not(:last-child)::after { left: 12px; top: 33px; }
  .brand-logo { width: 48px; height: 48px; }
}
