/* ═══════════════════════════════════════════════════════
   VAULTE — SHARED DESIGN SYSTEM
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ── TOKENS ── */
:root {
  --font-sans: -apple-system, 'SF Pro Display', 'SF Pro Text', BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-wordmark: 'Cormorant Garamond', 'Georgia', serif;
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.13);
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-tertiary: #777777;
  --gold: #a07830;
  --gold-bright: #b88a38;
  --gold-muted: rgba(160,120,48,.07);
  --gold-line: rgba(160,120,48,.12);
  --navy:        #001f3f;
  --navy-mid:    #002d55;
  --navy-bright: #004b87;
  --navy-light:  #6a9bd1;
  --navy-pale:   #f0f4f8;
  --navy-muted:  rgba(0,31,63,.35);
  --navy-line:   rgba(0,75,135,.5);
  --navy-text:   #6a9bd1;
  --invert-bg: #ededed;
  --invert-text: #0a0a0a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.7);
  --radius: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

[data-theme="light"] {
  --bg: #f0f4f8;
  --bg-2: #e8edf4;
  --bg-3: #dde4ef;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(0,0,0,.08);
  --border-strong: rgba(0,0,0,.14);
  --text-primary: #0c0c0c;
  --text-secondary: #3a3a38;
  --text-tertiary: #6a6a68;
  --gold: #9a7228;
  --gold-bright: #b08030;
  --gold-muted: rgba(154,114,40,.06);
  --gold-line: rgba(154,114,40,.12);
  --navy:        #001f3f;
  --navy-mid:    #002d55;
  --navy-bright: #004b87;
  --navy-light:  #6a9bd1;
  --navy-pale:   #f0f4f8;
  --navy-muted:  rgba(0,31,63,.07);
  --navy-line:   rgba(0,75,135,.2);
  --navy-text:   #002d55;
  --invert-bg: #0c0c0c;
  --invert-text: #f8f8f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.1);
}

/* ── BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .35s var(--ease), color .35s var(--ease);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════
   RESEND-STYLE BACKGROUND — SVG curved shapes
   Fixed to viewport, visible through all sections
   ═══════════════════════════════════════════════════════ */
.vaulte-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transition: opacity .4s;
}

/* The actual SVG blobs matching Resend exactly */
.vaulte-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hide in light mode — show clean warm bg instead */
/* blob visible in both modes */
[data-theme="light"] .vaulte-bg { display: none; }
[data-theme="dark"]  .vaulte-bg { display: block; opacity: 1; }

/* Light mode: clean bg handled by body background-color */

/* blob is z-index:-1, all content naturally above */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--navy-line); border-radius: 4px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY ── */
.display {
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--text-primary);
}
.display em { font-style: italic; font-weight: 300; color: var(--navy-text); }

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; color: var(--text-primary); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.1; letter-spacing: -.025em; }
h2 em { font-style: italic; font-weight: 300; color: var(--navy-text); }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.25; }
h3 em { font-style: italic; font-weight: 300; color: var(--navy-text); }

/* Light mode: italic gold softer */
[data-theme="light"] h2 em,
[data-theme="light"] h3 em,
[data-theme="light"] .display em,
[data-theme="light"] .hero-title em {
  color: var(--navy-text);
  font-weight: 300;
  opacity: 1;
}

.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--navy-text);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--navy-text); }
.eyebrow-gold {
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: .9rem;
}
.eyebrow-gold::before { content: ''; width: 18px; height: 1px; background: var(--gold); }

.body-lg { font-size: 18px; line-height: 1.75; color: var(--text-secondary); font-weight: 400; }
.body { font-size: 15px; line-height: 1.75; color: var(--text-secondary); font-weight: 400; }
.caption { font-size: 12px; color: var(--text-tertiary); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: .01em;
  border-radius: 8px; cursor: pointer; transition: all .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text-primary); color: var(--bg); border: 1.5px solid var(--text-primary); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: rgba(255,255,255,.06); color: var(--text-secondary); border: 1.5px solid var(--border-strong); }
[data-theme="light"] .btn-secondary { background: transparent; }
.btn-secondary:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-gold { background: var(--gold); color: #fff; border: 1.5px solid var(--gold); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border); padding: 11px 20px; }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text-primary); }
.btn-navy { background: rgba(0,31,63,.15); color: #6a9bd1; border: 1.5px solid rgba(0,75,135,.4); }
.btn-navy:hover { background: #001f3f; color: #f0f4f8; border-color: #004b87; }
.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 60px; padding: 0 max(5vw, 28px);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
  background: rgba(10,10,10,.75);
}
[data-theme="light"] #nav { background: rgba(240,244,248,.95); }
#nav.scrolled { border-color: var(--border); }

.nav-logo { font-family: var(--font-wordmark); font-size: 1.35rem; letter-spacing: .14em; color: var(--text-primary); font-weight: 600; text-transform: uppercase; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 400; color: var(--text-secondary); padding: 6px 12px; border-radius: 6px; transition: color .18s, background .18s; }
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,.06); }
[data-theme="light"] .nav-links a:hover { background: var(--bg-3); }
.nav-links a.active { color: var(--text-primary); font-weight: 500; border-bottom: 1.5px solid var(--navy-text); padding-bottom: 4px; }
.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--text-secondary);
  transition: color .18s, background .18s, border-color .18s;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.05);
}
[data-theme="light"] .theme-toggle { background: var(--surface); }
.theme-toggle:hover { color: var(--navy-text); border-color: var(--navy-line); }
.theme-toggle svg { width: 16px; height: 16px; }
/* Dark mode: show sun (click → go light) */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
/* Light mode: show moon (click → go dark) */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── SECTIONS ── */
.section { padding: 8rem max(5vw, 28px); }
.section-sm { padding: 5rem max(5vw, 28px); }
.section-navy {
  background: rgba(0,31,63,.1) !important;
  border-top: 1px solid rgba(106,155,209,.15);
  border-bottom: 1px solid rgba(106,155,209,.15);
}
[data-theme="dark"] .section-navy {
  background: rgba(0,31,63,.2) !important;
}

.card { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 2.25rem; transition: border-color .2s, box-shadow .2s; }
[data-theme="light"] .card { background: rgba(255,255,255,.7); }
.card:hover { border-color: rgba(106,155,209,.35); box-shadow: 0 4px 24px rgba(0,31,63,.28); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; border-radius: 40px; border: 1px solid var(--border-strong); color: var(--text-secondary); background: rgba(255,255,255,.04); }
[data-theme="light"] .pill { background: var(--surface); }
.pill-navy { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; border-radius: 40px; border: 1px solid var(--navy-line); color: var(--navy-text); background: var(--navy-muted); }

hr { border: none; border-top: 1px solid var(--border); }

/* ── FOOTER ── */
#footer { background: #060606; padding: 5rem max(5vw, 28px) 2.5rem; border-top: 1px solid rgba(255,255,255,.06); }
[data-theme="light"] #footer { background: #0c0c0c; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 2rem; }
.footer-brand { font-family: var(--font-wordmark); font-size: 1.25rem; letter-spacing: .14em; color: #f0ede6; margin-bottom: .6rem; font-weight: 600; text-transform: uppercase; }
.footer-brand span { color: var(--gold); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.28); line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.32); transition: color .18s; }
.footer-links a:hover { color: rgba(255,255,255,.7); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom span { font-size: 11px; color: rgba(255,255,255,.16); }

.page-hero { padding: 10rem max(5vw, 28px) 5rem; border-bottom: 1px solid var(--border); }

.marquee-wrap { overflow: hidden; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
[data-theme="light"] .marquee-wrap { background: var(--bg-2); }
.marquee-track { display: flex; animation: marquee 32s linear infinite; white-space: nowrap; }
.marquee-item { padding: 0 2.5rem; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-tertiary); border-right: 1px solid var(--border-strong); display: flex; align-items: center; gap: 9px; }
.m-dot { width: 4px; height: 4px; background: var(--navy-text); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HAMBURGER NAV ── */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; border: none; background: none; margin-left: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text-primary); border-radius: 2px; transition: all .25s var(--ease); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer { display: none; position: fixed; top: 60px; left: 0; right: 0; background: rgba(10,10,10,.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); padding: 1.2rem max(5vw, 28px) 1.5rem; z-index: 998; flex-direction: column; gap: 2px; box-shadow: var(--shadow-md); }
[data-theme="light"] .nav-drawer { background: rgba(248,248,246,.97); }
.nav-drawer.open { display: flex; }
.nav-drawer a { font-size: 15px; font-weight: 400; color: var(--text-secondary); padding: 10px 12px; border-radius: 8px; transition: color .18s, background .18s; }
.nav-drawer a:hover, .nav-drawer a.active { color: var(--text-primary); background: rgba(255,255,255,.06); }
[data-theme="light"] .nav-drawer a:hover, [data-theme="light"] .nav-drawer a.active { background: var(--bg-2); }
.nav-drawer .drawer-cta { margin-top: 10px; padding: 12px; background: var(--text-primary); color: var(--bg); text-align: center; border-radius: 8px; font-size: 13px; font-weight: 500; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 5rem max(4vw, 20px); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .section { padding: 3.5rem 20px; }
  .section-sm { padding: 2.5rem 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .display { font-size: 2.4rem; }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .btn-lg { padding: 13px 24px; font-size: 14px; }
  .page-hero { padding: 7rem 20px 3rem; }
}
@media (max-width: 600px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ══════════════════════════════════════
   DARK MODE — gold accent system
   Navy stays for blobs/backgrounds
   Gold for text accents and icons
   ══════════════════════════════════════ */
[data-theme="dark"] {
  --navy-text: #c99a42;
  --navy-line: rgba(181,136,58,.22);
  --navy-muted: rgba(181,136,58,.08);
}
[data-theme="dark"] h2 em,
[data-theme="dark"] h3 em,
[data-theme="dark"] .display em { color: #c99a42; }
[data-theme="dark"] .eyebrow { color: #c99a42; }
[data-theme="dark"] .eyebrow::before { background: #c99a42; }
[data-theme="dark"] .nav-logo span { color: #c99a42; }
[data-theme="dark"] .footer-brand span { color: #c99a42; }
[data-theme="dark"] .card:hover { border-color: rgba(181,136,58,.3); }
[data-theme="dark"] .page-hero { border-color: rgba(181,136,58,.15); }

/* Light mode navy blob */
.vaulte-bg-light {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
  display: none;
  opacity: 0.55;
}
.vaulte-bg-light svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
[data-theme="light"] .vaulte-bg-light { display: block; }
[data-theme="light"] .vaulte-bg { display: none; }



/* ── CRITICAL: body transparent so blob shows through ── */
body {
  background-color: transparent !important;
}
html[data-theme="light"] {
  background-color: #f0f5ff;
}
html[data-theme="dark"] {
  background-color: #06080f;
}

/* ── TRANSPARENT BODY so fixed blob (z-index:-1) shows through ── */
body { background-color: transparent !important; }
html[data-theme="light"] { background-color: #f5f8ff; }
html[data-theme="dark"]  { background-color: #06090f; }
