/* ==========================================================================
   VALENCE CAPITAL — CORE STYLESHEET
   Executive Neobank & Sovereign Treasury Architecture
   Distinct Editorial High-Finance Personality (Mercury / Stripe Press Inspired)
   Zero External Libraries | 100% Vanilla CSS
   ========================================================================== */

/* --- 1. Reset & Foundations --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle Structural Architectural Background Lines */
.canvas-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.canvas-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(30, 36, 48, 0.3) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(14, 16, 21, 0.95) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--spacing-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

/* Typography & Prestige Helpers */
.font-serif {
  font-family: var(--font-serif);
}

.font-mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

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

.eyebrow-institutional {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-size: clamp(0.65rem, 2.5vw, 0.725rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-inner-rim);
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
  text-align: center;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Section Rhythm */
.section {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.section-header h2 em {
  font-style: italic;
  color: var(--text-champagne);
  font-weight: 400;
}

.section-header p {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Double-Bezel Architectural Container Pattern */
.double-bezel {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-outer-lg);
  padding: 6px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-smooth);
}

.double-bezel:hover {
  border-color: var(--border-subtle);
}

.double-bezel-inner {
  background: var(--bg-surface-0);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-inner-lg);
  box-shadow: var(--shadow-inner-rim);
  position: relative;
  overflow: hidden;
}

/* --- 2. Structural Edge-to-Edge Architectural Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-monogram {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.header-nav-links a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-login {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.btn-login:hover {
  color: #ffffff;
}

/* Executive Architectural Button */
.btn-executive {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-champagne);
  color: #090a0d;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-executive:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.btn-executive:active {
  transform: scale(0.98);
}

.btn-ghost-executive {
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.btn-ghost-executive:hover {
  color: #ffffff;
}

/* Mobile Hamburger Toggle */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: #ffffff;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  position: absolute;
}

.hamburger-line:nth-child(1) { transform: translateY(-4px); }
.hamburger-line:nth-child(2) { transform: translateY(4px); }

.nav-mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.nav-mobile-toggle.active .hamburger-line:nth-child(2) {
  transform: rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-surface-glass-heavy);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-list li {
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-spring), opacity var(--transition-spring);
}

.mobile-drawer.active .mobile-nav-list li {
  transform: translateY(0);
  opacity: 1;
}

.mobile-drawer.active .mobile-nav-list li:nth-child(1) { transition-delay: 100ms; }
.mobile-drawer.active .mobile-nav-list li:nth-child(2) { transition-delay: 150ms; }
.mobile-drawer.active .mobile-nav-list li:nth-child(3) { transition-delay: 200ms; }
.mobile-drawer.active .mobile-nav-list li:nth-child(4) { transition-delay: 250ms; }
.mobile-drawer.active .mobile-nav-list li:nth-child(5) { transition-delay: 300ms; }

.mobile-nav-list a {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

/* --- 3. Hero Section: Asymmetric Editorial Split View --- */
.hero-section {
  padding-top: calc(var(--header-height) + clamp(3.5rem, 6vw, 5.5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-left-column {
  max-width: 640px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 4.8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-headline em {
  font-style: italic;
  color: var(--text-champagne);
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

/* Fast-Track Domain Onboarding Input */
.hero-onboarding-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: var(--shadow-card), var(--shadow-inner-rim);
  max-width: 480px;
  margin-bottom: 1.25rem;
  transition: border-color var(--transition-fast);
}

.hero-onboarding-box:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-onboarding-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: #ffffff;
  width: 100%;
}

.hero-onboarding-input::placeholder {
  color: var(--text-tertiary);
}

.hero-sub-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 2.5rem;
}

.hero-sub-actions a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.hero-sub-actions a:hover {
  color: #ffffff;
}

/* Institutional Metrics Bar */
.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-hairline);
  width: 100%;
  text-align: center;
}

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

.metric-val {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.metric-tag {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* --- Hero Right Column: 3D Titanium Card Stage --- */
.hero-card-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

/* Floating Live Settlement Wire Tag */
.floating-settlement-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(18, 21, 28, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-subtle);
}

.card-perspective-viewport {
  perspective: 1200px;
  width: 100%;
  max-width: 440px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.physical-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
  user-select: none;
}

.physical-card-3d:active {
  cursor: grabbing;
}

.physical-card-3d.flipped {
  transform: rotateY(180deg) !important;
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-outer-lg);
  padding: 1.65rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-elevation);
}

/* Material Finishes */
.card-face.titanium {
  background: radial-gradient(circle at 80% 20%, #2a2f3d 0%, #111319 75%, #08090c 100%);
}

.card-face.platinum {
  background: radial-gradient(circle at 80% 20%, #e2e8f0 0%, #94a3b8 60%, #475569 100%);
  color: #0f172a;
}

.card-face.tungsten {
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #090e17 75%, #020617 100%);
}

/* Dynamic Sheen / Glare Overlay */
.card-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  transition: opacity var(--transition-fast);
}

/* Brushed Lines */
.card-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
}

/* Card Front Elements */
.card-front-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #d4b996 0%, #997e59 100%);
  border-radius: 5px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.card-chip::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.card-nfc-icon {
  width: 22px;
  height: 22px;
  opacity: 0.75;
}

.card-number-preview {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.card-front-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.card-holder-info {
  display: flex;
  flex-direction: column;
}

.card-holder-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.card-holder-name {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-brand-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.95;
}

/* Card Back */
.card-back {
  transform: rotateY(180deg);
}

.card-magstripe {
  position: absolute;
  top: 1.75rem;
  left: 0;
  right: 0;
  height: 44px;
  background: #000000;
  opacity: 0.95;
}

.card-back-content {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

.card-cvv-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-details-table {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  opacity: 0.75;
}

/* Hero Card Controls Panel */
.hero-card-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--bg-surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  box-shadow: var(--shadow-subtle);
}

.material-selector {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.material-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.material-pill:hover {
  color: #ffffff;
}

.material-pill.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
  color: #ffffff;
  box-shadow: var(--shadow-inner-rim);
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
}

/* Haptic Toast */
.haptic-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #ffffff;
  color: #08090b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-spring), opacity var(--transition-spring);
}

.haptic-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- 4. Real-Time Autonomous Capital Ledger --- */
.ledger-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ledger-telemetry-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.telemetry-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.telemetry-label {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.telemetry-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.telemetry-badge {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-emerald);
}

/* Ledger Table Shell */
.ledger-table-shell {
  padding: 1.5rem;
}

.ledger-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.ledger-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-1);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active {
  background: var(--bg-surface-3);
  color: #ffffff;
}

.ledger-stream-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.ledger-transactions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tx-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.tx-row:hover {
  background: var(--bg-surface-2);
  border-color: var(--border-subtle);
  transform: translateX(2px);
}

.tx-row.new-incoming {
  animation: flash-row 1.5s ease-out;
}

@keyframes flash-row {
  0% { background: rgba(16, 185, 129, 0.2); border-color: var(--accent-emerald); }
  100% { background: var(--bg-surface-1); border-color: var(--border-hairline); }
}

.tx-entity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tx-icon-frame {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid var(--border-hairline);
}

.tx-name {
  font-weight: 600;
  color: #ffffff;
}

.tx-category-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  width: fit-content;
}

.tx-amount {
  font-weight: 700;
  text-align: right;
}

.tx-amount.positive {
  color: var(--accent-emerald);
}

.tx-amount.negative {
  color: var(--text-primary);
}

.tx-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--accent-emerald);
  justify-content: flex-end;
}

/* --- 5. Interactive Treasury Yield & FDIC Calculator --- */
.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.calc-interactive-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.calc-live-deposit {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.styled-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-3);
  outline: none;
  margin: 1.5rem 0 2rem;
  cursor: pointer;
}

.styled-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-champagne);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  cursor: grab;
  transition: transform var(--transition-fast);
}

.styled-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-breakdown-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.calc-row-label {
  color: var(--text-secondary);
}

.calc-row-value {
  font-weight: 700;
  color: #ffffff;
}

/* Yield Output Comparison Card */
.calc-output-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%), var(--bg-surface-0);
}

.annual-yield-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.annual-yield-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-emerald);
  font-weight: 700;
}

.annual-yield-sum {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.annual-yield-subtext {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.comparison-pills-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.comp-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
}

.comp-pill.highlight {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.04);
}

/* --- 6. Asymmetric Bento Grid (Global Capital Infrastructure) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-card-inner {
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.bento-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interactive FX Swapper Widget */
.fx-widget-box {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fx-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fx-currency-selector {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
}

/* Code Snippet Box */
.api-snippet-box {
  background: #040507;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  line-height: 1.7;
  color: #cbd5e1;
  overflow-x: auto;
  margin-top: 1.5rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.token-keyword { color: #f43f5e; }
.token-function { color: #38bdf8; }
.token-string { color: #10b981; }
.token-comment { color: var(--text-tertiary); }

/* --- 7. Comparison Matrix Section --- */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.matrix-table th, .matrix-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.9rem;
}

.matrix-table th {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.matrix-table th.col-valence {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.matrix-table td.col-valence {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  color: #ffffff;
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: 800;
}

.cross-icon {
  color: var(--text-tertiary);
}

/* --- 8. Spring FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface-0);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-subtle);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-plus-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.faq-plus-icon::before, .faq-plus-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-secondary);
  transition: transform var(--transition-smooth);
}

.faq-plus-icon::before {
  top: 9px;
  left: 3px;
  right: 3px;
  height: 2px;
}

.faq-plus-icon::after {
  top: 3px;
  bottom: 3px;
  left: 9px;
  width: 2px;
}

.faq-item.open .faq-plus-icon {
  transform: rotate(45deg);
}

.faq-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms cubic-bezier(0.16, 1, 0.3, 1), padding 500ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.75rem;
}

.faq-item.open .faq-drawer {
  max-height: 240px;
  padding-bottom: 1.5rem;
}

.faq-drawer p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* --- 9. Minimalist Institutional Footer --- */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding-top: 5rem;
  padding-bottom: 4rem;
  background: #050608;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-col p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-compliance-notice {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- 10. Kinetic Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 750ms cubic-bezier(0.16, 1, 0.3, 1), transform 750ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- 11. Strict Responsive Engine (Desktop, Tablet, Mobile) --- */
@media (max-width: 1160px) {
  .header-nav, .btn-login {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-left-column {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }

  .hero-onboarding-box {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-sub-actions {
    justify-content: center;
  }

  .hero-card-stage {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 1rem;
  }

  /* Hide header button on mobile so only brand and hamburger remain */
  .header-actions .btn-executive {
    display: none;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2.5rem;
  }

  .hero-headline {
    font-size: clamp(2.1rem, 7vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-perspective-viewport {
    max-width: 320px;
    height: 195px;
  }

  .card-face {
    padding: 1.1rem 1.25rem;
  }

  .card-number-preview {
    font-size: 0.925rem;
    letter-spacing: 0.1em;
  }

  .card-chip {
    width: 34px;
    height: 26px;
  }

  .hero-metrics-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .hero-onboarding-box {
    flex-direction: column;
    padding: 0.65rem;
    gap: 0.5rem;
    width: 100%;
  }

  .hero-onboarding-input {
    text-align: center;
  }

  .hero-onboarding-box .btn-executive {
    width: 100%;
    justify-content: center;
  }

  .hero-sub-actions {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .tx-row {
    grid-template-columns: 1.5fr 1fr 1fr;
    font-size: 0.775rem;
  }

  .tx-row .tx-date, .tx-row .tx-status-pill {
    display: none;
  }

  .matrix-table {
    min-width: 580px;
  }

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

@media (max-width: 480px) {
  .card-perspective-viewport {
    max-width: 290px;
    height: 180px;
  }

  .card-face {
    padding: 1rem 1.15rem;
  }

  .hero-card-controls {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .material-selector {
    justify-content: center;
    width: 100%;
  }

  .calc-slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ledger-table-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ledger-filter-group {
    width: 100%;
    overflow-x: auto;
  }
}
