/* =========================================
   SOROBAN VAULT — STRIPE LIGHT THEME
   ========================================= */

:root {
  --bg:               #ffffff;
  --bg-subtle:        #f7f7f8;
  --bg-section:       #f3f4f6;
  --border:           #e5e7eb;
  --border-strong:    #d1d5db;
  --primary:          #5046e5;
  --primary-hover:    #4338ca;
  --primary-bg:       #eef2ff;
  --primary-border:   #c7d2fe;
  --text:             #111827;
  --text-2:           #374151;
  --text-3:           #6b7280;
  --text-4:           #9ca3af;
  --success:          #16a34a;
  --success-bg:       #f0fdf4;
  --success-border:   #bbf7d0;
  --error:            #dc2626;
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:        0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:        0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --font:             'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:             'JetBrains Mono', 'Fira Code', monospace;
  --radius:           6px;
  --radius-lg:        10px;
  --radius-xl:        14px;
  --transition:       all 0.18s cubic-bezier(0.16,1,0.3,1);
  /* legacy aliases */
  --stellar-black:    #111827;
  --stellar-yellow:   #5046e5;
  --stellar-yellow-hover: #4338ca;
  --bg-cream:         #f7f7f8;
  --bg-cream-alt:     #f3f4f6;
  --text-muted:       #6b7280;
  --text-light:       #9ca3af;
  --border-light:     #e5e7eb;
  --border-medium:    #d1d5db;
  --shadow-card:      0 4px 12px rgba(0,0,0,0.08);
  --shadow-yellow:    0 2px 8px rgba(80,70,229,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body { font-family: var(--font); background: var(--bg-subtle); color: var(--text); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* =========================================
   NAV
   ========================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }

.nav-logo { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo-orb { width: 24px; height: 24px; background: var(--primary); border-radius: var(--radius); flex-shrink: 0; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-3);
  padding: 6px 10px; border-radius: var(--radius); transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-subtle); }
.nav-links a.nav-active { color: var(--primary); background: var(--primary-bg); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-connect {
  padding: 8px 16px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; transition: var(--transition);
}
.btn-connect:hover { background: var(--primary-hover); box-shadow: 0 2px 8px rgba(80,70,229,0.3); }

.mobile-toggle { display: none; background: transparent; border: none; color: var(--text); font-size: 20px; }
.mobile-menu {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--bg); z-index: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transform: translateY(-100%); transition: transform 0.35s ease;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { color: var(--text); font-size: 18px; font-weight: 600; }

/* =========================================
   HERO
   ========================================= */
.hero-section {
  position: relative; margin-top: 60px;
  background: var(--bg); overflow: hidden;
  padding: 64px 0 52px; border-bottom: 1px solid var(--border);
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(80,70,229,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-section::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; text-align: center; }

.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 20px; }
.breadcrumb a, .breadcrumb span { font-size: 12px; font-weight: 500; color: var(--text-4); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { color: var(--text-4); flex-shrink: 0; }

.hero-title { font-size: clamp(26px, 4vw, 42px); font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.hero-desc { font-size: 15px; color: var(--text-3); max-width: 600px; margin: 0 auto 36px; line-height: 1.6; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  padding: 10px 20px; background: var(--primary); border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: #fff; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.btn-primary:not(:disabled):hover { background: var(--primary-hover); box-shadow: 0 2px 8px rgba(80,70,229,0.3); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  padding: 10px 20px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

/* =========================================
   PAGE BODY
   ========================================= */
.page-body { padding: 40px 24px 80px; }
.container { max-width: 1360px; margin: 0 auto; }

/* =========================================
   STATS GRID
   ========================================= */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; display: flex; align-items: flex-start; gap: 14px; transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.stat-icon {
  width: 40px; height: 40px; background: var(--primary-bg);
  border: 1px solid var(--primary-border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { stroke: var(--primary); }

.stat-content { flex: 1; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; margin-bottom: 3px; }
.stat-change { font-size: 12px; color: var(--text-4); }

/* =========================================
   CONTENT GRID
   ========================================= */
.content-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }
.main-column { display: flex; flex-direction: column; gap: 20px; }
.side-column { display: flex; flex-direction: column; gap: 20px; }

/* =========================================
   SECTION CARD
   ========================================= */
.section-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.section-header h2 { font-size: 16px; font-weight: 600; color: var(--text); }

.btn-icon {
  width: 32px; height: 32px; background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.btn-icon:not(:disabled):hover { background: var(--primary-bg); border-color: var(--primary-border); }
.btn-icon:not(:disabled):hover svg { stroke: var(--primary); }
.btn-icon:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-text {
  background: transparent; border: none; font-size: 13px; font-weight: 500;
  color: var(--primary); cursor: pointer; transition: color 0.15s;
}
.btn-text:hover { color: var(--primary-hover); }

/* =========================================
   EMPTY STATE
   ========================================= */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state.small { padding: 32px 20px; }
.empty-state svg { color: var(--text-4); margin-bottom: 14px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--text-3); }

/* =========================================
   ACTION BUTTONS
   ========================================= */
.action-buttons { display: flex; flex-direction: column; gap: 10px; }
.action-btn {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: var(--transition); text-align: left;
}
.action-btn:not(:disabled):hover { border-color: var(--primary-border); background: var(--primary-bg); }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.action-icon {
  width: 38px; height: 38px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.action-btn:not(:disabled):hover .action-icon { background: var(--primary); border-color: var(--primary); }
.action-btn:not(:disabled):hover .action-icon svg { stroke: #fff; }

.action-content { flex: 1; }
.action-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.action-desc { font-size: 12px; color: var(--text-3); }

/* =========================================
   THRESHOLD INFO
   ========================================= */
.threshold-info {
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.threshold-label { font-size: 11px; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.07em; }
.threshold-value { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); }

/* =========================================
   INFO CARD
   ========================================= */
.info-card {
  background: var(--primary-bg); border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg); padding: 18px; display: flex; gap: 14px;
}
.info-icon {
  width: 36px; height: 36px; background: var(--primary); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { stroke: #fff; }
.info-content { flex: 1; }
.info-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.info-text { font-size: 12px; line-height: 1.6; color: var(--text-3); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) { .content-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-inner { padding: 0 20px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .page-body { padding: 24px 16px 60px; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .content-grid { gap: 12px; }
}
