/* ═══════════════════════════════════════════════════════════════
   RATIOPRO — DESIGN SYSTEM
   Luxury financial editorial aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Colors — Deep navy + gold + cream palette */
  --midnight: #0A1929;
  --navy: #0B1F3A;
  --navy-2: #12294a;
  --ink: #E8ECF3;
  --ink-muted: #A8B4C8;
  --ink-dim: #6B7A94;

  --cream: #FAFAF7;
  --cream-2: #F1EEE6;
  --paper: #F7F4EC;

  --gold: #C9A961;
  --gold-2: #E2C286;
  --gold-deep: #8C7851;
  --gold-shimmer: linear-gradient(135deg, #FFF4D6 0%, #E2C286 30%, #C9A961 70%, #8C7851 100%);

  --success: #6BCC8B;
  --warning: #E4A853;
  --danger: #D96A5A;

  /* Type scale */
  --font-display: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing (based on 8px grid) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;
  --s-9: 160px;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 800px;
  --nav-h: 88px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.15;
}

p {
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.65;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  max-width: 640px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-2);
}

/* ─── Layout ─── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.wrap-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

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

@media (max-width: 768px) {
  section {
    padding: var(--s-6) 0;
  }
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10, 25, 41, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 600;
  background: rgba(201, 169, 97, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  list-style: none;
}

.nav-links a {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold-shimmer);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.2);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201, 169, 97, 0.35);
  color: var(--navy);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-brand {
    font-size: 20px;
  }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-shimmer);
  color: var(--navy);
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 44px rgba(201, 169, 97, 0.4);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(232, 236, 243, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 97, 0.05);
}

.btn-large {
  padding: 20px 40px;
  font-size: 15px;
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ─── Cards ─── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(232, 236, 243, 0.08);
  border-radius: 16px;
  padding: var(--s-5);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(201, 169, 97, 0.3);
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.03) 0%, rgba(255,255,255,0.01) 100%);
}

/* ─── Utility ─── */
.gold {
  color: var(--gold);
}

.gold-text {
  background: var(--gold-shimmer);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.3), transparent);
  margin: var(--s-6) auto;
  max-width: 400px;
}

/* ─── Footer ─── */
footer {
  background: var(--midnight);
  padding: var(--s-6) 0 var(--s-4);
  border-top: 1px solid rgba(201, 169, 97, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.footer-tag {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--s-2);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--ink-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: var(--s-4);
  border-top: 1px solid rgba(201, 169, 97, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-dim);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--s-2);
    text-align: center;
  }
}
