/* 
  OakDash (oakdash.com) - Craftsman Ad-Tech Design System
  Independent Google Ads Developer & Performance Strategy Agency
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-obsidian: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #161d2f;
  --bg-surface-hover: #1e273e;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(190, 242, 100, 0.4);
  --border-violet: rgba(129, 140, 248, 0.3);

  --neon-lime: #bef264;
  --neon-lime-dark: #a3e635;
  --neon-lime-glow: rgba(190, 242, 100, 0.2);

  --electric-violet: #818cf8;
  --electric-violet-glow: rgba(129, 140, 248, 0.25);
  
  --cyan-accent: #38bdf8;
  --emerald-accent: #34d399;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

/* Light Theme Color Tokens (Default Theme) */
[data-theme="light"] {
  --bg-obsidian: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  
  --border-subtle: #cbd5e1;
  --border-active: #65a30d;
  --border-violet: #6366f1;

  --neon-lime: #4d7c0f;
  --neon-lime-dark: #3f6212;
  --neon-lime-glow: rgba(77, 124, 15, 0.15);

  --electric-violet: #4f46e5;
  --electric-violet-glow: rgba(79, 70, 229, 0.15);
  
  --cyan-accent: #0284c7;
  --emerald-accent: #059669;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-heading);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: 
    radial-gradient(ellipse at 50% 0%, var(--electric-violet-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 40%, var(--neon-lime-glow) 0%, transparent 50%),
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px),
    var(--bg-obsidian);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  min-height: 100vh;
}

/* Base Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.text-gradient-lime {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--neon-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-violet {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--electric-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--neon-lime), #84cc16);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07090e;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 0 25px var(--neon-lime-glow);
}

.brand-logo span {
  color: var(--neon-lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-lime);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Light / Dark Mode Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--neon-lime);
  color: var(--neon-lime);
}

/* Mobile Nav Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-lime {
  background: var(--neon-lime);
  color: #ffffff;
  box-shadow: 0 0 30px var(--neon-lime-glow);
}

[data-theme="dark"] .btn-lime {
  color: #07090e;
}

.btn-lime:hover {
  background: var(--neon-lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(190, 242, 100, 0.4);
}

.btn-outline {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 170px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(190, 242, 100, 0.1);
  border: 1px solid var(--border-active);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-lime);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-tag .pulse {
  width: 8px;
  height: 8px;
  background: var(--neon-lime);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-lime);
}

.hero-title {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Micro Proof Badges */
.proof-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.proof-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.proof-item span {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Live Ad Mockup & Interactive Simulator Widget */
.ad-simulator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  position: relative;
}

.ad-simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.ad-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(129, 140, 248, 0.15);
  color: var(--electric-violet);
  border-radius: 4px;
  text-transform: uppercase;
}

/* Match Type Selector Controls */
.match-tabs {
  display: flex;
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-xs);
  gap: 4px;
  margin-bottom: 20px;
}

.match-tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s;
}

.match-tab.active {
  background: var(--neon-lime);
  color: #ffffff;
}

[data-theme="dark"] .match-tab.active {
  color: #07090e;
}

/* Interactive Headline Variant Tuner Chips */
.headline-variants {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.variant-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.variant-chip:hover, .variant-chip.active {
  border-color: var(--neon-lime);
  color: var(--neon-lime);
  background: var(--neon-lime-glow);
}

/* Actual Google Ad Visual Frame */
.google-ad-frame {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  color: #202124;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #cbd5e1;
}

.ad-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #202124;
  margin-bottom: 6px;
}

.ad-sponsor-badge {
  font-weight: 700;
  font-size: 11px;
  background: #202124;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}

.ad-display-url {
  font-size: 13px;
  color: #202124;
}

.ad-headline {
  font-size: 18px;
  font-weight: 600;
  color: #1a0dab;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ad-description {
  font-size: 13px;
  color: #4d5156;
  line-height: 1.4;
  margin-bottom: 10px;
}

.ad-sitelinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f3f4;
}

.sitelink-item {
  font-size: 13px;
  color: #1a0dab;
  font-weight: 500;
}

/* Dynamic Live Metrics Bar in Simulator */
.simulator-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sim-stat-box {
  background: var(--bg-surface-elevated);
  padding: 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.sim-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 700;
}

.sim-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--neon-lime);
  margin-top: 2px;
}

/* Code & API Console Terminal Component */
.code-console-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  margin-top: 48px;
}

.code-console-header {
  background: var(--bg-surface-elevated);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.code-tab-btns {
  display: flex;
  gap: 8px;
}

.code-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
}

.code-tab-btn.active {
  background: var(--neon-lime-glow);
  color: var(--neon-lime);
}

.code-console-body {
  padding: 24px;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--electric-violet);
  overflow-x: auto;
  background: var(--bg-obsidian);
}

.code-panel {
  display: none;
}

.code-panel.active {
  display: block;
}

/* Timeline Action Log Component */
.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--neon-lime);
}

.timeline-time {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.timeline-msg {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* Section Header Structure */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-lime);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Services 4 Core Pillars Section */
.pillars-section {
  padding: 100px 0;
}

.pillar-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.pillar-tab-btn {
  padding: 14px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}

.pillar-tab-btn.active, .pillar-tab-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--neon-lime);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--neon-lime-glow);
}

.pillar-tab-content {
  display: none;
}

.pillar-tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 48px;
}

.pillar-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.pillar-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.pillar-list li::before {
  content: "✦";
  color: var(--neon-lime);
}

.pillar-visual {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 28px;
}

/* Interactive ROI Calculator Section */
.calculator-section {
  padding: 100px 0;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.slider-group {
  margin-bottom: 32px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.slider-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--neon-lime);
}

.range-slider {
  width: 100%;
  height: 10px;
  background: var(--bg-surface-elevated);
  border-radius: 5px;
  outline: none;
  accent-color: var(--neon-lime);
  cursor: pointer;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.calc-res-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  border-radius: var(--radius-sm);
}

.calc-res-title {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 700;
}

.calc-res-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
}

.calc-res-value.highlight {
  color: var(--neon-lime);
}

/* Founder Showcase Section */
.founder-section {
  padding: 100px 0;
}

.founder-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
}

.founder-avatar-large {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--electric-violet), var(--neon-lime));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 900;
  color: #07090e;
  box-shadow: 0 0 40px var(--electric-violet-glow);
}

.founder-details h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.founder-role {
  font-size: 14px;
  color: var(--neon-lime);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.founder-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Contact Intake Modal Component */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  max-width: 640px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-lime);
  box-shadow: 0 0 0 3px var(--neon-lime-glow);
}

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

/* Toast Message */
.toast-bar {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--neon-lime);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3000;
}

[data-theme="dark"] .toast-bar {
  color: #07090e;
}

.toast-bar.active {
  transform: translateY(0);
  opacity: 1;
}

/* SAAS CLIENT PORTAL DASHBOARD STYLES (portal.html) */
.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 84px);
  margin-top: 84px;
}

.portal-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.portal-nav-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-nav-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.portal-nav-item:hover, .portal-nav-item.active {
  background: var(--bg-surface-elevated);
  color: var(--neon-lime);
}

.portal-nav-item.active {
  border-left: 3px solid var(--neon-lime);
}

.portal-api-badge {
  margin-top: auto;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 16px;
  border-radius: var(--radius-xs);
}

.portal-api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-accent);
}

.portal-api-status .pulse-green {
  width: 8px;
  height: 8px;
  background: var(--emerald-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-accent);
}

.portal-main-view {
  padding: 36px 40px;
  background: var(--bg-obsidian);
}

.portal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.portal-grid-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.portal-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.portal-metric-header {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 700;
}

.portal-metric-value {
  font-size: 26px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--text-primary);
}

.portal-metric-sub {
  font-size: 12px;
  color: var(--emerald-accent);
  margin-top: 4px;
}

.portal-tab-panel {
  display: none;
}

.portal-tab-panel.active {
  display: block;
}

.portal-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 32px;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.portal-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-tertiary);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.portal-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.portal-login-card {
  max-width: 440px;
  margin: 140px auto 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Status Toggle Badge */
.status-pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.status-pill-toggle.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
  border-color: rgba(16, 185, 129, 0.3);
}

.status-pill-toggle.paused {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Footer */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--neon-lime);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .calc-box { grid-template-columns: 1fr; }
  .pillar-tab-content.active { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .founder-card { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .portal-grid-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-title { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .calc-results-grid { grid-template-columns: 1fr; }
  .portal-grid-metrics { grid-template-columns: 1fr; }
}
