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

:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --surface2: #1a2332;
  --border: #1e2d40;
  --text: #f0f4f8;
  --text2: #8899a8;
  --text3: #4a5e72;
  --amber: #f59e0b;
  --amber-dim: #d97706;
  --amber-glow: rgba(245,158,11,0.15);
  --positive: #10b981;
  --alert: #ef4444;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--amber);
  border-radius: 8px;
  display: inline-block;
  position: relative;
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--bg);
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* === HERO === */
.hero {
  position: relative;
  padding: 100px 32px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,45,64,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,45,64,0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-headline em {
  color: var(--amber);
  font-style: italic;
}
.hero-sub {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === DASHBOARD MOCKUP === */
.hero-dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  position: relative;
}
.dash-main { padding: 28px; }
.dash-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.dash-big-num {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.dash-trend {
  font-size: 13px;
  font-weight: 500;
}
.dash-trend.up { color: var(--positive); }
.dash-trend.down { color: var(--alert); }
.dash-chart {
  margin-top: 16px;
  height: 60px;
}
.dash-chart svg { width: 100%; height: 100%; }
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-num {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}
.dash-num.positive { color: var(--positive); }
.dash-mini-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 2px;
}
.dash-ai {
  border-color: var(--amber);
  background: rgba(245,158,11,0.06);
}
.dash-ai .dash-label { color: var(--amber); }
.ai-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--amber);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 100px;
}
.dash-ai-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-top: 4px;
}
.dash-accts { display: flex; align-items: center; gap: 16px; }
.dash-subtle { font-size: 12px; color: var(--text3); }
.acct-icons { display: flex; gap: 8px; }
.acct-chip {
  width: 36px;
  height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
}

/* === SHARED SECTION STYLES === */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 560px;
}

/* === ACCOUNTS SECTION === */
.accounts {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.accounts .section-inner { padding-top: 80px; }
.accounts .section-title { max-width: 540px; }
.account-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.acct-type {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.acct-type:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.acct-icon {
  width: 52px;
  height: 52px;
  background: var(--amber-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  margin-bottom: 20px;
}
.acct-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.acct-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding: 14px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text2);
}

/* === INTELLIGENCE SECTION === */
.intelligence { background: var(--bg); }
.intell-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}
.insight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.insight-dot {
  width: 10px;
  height: 10px;
  background: var(--amber);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.insight-dot.alert {
  background: var(--alert);
  box-shadow: 0 0 8px rgba(239,68,68,0.5);
}
.insight-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.insight-text strong { font-size: 15px; font-weight: 600; }
.insight-text span { font-size: 14px; color: var(--text2); line-height: 1.5; }

/* === ANOMALY & FORECAST CARDS === */
.intell-visual { display: flex; flex-direction: column; gap: 16px; }
.anomaly-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
}
.anomaly-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--alert), transparent);
  border-radius: 16px 16px 0 0;
}
.anomaly-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.anomaly-ai-pill {
  background: rgba(239,68,68,0.15);
  color: var(--alert);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(239,68,68,0.3);
}
.anomaly-time { font-size: 12px; color: var(--text3); }
.anomaly-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.anomaly-body p { font-size: 14px; color: var(--text2); margin-bottom: 16px; line-height: 1.6; }
.anomaly-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 80px;
  margin-bottom: 4px;
}
.anomaly-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}
.anomaly-bar span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text2);
}
.anomaly-bar.normal {
  background: var(--surface2);
  border: 1px solid var(--border);
}
.anomaly-bar.spike {
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.4);
  box-shadow: 0 0 12px rgba(239,68,68,0.15);
}
.anomaly-bar.spike span { color: var(--alert); font-size: 11px; }
.anomaly-months {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
  padding: 0 2px;
}
.anomaly-cta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
  cursor: pointer;
}
.forecast-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.forecast-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.forecast-balance { font-size: 28px; font-weight: 600; margin-bottom: 4px; }
.forecast-sub { font-size: 13px; color: var(--text2); margin-bottom: 16px; }
.forecast-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  position: relative;
  margin-bottom: 12px;
}
.forecast-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), #fbbf24);
  border-radius: 3px;
}
.forecast-note { font-size: 12px; color: var(--positive); }

/* === TAX-READY SECTION === */
.tax-ready { background: var(--surface); border-top: 1px solid var(--border); }
.tax-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tax-visual { position: relative; }
.tax-doc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.tax-doc-header {
  background: var(--surface2);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.tax-doc-title { font-size: 14px; font-weight: 600; }
.tax-doc-badge {
  background: rgba(16,185,129,0.15);
  color: var(--positive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(16,185,129,0.3);
}
.tax-doc-body { padding: 24px; }
.tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text2);
  border-bottom: 1px solid rgba(30,45,64,0.5);
}
.tax-row:last-child { border-bottom: none; }
.tax-row.highlight { color: var(--text); }
.tax-val { font-weight: 600; font-size: 15px; }
.tax-val.positive { color: var(--positive); }
.tax-divider { height: 1px; background: var(--border); margin: 12px 0; }
.tax-doc-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}
.tax-export-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}
.tax-export-btn:hover { border-color: var(--amber); color: var(--amber); }
.tax-tag {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tax-tag-inner {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.3;
  color: var(--bg);
  font-style: italic;
}
.tax-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.tax-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text2);
}
.tax-feat svg { flex-shrink: 0; margin-top: 1px; }

/* === CLOSING === */
.closing {
  background: var(--bg);
  text-align: center;
}
.closing-content { max-width: 640px; margin: 0 auto; }
.closing-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 40px;
}
.btn-large { padding: 16px 36px; font-size: 16px; }
.closing-fine {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text3);
}

/* === FOOTER === */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text2);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text2);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text3);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--amber);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--text2); color: var(--text); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner,
  .intell-layout,
  .tax-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-dashboard { order: -1; }
  .account-types { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 20px 60px; }
  .section-inner { padding: 60px 20px; }
  .account-types { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .closing-fine { display: none; }
  .dash-row { grid-template-columns: 1fr; }
}