:root {
  --bg: #f8fafc;
  --surface: #f1f5f9;
  --surface-deep: #e2e8f0;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --ink-ghost: #94a3b8;
  --accent: #0284c7;
  --accent-50: #f0f9ff;
  --accent-light: rgba(2, 132, 199, 0.08);
  --accent-med: rgba(2, 132, 199, 0.16);
  --profit: #059669;
  --loss: #dc2626;
  --warn: #d97706;
  --info: #0284c7;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::-webkit-scrollbar {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--ease) both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s var(--ease) both;
}

.nav-link-active {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f3f4f6;
  padding: 16px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mobile-menu.open {
  display: block;
  animation: fadeIn 0.3s var(--ease) both;
}

.hero-dark {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 58%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-dark::before,
.hero-dark::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.hero-dark::before {
  width: 42rem;
  height: 42rem;
  top: -16rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.95) 0%, transparent 70%);
}

.hero-dark::after {
  width: 34rem;
  height: 34rem;
  left: -8rem;
  bottom: -12rem;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.7) 0%, transparent 72%);
}

.tax-counter {
  font-family: var(--mono);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tax-counter-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.bento-card {
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.bento-card:hover {
  transform: translateY(-3px);
}

.bento-card-dark {
  --tw-bg-opacity: 1;
  background: rgb(12 74 110 / var(--tw-bg-opacity));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  box-shadow: 0 16px 40px rgba(12, 74, 110, 0.22);
}

.bento-card-light {
  background: white;
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.dark {
  --tw-bg-opacity: 1;
  background: rgb(12 74 110 / var(--tw-bg-opacity));
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.evidence-strip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.evidence-number {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.step-line {
  position: relative;
  padding-left: 48px;
}

.step-line::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.step-item {
  position: relative;
  padding-bottom: 40px;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-dot {
  position: absolute;
  left: -48px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.pricing-card-popular {
  position: relative;
  border: 2px solid var(--accent);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
}

.pricing-card-popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 16px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.dna-teaser-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 58%, #ffffff 100%);
  border: 1px solid #dbeafe;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.dna-teaser-card::before {
  content: '';
  position: absolute;
  top: -10rem;
  right: -6rem;
  width: 28rem;
  height: 28rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.95) 0%, transparent 70%);
}

.dna-teaser-card::after {
  content: '';
  position: absolute;
  left: -7rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.82) 0%, transparent 72%);
}

.demo-back-bar {
  background: var(--ink);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.demo-back-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.demo-back-link:hover {
  color: white;
}

.switcher {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 24px;
}

.sw-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  margin-right: 16px;
  letter-spacing: 0.1em;
}

.sw-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 8px 24px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  transition: all 0.25s;
}

.sw-btn.active {
  background: var(--accent);
  color: white;
}

.sw-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.76);
}

.profile {
  display: none;
  padding-top: 128px;
}

.profile.active {
  display: block;
  animation: fadeIn 0.4s var(--ease) both;
}

.demo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 94px;
  z-index: 99;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-logo-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
}

.nav-links a.on {
  color: var(--accent);
  font-weight: 600;
}

.nav-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--ink-2);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

.demo-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero-eye {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-h {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  max-width: 680px;
}

.hero-h em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  gap: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hm-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hm-lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

.hm-val {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.pt-banner {
  background: var(--ink);
  border-radius: 16px;
  padding: 36px 40px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.pt-eye,
.dna-b-left .dna-b-eye,
.sec-eye,
.narr-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pt-eye,
.narr-tag {
  margin-bottom: 8px;
}

.pt-num {
  font-family: var(--mono);
  font-size: clamp(34px, 4.5vw, 42px);
  font-weight: 600;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.pt-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.pt-rule {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pt-rule-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.pt-rule-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.pt-rule-cost {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.pt-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.pt-locked {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
  text-align: right;
  width: 100%;
}

.pt-locked-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.pt-locked-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.24);
  letter-spacing: 0.1em;
}

.unlock-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.dna-banner {
  background: linear-gradient(135deg, var(--surface) 0%, white 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.dna-b-left .dna-b-h,
.sec-h,
.ins-headline {
  font-family: var(--serif);
  color: var(--ink);
}

.dna-b-left .dna-b-h {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 6px;
}

.dna-b-left .dna-b-sub,
.sec-sub,
.ins-body {
  color: var(--ink-2);
}

.section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

.sec-h {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.sec-sub {
  font-size: 13px;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
}

.dna-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.radar-card,
.dims-card,
.chart-card,
.stat-box,
.ins-card {
  background: white;
  border: 1px solid var(--border);
}

.radar-card,
.dims-card,
.chart-card {
  border-radius: 14px;
  padding: 24px;
}

.radar-card svg,
.chart-card svg {
  width: 100%;
  display: block;
}

.dim-row2 {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.dim-row2:last-child {
  border-bottom: none;
}

.dim-lbl2 {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.dim-poles {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}

.dim-pole,
.stat-lbl,
.ins-type,
.chart-sub,
.chart-title,
.leg-item,
.chip,
.fbi-h-sub,
.fbi-ctx,
.pt-rule-cost,
.pt-num,
.dim-num {
  font-family: var(--mono);
}

.dim-pole {
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

.dim-track {
  height: 6px;
  background: var(--surface-deep);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2px;
}

.dim-fill {
  height: 100%;
  border-radius: 3px;
}

.dim-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.chart-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.chart-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-2);
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.ins-card {
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.ins-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.ins-card.cost::before { background: var(--loss); }
.ins-card.strength::before { background: var(--profit); }
.ins-card.tax::before { background: var(--warn); }
.ins-card.traj::before { background: var(--info); }
.ins-card.struct::before { background: #7c3aed; }
.ins-card.cost .ins-type { color: var(--loss); }
.ins-card.strength .ins-type { color: var(--profit); }
.ins-card.tax .ins-type { color: var(--warn); }
.ins-card.traj .ins-type { color: var(--info); }
.ins-card.struct .ins-type { color: #7c3aed; }

.ins-type {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ins-headline {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 10px;
}

.ins-body {
  font-size: 12px;
  line-height: 1.6;
}

.ins-chips {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.chip {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--border);
}

.chip.red {
  background: #fef2f2;
  color: var(--loss);
  border-color: #fecaca;
}

.chip.green {
  background: #ecfdf5;
  color: var(--profit);
  border-color: #a7f3d0;
}

.chart-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat-box {
  border-radius: 12px;
  padding: 20px 22px;
}

.stat-lbl {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  margin-bottom: 6px;
}

.stat-val {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-ctx {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
}

.narr {
  background: var(--ink);
  border-radius: 14px;
  padding: 32px 36px;
  margin: 28px 0;
}

.narr-text {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.narr-text strong {
  color: white;
  font-style: normal;
  font-weight: 500;
}

.fbi-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 340px;
}

.fbi-collapsed {
  background: var(--ink);
  color: white;
  border-radius: 9999px;
  padding: 12px 20px 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
}

.fbi-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.fbi-coll-text {
  font-size: 13px;
  font-weight: 500;
}

.fbi-coll-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.fbi-open {
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.18);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
}

.fbi-header {
  background: var(--ink);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fbi-h-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fbi-h-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.fbi-h-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.fbi-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 18px;
}

.fbi-msgs {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.fbi-msg {
  max-width: 90%;
}

.fbi-msg.ai .fbi-bubble {
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px 14px 14px 14px;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
}

.fbi-msg.user {
  align-self: flex-end;
}

.fbi-msg.user .fbi-bubble {
  background: var(--ink);
  color: white;
  border-radius: 14px 4px 14px 14px;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
}

.fbi-ctx {
  font-size: 9px;
  color: var(--ink-ghost);
  padding: 0 16px 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fbi-ctx span {
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 4px;
}

.fbi-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.fbi-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
}

.fbi-input:focus {
  border-color: var(--accent);
}

.fbi-send {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .bento-grid,
  .chart-2col,
  .insight-grid,
  .dna-grid,
  .pt-banner,
  .dna-banner {
    grid-template-columns: 1fr;
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .switcher {
    flex-wrap: wrap;
    padding: 8px 12px;
  }

  .sw-btn {
    font-size: 10px;
    padding: 6px 14px;
  }

  .demo-nav {
    padding: 12px 20px;
  }

  .wrap {
    padding: 0 20px 80px;
  }
}

