/* ============ Passiv — Futuristic design system ============ */
:root {
  --bg: #07070d;
  --bg-2: #0a0a14;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --glass: rgba(13, 13, 26, 0.55);
  --glass-strong: rgba(11, 11, 22, 0.82);
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);
  --navy: #002a5c;
  --navy-lite: #0047a3;
  --blue: #3d7dd6;
  --blue-bright: #5b9bf0;
  --gold: #c9a84c;
  --gold-warm: #dfbd6a;
  --gold-dim: rgba(201, 168, 76, 0.14);
  --text: #f0f0f5;
  --text-dim: rgba(240, 240, 245, 0.66);
  --text-muted: rgba(240, 240, 245, 0.38);
  --green: #22d3a0;
  --red: #ef5350;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}
::selection { background: rgba(0, 71, 163, 0.65); color: #fff; }
img, svg { max-width: 100%; }
a { color: inherit; }

/* ---- 3D canvas + ambient layers ---- */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0, 42, 92, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 100%, rgba(201, 168, 76, 0.05), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(7, 7, 13, 0.35) 78%, rgba(7, 7, 13, 0.85) 100%);
}
main, .site-header, .site-footer { position: relative; z-index: 2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }

/* ---- Typography ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.h-display {
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.h-section { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-bottom: 18px; }
.h-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.text-gradient {
  background: linear-gradient(100deg, #fff 20%, var(--blue-bright) 55%, var(--gold-warm) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gold-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--gold-warm), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-dim); max-width: 640px; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 22px rgba(0, 71, 163, 0.55);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
@media (min-width: 961px) { .nav-contact { display: none; } }
.nav-cta-group { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  width: 40px; height: 40px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy-lite) 0%, var(--navy) 100%);
  color: #fff;
  border-color: rgba(91, 155, 240, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 71, 163, 0.3), 0 8px 32px rgba(0, 42, 92, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 71, 163, 0.45), 0 14px 44px rgba(0, 71, 163, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-warm), var(--gold));
  color: #141004;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(201, 168, 76, 0.4); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---- Glass panels & cards ---- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 42, 92, 0.18);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(0, 71, 163, 0.35), rgba(0, 42, 92, 0.15));
  border: 1px solid rgba(91, 155, 240, 0.28);
  color: var(--blue-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-dim); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ---- Accent line / eyebrow chips ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.chip .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Forms ---- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 71, 163, 0.28);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: #0d0d18; color: var(--text); }
.field .err { display: none; font-size: 12.5px; color: var(--red); margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
}
.check input {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--navy-lite);
  cursor: pointer;
}
.check a { color: var(--blue-bright); }
.form-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success .big { font-size: 42px; margin-bottom: 14px; }
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--text-dim); font-size: 15px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 26px 24px; color: var(--text-dim); font-size: 15px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(7, 7, 13, 0.4), rgba(7, 7, 13, 0.92));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 70px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p { font-size: 14px; color: var(--text-dim); margin: 14px 0 18px; max-width: 300px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { text-decoration: none; font-size: 14px; color: var(--text-dim); transition: color 0.25s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
}

/* ---- Legal pages ---- */
.legal-body { padding-top: 40px; }
.legal-body h2 { font-size: 22px; margin: 42px 0 14px; letter-spacing: -0.01em; }
.legal-body h3 { font-size: 17px; margin: 28px 0 10px; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--text-dim); margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 16px; }
.legal-body strong { color: var(--text); }
.legal-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta-group .btn-ghost { display: none; }
}
