/* ═══════════════════════════════════════════════════════════════
   DECISION INTELLIGENCE — VITALI AMARE
   Brand System: Elite Advisory · Dark & Premium
   Psychology: The Sage archetype — depth, precision, authority
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Core palette */
  --ink:          #06060F;   /* deepest — not pure black, slight blue gives depth */
  --ink-mid:      #0D0D1E;   /* card backgrounds */
  --ink-light:    #14142A;   /* elevated surfaces */
  --ink-border:   #1E1E36;   /* visible dividers */

  /* Text scale */
  --white:        #EDEDF4;   /* primary text — warm, not harsh white */
  --grey-100:     #D4D4E2;
  --grey-200:     #B0B0C4;
  --grey-300:     #8A8AA0;
  --grey-400:     #60607A;
  --grey-500:     #3A3A54;

  /* Accent — Gold */
  --gold:         #C9A84C;
  --gold-light:   #DFC06A;
  --gold-dim:     rgba(201,168,76,0.08);
  --gold-border:  rgba(201,168,76,0.18);

  /* Borders */
  --border:       1px solid rgba(255,255,255,0.06);
  --border-gold:  1px solid rgba(201,168,76,0.18);
  --border-mid:   1px solid rgba(255,255,255,0.04);

  /* Typography — three-font system */
  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'JetBrains Mono', 'Courier New', monospace;

  /* Geometry — precision: minimal radius */
  --r-xs:  2px;
  --r-sm:  4px;
  --r-md:  6px;

  /* Layout */
  --container: 1160px;
  --section-padding: 112px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.3s var(--ease);
}

/* ── 2. RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(44px, 6vw, 82px); }
h2 { font-size: clamp(32px, 4vw, 54px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }

p { color: var(--grey-200); line-height: 1.75; }

/* Label — section identifiers */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

/* Section number prefix */
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-400);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 10px;
}

/* ── 4. LAYOUT ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

section { padding: var(--section-padding) 0; }

/* ── 5. NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6,6,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo .domain {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-200);
  letter-spacing: 0.1px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* ── Hamburger toggle ─────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── 6. BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 28px rgba(201,168,76,0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: var(--border);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: var(--border-gold);
  padding: 11px 22px;
}
.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: rgba(201,168,76,0.35);
}

.btn-nav {
  padding: 9px 20px;
  font-size: 13px;
}

/* ── 7. FOOTER ────────────────────────────────────────────────── */
.footer {
  border-top: var(--border);
  padding: 64px 0 40px;
  background: var(--ink);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: var(--border);
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--grey-300);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 13.5px;
  color: var(--grey-300);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--grey-400);
  line-height: 1;
}

.footer-bottom .ip-mark {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--grey-500);
  letter-spacing: 1px;
}

/* ── 8. CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--ink-mid);
  border: var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color 0.25s ease;
}

.card:hover { border-color: rgba(255,255,255,0.12); }

.card-gold {
  background: var(--gold-dim);
  border: var(--border-gold);
}

/* ── 9. COMMON PATTERNS ───────────────────────────────────────── */
.section-header { margin-bottom: 56px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--grey-200);
  line-height: 1.55;
}

.check-item::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 2px;
}

.punchline {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  color: var(--gold);
  line-height: 1.45;
}

/* ── 10. ANIMATIONS ───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.12s; }
.fade-in.delay-2 { transition-delay: 0.22s; }
.fade-in.delay-3 { transition-delay: 0.32s; }

/* ── 11. PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  border-bottom: var(--border);
}

.page-hero h1 { margin-bottom: 20px; }

.page-hero p {
  font-size: 18px;
  color: var(--grey-200);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
  text-align: center;
}

/* ── 12. COOKIES BANNER ───────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 24px; left: 24px;
  max-width: 400px;
  background: var(--ink-light);
  border: var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  z-index: 999;
  display: none;
}

#cookie-banner p {
  font-size: 13px;
  color: var(--grey-200);
  line-height: 1.6;
  margin-bottom: 14px;
}

#cookie-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.cookie-actions { display: flex; gap: 10px; }

.cookie-actions button {
  flex: 1; padding: 9px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; border: none;
}

#cookie-accept { background: var(--gold); color: var(--ink); }
#cookie-decline { background: rgba(255,255,255,0.06); color: var(--grey-200); }

/* ── 13. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-padding: 72px; }
  .container { padding: 0 24px; }

  /* Show hamburger, hide desktop CTA */
  .nav-toggle { display: flex; }
  .nav-right { gap: 0; }
  .nav-right .btn-nav { display: none; }

  /* Mobile nav dropdown */
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(6,6,15,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 24px 24px;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
  }

  .three-col { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── 14. UTILITY ──────────────────────────────────────────────── */
.text-gold  { color: var(--gold); }
.text-grey  { color: var(--grey-300); }
.text-mono  { font-family: var(--font-mono); }
.text-serif { font-family: var(--font-serif); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── 15. NEWSLETTER ───────────────────────────────────────────── */
.newsletter-box {
  background: rgba(201,168,76,0.03);
  border: var(--border-gold);
  border-radius: var(--r-md);
  padding: 56px 48px;
  text-align: center;
}
.newsletter-box h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--white);
  margin-bottom: 12px;
}
.newsletter-box p {
  font-size: 15px;
  color: var(--grey-200);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.75;
}
.beehiiv-embed { margin: 0 auto 16px; }
.newsletter-note {
  font-size: 12px;
  color: var(--grey-300);
  font-family: var(--font-mono);
}
@media (max-width: 600px) {
  .newsletter-box { padding: 40px 24px; }
  .newsletter-box h3 { font-size: 24px; }
}
