/* ═══════════════════════════════════════════════════════════════════
   WEALTHGRID HUB — DARK PREMIUM DESIGN v5.0
   Complete 104-class coverage | Dark Theme
   ═══════════════════════════════════════════════════════════════════ */

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

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #08090f;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #10b981;
  --accent2: #14b8a6;
  --purple: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --muted: #64748b;
  --border: rgba(255,255,255,0.08);
  --bg: rgba(255,255,255,0.03);
  --bg2: rgba(255,255,255,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.4);
  --navy: #0f172a;
  --green: #10b981;
  --green-dark: #059669;
  --teal: #14b8a6;
}

/* ═══ CONTAINER ═══ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ═══ NAVBAR ═══ */
#header-placeholder { height: 104px; }

.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 72px;
  background: rgba(8,9,15,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 1000;
  display: flex; align-items: center;
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
#logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
#logo-link:hover { text-decoration: none; }

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: #0f172a; flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; }
#footer-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: white; }

.logo-text {
  font-family: 'Poppins', sans-serif; font-size: 1.375rem;
  font-weight: 800; color: #ffffff; text-transform: uppercase;
}
.logo-text span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-link, .nav-links a {
  font-size: .9rem; font-weight: 600; color: var(--text2);
  text-decoration: none; transition: color 200ms ease; position: relative;
  padding-bottom: 4px;
}
.nav-link::after, .nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 250ms ease;
}
.nav-link:hover, .nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-link:hover::after, .nav-links a:hover::after { width: 100%; }

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

.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #ffffff; border-radius: 2px; transition: all 300ms ease; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══ TICKER ═══ */
.ticker-wrap {
  background: linear-gradient(135deg, #059669, #0d9488);
  color: #ffffff; font-size: .8rem; overflow: hidden; padding: 6px 0;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
}
.ticker { display: flex; gap: 40px; animation: scroll 30s linear infinite; white-space: nowrap; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; opacity: .9; }
.ticker-item::before { content: '◆'; font-size: .5rem; opacity: .6; }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══ HERO ═══ */
.hero {
  min-height: calc(100vh - 104px); display: flex; align-items: center;
  padding: 48px 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #08090f 0%, #0f172a 50%, #08090f 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(16,185,129,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-orb-1 { width: 400px; height: 400px; background: rgba(16,185,129,.08); top: -100px; right: -100px; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(20,184,166,.06); bottom: -50px; left: -50px; }
.hero-orb-3 { width: 200px; height: 200px; background: rgba(139,92,246,.04); bottom: 20%; right: 20%; }

.hero .container { position: relative; z-index: 2; text-align: center; max-width: 900px; }

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900; line-height: 1.1; color: #ffffff;
  margin-bottom: 24px; letter-spacing: -.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.2rem; color: var(--text2);
  max-width: 720px; margin: 0 auto 40px; line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 24px; padding-top: 32px; border-top: 1px solid var(--border);
  max-width: 750px; margin: 0 auto;
}

.stat-item { text-align: center; }
.stat-value {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 4px;
}
.stat-label { font-size: .9rem; color: var(--text2); font-weight: 600; }

/* ═══ BADGE ═══ */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  background: var(--bg); color: #ffffff; border: 1px solid var(--border);
  margin-bottom: 20px;
}
.badge--cyan {
  background: rgba(16,185,129,.08); color: var(--accent); border-color: rgba(16,185,129,.15);
}
.badge--indigo {
  background: rgba(139,92,246,.08); color: var(--purple); border-color: rgba(139,92,246,.15);
}
.badge--green {
  background: rgba(16,185,129,.1); color: #6ee7b7; border-color: rgba(16,185,129,.2);
}

.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); display: inline-block;
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
  70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; border: 2px solid transparent;
  cursor: pointer; transition: all 250ms ease; text-decoration: none;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,.2);
  transform: translate(-50%,-50%);
  transition: width 500ms ease, height 500ms ease;
}
.btn:hover::before { width: 300px; height: 300px; }

.btn-primary { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #0f172a; border: none; box-shadow: 0 4px 15px rgba(16,185,129,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16,185,129,.4); }

.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #0f172a; }

.btn-secondary { background: rgba(255,255,255,.06); color: #ffffff; border-color: rgba(255,255,255,.12); }
.btn-secondary:hover { background: rgba(255,255,255,.12); color: #ffffff; border-color: rgba(255,255,255,.2); }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ═══ SECTIONS ═══ */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block; font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800;
  color: #ffffff; margin-bottom: 16px;
}
.section-desc {
  font-size: 1.1rem; color: var(--text2);
  max-width: 650px; margin: 0 auto; line-height: 1.8;
}

.section-testimonials { background: var(--bg); }

/* ═══ INSIGHTS GRID (Homepage) ═══ */
.insights-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr));
  gap: 28px;
}

.article-card {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 300ms ease; cursor: pointer;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  backdrop-filter: blur(8px);
}
.article-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-8px);
}

.card-img {
  position: relative; width: 100%; height: 200px; overflow: hidden;
  background: var(--bg2);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; display: block; }
.article-card:hover .card-img img { transform: scale(1.08); }

.card-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  color: #0f172a; padding: 6px 14px; border-radius: 100px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}

.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.card-title { font-size: 1.2rem; font-weight: 700; color: #ffffff; margin-bottom: 12px; line-height: 1.4; }
.card-excerpt { color: var(--text2); font-size: .9rem; line-height: 1.7; flex: 1; margin-bottom: 16px; }
.card-link { color: var(--accent); font-weight: 700; display: flex; align-items: center; gap: 6px; transition: gap 250ms ease; }
.article-card:hover .card-link { gap: 12px; }

/* ═══ ARTICLE PAGE ═══ */
.article-container, .article-page, .legal-container, .legal-content { max-width: 900px; margin: 0 auto; padding: 48px 24px; }

.breadcrumb { font-size: .85rem; color: var(--text2); margin-bottom: 32px; }
.breadcrumb a { color: var(--accent); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent2); }

.article-header { margin-bottom: 48px; }
.article-meta, .article-category { font-size: .85rem; color: var(--text2); margin-bottom: 16px; font-weight: 600; }
.article-title { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800; color: #ffffff; margin-bottom: 16px; line-height: 1.2; }
.article-desc { color: var(--text2); font-size: 1.1rem; line-height: 1.8; }

.article-hero, .article-hero-wrap { position: relative; width: 100%; margin-bottom: 32px; }
.article-hero-img, .article-hero-image { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.article-image-wrapper { margin: 24px 0; }
.article-inline-image { width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; }

.article-body { font-size: 1.05rem; color: var(--text2); line-height: 1.9; }
.article-body h2 { margin-top: 40px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 3px solid var(--accent); font-weight: 700; color: #ffffff; }
.article-body h3 { margin-top: 32px; margin-bottom: 16px; font-weight: 700; color: #ffffff; }
.article-body p { margin-bottom: 20px; line-height: 1.85; }
.article-body ul, .article-body ol { margin-left: 32px; margin-bottom: 20px; }
.article-body li { margin-bottom: 12px; line-height: 1.85; }
.article-body table { width: 100%; border-collapse: collapse; margin: 32px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.article-body th { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #0f172a; padding: 16px; text-align: left; font-weight: 700; }
.article-body td { padding: 16px; border: 1px solid var(--border); }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article-body table, .article-body pre, .article-body code { word-break: break-word; overflow-wrap: break-word; }
.article-body tr:nth-child(even) td { background: rgba(255,255,255,.02); }

.author-bio { display: flex; gap: 20px; padding: 24px; background: var(--bg2); border-radius: var(--radius); border-left: 4px solid var(--accent); margin: 32px 0; align-items: center; }
.author-bio img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio h4 { font-size: 1.1rem; margin-bottom: 4px; color: #ffffff; }
.author-bio p { margin: 0; font-size: .9rem; color: var(--text2); }
.author-ps { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.editor-note { background: var(--bg2); border-radius: var(--radius); padding: 24px; margin: 24px 0; border-left: 4px solid var(--warning); font-size: .9rem; }
.content-disclaimer { background: var(--bg2); padding: 20px; border-radius: var(--radius); margin: 24px 0; border-left: 4px solid var(--muted); font-size: .85rem; color: var(--text2); }

.share-section { margin: 32px 0; padding: 24px; background: var(--bg2); border-radius: var(--radius); display: flex; gap: 16px; align-items: center; }

.cta-band { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #0f172a; padding: 48px; border-radius: var(--radius-lg); text-align: center; margin: 48px 0; }
.cta-band h3 { color: #0f172a; font-size: 1.75rem; margin-bottom: 16px; }
.cta-band p { color: rgba(15,23,42,.8); max-width: 600px; margin: 0 auto 24px; }
.cta-band .btn { background: #0f172a; color: white; }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ═══ TOOLS ═══ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.tool-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 28px; transition: all 300ms ease; cursor: pointer; text-decoration: none; color: inherit; display: flex; flex-direction: column; backdrop-filter: blur(8px); }
.tool-card:hover { border-left-color: var(--accent2); transform: translateX(6px); box-shadow: var(--shadow-md); }
.tool-icon { width: 48px; height: 48px; background: linear-gradient(135deg,var(--accent),var(--accent2)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #0f172a; font-size: 1.5rem; margin-bottom: 16px; }
.tool-name { font-size: 1.2rem; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.tool-desc { color: var(--text2); font-size: .9rem; line-height: 1.7; flex: 1; margin-bottom: 12px; }
.tool-link { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* ═══ GUIDES ═══ */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.guide-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 300ms ease; cursor: pointer; text-decoration: none; color: inherit; backdrop-filter: blur(8px); }
.guide-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.guide-icon { width: 48px; height: 48px; background: linear-gradient(135deg,var(--purple),var(--accent2)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #0f172a; font-size: 1.5rem; margin-bottom: 16px; }
.guide-title { font-size: 1.2rem; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.guide-desc { color: var(--text2); font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.guide-cta { color: var(--accent); font-weight: 600; }

/* ═══ TESTIMONIALS ═══ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.testimonial-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(8px); }
.testimonial-stars { color: var(--warning); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-text { color: var(--text2); font-size: .95rem; line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-weight: 700; color: #ffffff; font-size: .9rem; }

/* ═══ WG TABLE ═══ */
.wg-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem; }
.wg-table th { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #0f172a; padding: 14px 16px; text-align: left; font-weight: 700; }
.wg-table td { padding: 14px 16px; border: 1px solid var(--border); }
.wg-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.wg-table tr:hover td { background: rgba(255,255,255,.04); }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #ffffff; margin-bottom: 16px; line-height: 1.25; }
h1 { font-size: clamp(2rem,6vw,3.5rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem,4vw,2.5rem); font-weight: 800; }
h3 { font-size: 1.375rem; font-weight: 700; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 16px; line-height: 1.8; color: var(--text2); }

a { color: var(--accent); text-decoration: none; font-weight: 500; transition: color 200ms ease; }
a:hover { color: var(--accent2); text-decoration: underline; }

.internal-link { color: var(--accent); font-weight: 600; }

/* ═══ FOOTER ═══ */
.footer {
  background: #0f172a; color: white; padding: 48px 0 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { grid-column: 1; }
.footer-brand a { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: white; text-decoration: none; }
.footer-brand a .logo-text { color: white; }
.footer-brand a .logo-text span { color: var(--accent2); }
.footer-brand-desc { color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.7; margin-bottom: 0; }

.footer-col { }
.footer-col-title { color: white; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 400; transition: color 200ms ease; }
.footer-col a:hover { color: var(--accent2); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-bottom p { color: rgba(255,255,255,.6); font-size: .85rem; margin-bottom: 0; }
.footer-trust { display: flex; gap: 24px; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-trust span { display: flex; align-items: center; gap: 6px; }

/* ═══ TOOL PAGES ═══ */
.tool-container, .dashboard-content { min-height: calc(100vh - 104px); padding: 48px 0; }
.tool-hero { margin-bottom: 48px; }
.tool-title { font-family: 'Poppins', sans-serif; font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800; color: #ffffff; margin-bottom: 12px; }
.tool-subtitle { font-size: 1.1rem; color: var(--text2); max-width: 650px; margin-bottom: 0; line-height: 1.8; }
.gradient-text--cyan-indigo {
  background: linear-gradient(135deg, #10b981, #14b8a6, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.calc-panel, .glass-panel { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(8px); }
.card-glass { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(8px); }
.glass-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(8px); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.form-input, .form-textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: .95rem; font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,.06); color: #ffffff;
  transition: border-color 200ms ease;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16,185,129,.1); }
.form-textarea { resize: vertical; min-height: 100px; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.mono { font-family: 'JetBrains Mono', monospace; }

.result-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.result-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.result-card--primary { background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(20,184,166,.05)); border-color: rgba(16,185,129,.2); }
.rc-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.rc-value { font-size: 2rem; font-weight: 800; color: #ffffff; }

.growth-bar-wrap { height: 12px; background: rgba(255,255,255,.06); border-radius: 100px; overflow: hidden; margin-top: 8px; }
.growth-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 100px; transition: width 300ms ease; }

.milestone-list { margin-bottom: 24px; }
.milestone-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.milestone-age { font-weight: 700; color: #ffffff; }
.milestone-val { color: var(--accent); font-weight: 600; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.info-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.info-card-label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.info-card-val { font-size: 1.25rem; font-weight: 700; color: #ffffff; }

.edu-section { margin-top: 48px; }
.edu-section h2 { color: #ffffff; }

.disclaimer-box { padding: 20px; border-radius: var(--radius); margin: 24px 0; background: rgba(239,68,68,.05); border-left: 4px solid var(--danger); font-size: .9rem; line-height: 1.6; color: var(--text2); }

/* ═══ SENTIMENT GAUGE ═══ */
.gauge-wrapper { max-width: 520px; margin: 0 auto 48px; }
.sentiment-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 36px 28px; text-align: center;
  backdrop-filter: blur(8px);
}
.gauge-label { font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.gauge-label.status-bullish { color: #6ee7b7; }
.gauge-label.status-bearish { color: #fca5a5; }
.gauge-label.status-neutral { color: #fbbf24; }
.gauge-val { font-size: 3.5rem; font-weight: 900; color: #ffffff; line-height: 1.1; margin-bottom: 20px; }
.gauge-viz {
  position: relative; width: 240px; height: 120px; margin: 0 auto 32px;
  overflow: hidden;
}
.gauge-viz::before {
  content: ''; position: absolute; inset: 0;
  background: conic-gradient(from 180deg at 50% 100%,
    #ef4444 0deg, #f59e0b 45deg, #fbbf24 90deg,
    #6ee7b7 135deg, #10b981 180deg
  );
  border-radius: 240px 240px 0 0;
  mask: radial-gradient(ellipse at 50% 100%, transparent 68%, black 68%);
  -webkit-mask: radial-gradient(ellipse at 50% 100%, transparent 68%, black 68%);
}
.gauge-viz::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 160px; height: 80px; background: rgba(8,9,15,0.95);
  border-radius: 160px 160px 0 0;
}
.gauge-needle {
  position: absolute; bottom: 0; left: 50%; transform-origin: bottom center;
  transform: translateX(-50%) rotate(-90deg);
  width: 3px; height: 95px; background: #ffffff;
  border-radius: 2px; z-index: 2;
  transition: transform 1s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}
.gauge-needle::after {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; background: #ffffff; border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.metric-box {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 20px 12px; text-align: center;
}
.metric-label { font-size: .75rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.sentiment-card .metric-val { font-size: 1.5rem; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.metric-status { font-size: .75rem; font-weight: 600; }
.metric-status.status-bullish { color: #6ee7b7; }
.metric-status.status-bearish { color: #fca5a5; }
.metric-status.status-neutral { color: #fbbf24; }

/* ═══ DASHBOARD / TOOL LAYOUTS ═══ */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin: 32px 0; }
.terminal-box { background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.terminal-header { background: rgba(255,255,255,.04); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-content { padding: 16px; }

.card-title { font-size: 1rem; font-weight: 700; color: #ffffff; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.card-title span { font-size: .7rem; background: rgba(16,185,129,.1); color: var(--accent); padding: 2px 8px; border-radius: 100px; font-weight: 600; }

.metric-box { text-align: center; padding: 16px; }
.metric-val { font-size: 2rem; font-weight: 800; color: var(--accent); }
.metric-label { font-size: .8rem; color: var(--muted); font-weight: 500; }

.data-list { list-style: none; }
.data-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--text2); display: flex; justify-content: space-between; }

.quantum-radar-container { position: relative; width: 100%; aspect-ratio: 1; }
.radar { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(16,185,129,.2); overflow: hidden; }
.crosshair-h, .crosshair-v { position: absolute; background: rgba(16,185,129,.1); }
.crosshair-h { top: 50%; left: 0; right: 0; height: 1px; }
.crosshair-v { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar-grid { position: absolute; inset: 25%; border-radius: 50%; border: 1px solid rgba(16,185,129,.1); }

/* ═══ CONTACT ═══ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.contact-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(8px); }
.contact-card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; color: #0f172a; margin-bottom: 16px; }
.contact-card h3 { font-size: 1.1rem; color: #ffffff; margin-bottom: 8px; }
.contact-card p { font-size: .9rem; color: var(--text2); margin-bottom: 12px; }
.email-link { color: var(--accent); font-weight: 600; }

.form-panel.card-glass { max-width: 600px; margin: 32px auto; }
.form-panel h2 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #0f172a; border: none; font-weight: 700; font-size: .95rem; cursor: pointer; transition: all 250ms ease; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16,185,129,.4); }

/* ═══ ABOUT PAGE ═══ */
.about-content { padding: 48px 0; }
.about-hero { text-align: center; padding: 60px 0; background: linear-gradient(135deg, #08090f 0%, #0f172a 100%); }
.about-hero h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: 16px; color: #ffffff; }
.about-hero p { font-size: 1.1rem; color: var(--text2); max-width: 650px; margin: 0 auto; }
.container--narrow { max-width: 800px; }

.mission-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 24px; margin: 32px 0; }
.mission-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all 300ms ease; }
.mission-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.mission-icon { width: 44px; height: 44px; background: rgba(16,185,129,.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 16px; }
.mission-card h3 { font-size: 1.05rem; color: #ffffff; margin-bottom: 8px; }
.mission-card p { font-size: .85rem; color: var(--text2); line-height: 1.7; }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 32px 0; }
.stat-box { text-align: center; padding: 24px; background: rgba(255,255,255,.04); border-radius: var(--radius); border: 1px solid var(--border); }
.stat-box-val { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-box-label { font-size: .85rem; color: var(--text2); font-weight: 600; margin-top: 4px; }

.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 32px; }
.mt-xl { margin-top: 48px; }

/* ═══ SITEMAP ═══ */
.sitemap-section { background: rgba(255,255,255,.03); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sitemap-section h2 { color: #ffffff; font-size: 1.2rem; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.sitemap-section ul { list-style: none; }
.sitemap-section li { margin-bottom: 8px; }
.sitemap-section a { color: var(--accent); font-size: .9rem; }

/* ═══ UTILITY ═══ */
.center { text-align: center; }
.text-center { text-align: center; }
.hidden { display: none; }
.visible { display: block; }

.privacy-badge p { color: var(--text2) !important; }
.privacy-badge strong { color: #e2e8f0 !important; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.reveal { animation: fadeIn 600ms ease-out; }
.reveal-delay-1 { animation-delay: 100ms; }
.reveal-delay-2 { animation-delay: 200ms; }
.reveal-delay-3 { animation-delay: 300ms; }
.reveal-delay-4 { animation-delay: 400ms; }

/* ═══ RESPONSIVE ═══ */
@media (max-width:1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .calc-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width:768px) {
  .container { padding: 0 20px; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: rgba(8,9,15,0.98);
    flex-direction: column; padding: 24px; gap: 4px; display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08); z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1rem; padding: 14px 16px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255,255,255,0.05); }
  .mobile-toggle { display: flex; }
  .section { padding: 48px 0; }
  .hero { min-height: auto; padding: 32px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .insights-grid, .tools-grid, .guides-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-container, .article-page, .legal-container, .legal-content { padding: 32px 20px; }
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .author-bio { flex-direction: column; text-align: center; }
  .share-section { flex-direction: column; align-items: flex-start; }
  .tool-grid { grid-template-columns: 1fr; }
  .result-cards { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .sentiment-card { padding: 24px 16px; }
  .gauge-viz { width: 200px; height: 100px; }
  .gauge-viz::before { border-radius: 200px 200px 0 0; }
  .gauge-viz::after { width: 130px; height: 65px; border-radius: 130px 130px 0 0; }
  .gauge-needle { height: 78px; }
  .metric-grid { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width:480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .stat-value { font-size: 2rem; }
  .btn-lg { padding: 14px 24px; }
}

/* ═══ END ═══ */
