/* ==========================================================================
   GHERKIN CAPITAL - INSTITUTIONAL WEALTH TECH DESIGN SYSTEM
   Modern Luxury Private Banking & Financial Engineering Framework
   Benchmarks: Capital Vision (CH), Simplicity Passerelle (US), MdF Family Partners (ES/CH)
   WCAG 2.1 AA Compliant | Mobile-First | High-Performance GPU Transitions
   ========================================================================== */

:root {
  /* --- Color Tokens: Midnight Navy & Swiss Obsidian --- */
  --bg-deep: #040814;
  --bg-surface: #070e20;
  --bg-card: rgba(11, 20, 44, 0.72);
  --bg-card-hover: rgba(16, 29, 64, 0.85);
  --bg-glass: rgba(14, 25, 54, 0.55);
  --bg-input: rgba(6, 12, 28, 0.85);

  /* --- Color Tokens: Champagne Gold & Imperial Bronze --- */
  --gold-primary: #C5A880;
  --gold-light: #E2CFB4;
  --gold-deep: #9D7E54;
  --gold-glow: rgba(197, 168, 128, 0.22);
  --gold-gradient: linear-gradient(135deg, #DFCEB7 0%, #C5A880 50%, #9D7E54 100%);
  --gold-border: rgba(197, 168, 128, 0.35);

  /* --- Color Tokens: Platinum, Slate & Accents --- */
  --platinum: #F1F5F9;
  --slate-light: #CBD5E1;
  --slate-body: #94A3B8;
  --slate-muted: #64748B;
  --slate-dark: #334155;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);

  /* --- Quantitative & Financial Accents --- */
  --emerald-alpha: rgba(16, 185, 129, 0.15);
  --emerald-glow: #10B981;
  --emerald-text: #34D399;
  --sapphire-glow: #38BDF8;
  --rose-barrier: #F43F5E;

  /* --- Typography --- */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* --- Spacing & Radii --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* --- Elevation & Shadows --- */
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 40px -6px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-subtle);
  --shadow-gold: 0 8px 32px -4px rgba(197, 168, 128, 0.25);
  --shadow-float: 0 24px 60px -12px rgba(2, 6, 23, 0.85);

  /* --- Motion & Transitions --- */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layout Constraints --- */
  --container-max: 1320px;
  --nav-height: 84px;
}

/* ==========================================================================
   CSS RESET & CORE ELEMENTS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-deep);
  color: var(--slate-light);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 18% 12%, rgba(197, 168, 128, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 82% 35%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.03) 0%, transparent 60%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Accessible focus outlines */
:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

/* Typography Base */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--platinum);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

p {
  color: var(--slate-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* Text Gradient Accents */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-emerald {
  color: var(--emerald-text);
}

.text-mono {
  font-family: var(--font-mono);
}

/* Section Header Structure */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  margin-bottom: 1.2rem;
  color: var(--platinum);
}

.section-desc {
  max-width: 680px;
  font-size: 1.15rem;
  color: var(--slate-body);
  margin-bottom: 3.5rem;
}

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0B132B;
  box-shadow: 0 4px 18px rgba(197, 168, 128, 0.3);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(197, 168, 128, 0.45);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--platinum);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
}

.btn-outline-gold:hover {
  background: rgba(197, 168, 128, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* Subtle Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.glass-card:hover {
  border-color: rgba(197, 168, 128, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(197, 168, 128, 0.08);
}

/* ==========================================================================
   NAVIGATION & TOPBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(4, 8, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(4, 8, 20, 0.94);
  height: 74px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(197, 168, 128, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.brand-wrapper:hover .brand-logo-img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 0 14px rgba(197, 168, 128, 0.45));
}

.brand-subtext {
  border-left: 1px solid var(--slate-dark);
  padding-left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--slate-muted);
  text-transform: uppercase;
  display: none;
}

@media (min-width: 992px) {
  .brand-subtext {
    display: block;
  }
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2.2rem;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-light);
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-smooth);
}

.nav-link:hover {
  color: var(--gold-light);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Toggle Switch */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  cursor: pointer;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--slate-body);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--gold-primary);
  color: #0B132B;
}

/* Client Portal Link */
.portal-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-light);
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.portal-link:hover {
  color: var(--gold-primary);
  border-color: var(--gold-border);
}

@media (min-width: 840px) {
  .portal-link {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--platinum);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Dropdown Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(5, 10, 24, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-120%);
  transition: transform var(--transition-smooth);
  z-index: 999;
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-drawer .nav-link {
  font-size: 1.25rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   HERO SECTION: INSTITUTIONAL GRANDEUR
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 4.5rem);
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-backdrop-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(197, 168, 128, 0.09) 0%, rgba(11, 20, 44, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.hero-content {
  max-width: 720px;
}

.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--slate-body);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* Credentials Trust Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--platinum);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

/* Hero Terminal Card: Multi-Dealer Live Mockup */
.hero-terminal {
  background: rgba(9, 16, 36, 0.85);
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(197, 168, 128, 0.12);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-text);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.terminal-quote-box {
  background: rgba(4, 9, 22, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.quote-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.quote-instrument {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--platinum);
  margin-bottom: 0.4rem;
}

.quote-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quote-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--slate-light);
}

.quote-tag.highlight {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-text);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Blind Auction Live Feed in Hero */
.auction-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: all var(--transition-fast);
}

.auction-row.winning {
  background: rgba(197, 168, 128, 0.09);
  border-color: rgba(197, 168, 128, 0.4);
}

.dealer-alias {
  color: var(--slate-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dealer-coupon {
  font-weight: 700;
  color: var(--platinum);
}

.winning .dealer-coupon {
  color: var(--gold-light);
}

.auction-badge-win {
  font-size: 0.66rem;
  background: var(--gold-gradient);
  color: #0B132B;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 0.5rem;
}

/* ==========================================================================
   SECTION: THE APPROACH (CONVERGENCIA PATRIMONIAL)
   Triad Architecture: Wealth Management + Derivatives + Premium Financing
   ========================================================================== */
.approach-section {
  padding: 6.5rem 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(8, 15, 34, 0.75) 50%, var(--bg-deep) 100%);
  position: relative;
}

.approach-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4.5rem;
}

.approach-intro .section-badge {
  margin-left: auto;
  margin-right: auto;
}

.triad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 992px) {
  .triad-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.triad-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.triad-card.featured {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, rgba(16, 29, 64, 0.8) 0%, rgba(9, 17, 38, 0.9) 100%);
  box-shadow: 0 15px 40px -10px rgba(197, 168, 128, 0.15);
}

.triad-number {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.triad-title {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  color: var(--platinum);
}

.triad-body {
  font-size: 0.98rem;
  color: var(--slate-body);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.triad-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.triad-features li {
  font-size: 0.88rem;
  color: var(--slate-light);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.triad-features li svg {
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.triad-synergy-banner {
  background: rgba(14, 25, 54, 0.6);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 880px) {
  .triad-synergy-banner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.synergy-text h4 {
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.synergy-text p {
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   PILLARS DETAILED SECTIONS
   ========================================================================== */
.pillar-section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.pillar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .pillar-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .pillar-layout.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .pillar-layout.reverse .pillar-content {
    order: 2;
  }
  .pillar-layout.reverse .pillar-visual {
    order: 1;
  }
}

.pillar-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2.25rem 0;
}

@media (min-width: 640px) {
  .pillar-specs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 0.35rem;
}

.spec-desc {
  font-size: 0.88rem;
  color: var(--slate-light);
  line-height: 1.4;
  margin: 0;
}

/* Interactive Simulator: Structured Notes Payoff Engine */
.notes-simulator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 700;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-light);
}

.control-val {
  color: var(--gold-light);
  font-weight: 700;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--slate-dark);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.8);
  border: 2px solid #0B132B;
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.8);
  border: 2px solid #0B132B;
}

/* Payoff Visualization SVG Canvas */
.payoff-visualizer {
  background: #02050E;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.payoff-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.payoff-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

.payoff-stat .val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}

.payoff-stat .lbl {
  font-size: 0.72rem;
  color: var(--slate-muted);
  text-transform: uppercase;
}

/* Spectrum of Financial Structures Catalog Grid */
.structures-catalog-wrapper {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.structures-catalog-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.structures-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .structures-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .structures-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.structure-item-card {
  background: rgba(11, 20, 44, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.structure-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-border);
  opacity: 0.6;
  transition: all var(--transition-fast);
}

.structure-item-card:hover {
  background: rgba(16, 29, 64, 0.85);
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.7);
}

.structure-item-card:hover::before {
  background: var(--gold-primary);
  opacity: 1;
}

.structure-type-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.structure-item-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--platinum);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.structure-item-desc {
  font-size: 0.88rem;
  color: var(--slate-body);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.structure-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.structure-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--slate-light);
}

.structure-tag-pill.gold {
  color: var(--gold-light);
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.25);
}

.structure-tag-pill.emerald {
  color: var(--emerald-text);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Institutional Leverage Model (formerly PF calculator) */
.pf-calculator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.pf-comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .pf-comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pf-side-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.pf-side-card.featured {
  background: rgba(197, 168, 128, 0.06);
  border-color: var(--gold-border);
}

.pf-side-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--platinum);
}

.pf-big-metric {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.pf-badge-advantage {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-text);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* ==========================================================================
   SECTION: GOVERNANCE, CUSTODY & REGULATORY SECURITY
   Swiss / International Institutional Neutrality
   ========================================================================== */
.governance-section {
  padding: 6.5rem 0;
  background: var(--bg-deep);
  position: relative;
}

.governance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .governance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gov-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-smooth);
}

.gov-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
}

.gov-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.gov-title {
  font-size: 1.45rem;
  color: var(--platinum);
  margin-bottom: 0.85rem;
}

.gov-text {
  font-size: 0.95rem;
  color: var(--slate-body);
  line-height: 1.65;
}

/* Custodian & Partner Badges */
.custody-partners-bar {
  margin-top: 4rem;
  padding: 2.5rem;
  background: rgba(11, 20, 44, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}

.custody-partners-bar h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.75rem;
}

.partners-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
}

.partner-logo-item {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}

.partner-logo-item:hover {
  color: var(--platinum);
}

/* ==========================================================================
   SECTION: ABOUT / QUIÉNES SOMOS & FIDUCIARY PEDIGREE
   ========================================================================== */
.about-section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(9, 17, 38, 0.6) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  gap: 1.25rem;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-text h4 {
  font-size: 1.2rem;
  color: var(--platinum);
  margin-bottom: 0.25rem;
}

.about-feature-text p {
  font-size: 0.92rem;
  margin: 0;
}

.about-card-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.committee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.committee-principles {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.principle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.principle-name {
  color: var(--slate-light);
}

.principle-status {
  color: var(--emerald-text);
  font-weight: 700;
}

/* ==========================================================================
   SECTION: INTAKE INSTITUCIONAL / CONTACTO PRIVADO
   Discreet, Qualified Family Office Intake Form
   ========================================================================== */
.intake-section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 50%, rgba(197, 168, 128, 0.05) 0%, var(--bg-deep) 70%);
}

.intake-card {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(11, 20, 44, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 0 0 30px rgba(197, 168, 128, 0.15);
}

.intake-header {
  text-align: center;
  margin-bottom: 3rem;
}

.intake-header .section-badge {
  margin-left: auto;
  margin-right: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-full {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-light);
  letter-spacing: 0.03em;
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--platinum);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-glow);
  outline: none;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--slate-muted);
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: #0B132B;
  color: var(--platinum);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--slate-muted);
  line-height: 1.5;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-disclaimer svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-primary);
}

.intake-submit-btn {
  width: 100%;
  margin-top: 1.75rem;
  padding: 1.1rem;
  font-size: 1.05rem;
}

/* Toast Notification for Form Submission */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #071026;
  border: 1px solid var(--gold-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(197, 168, 128, 0.3);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  color: var(--platinum);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2000;
  transform: translateY(150%);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FOOTER: REGULATORY DISCLOSURES & JURISDICTIONS
   Institutional Compliance Standards
   ========================================================================== */
.site-footer {
  background: #02040A;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.3fr repeat(3, 0.9fr);
  }
}

.footer-brand-col {
  max-width: 360px;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.footer-mission {
  font-size: 0.92rem;
  color: var(--slate-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-jurisdictions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jurisdiction-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--slate-muted);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--slate-body);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-disclaimers {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  font-size: 0.75rem;
  color: var(--slate-muted);
  line-height: 1.7;
}

.disclaimer-block {
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--slate-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: var(--slate-light);
}

/* Modal for Client Portal */
.portal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 14, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.portal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.portal-modal-box {
  background: #081126;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-float);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.portal-modal-overlay.active .portal-modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--slate-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--platinum);
}
