/* FinHelm.ai Design System — v3.0 February 2026 */
/* Anatomia Finanziaria: Structured density that feels calm */

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

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-data: 'JetBrains Mono', monospace;
  --dark-base: #0F172A;
  --dark-deep: #0B1120;
  --dark-elevated: #1E293B;
  --dark-surface: #263347;
  --dark-border: rgba(255,255,255,0.08);
  --dark-border-hover: rgba(255,255,255,0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #E8ECF1;
  --text-tertiary: #CBD5E1;
  --text-accent: #00CFC9;
  --finhelm-navy: #1A2B4C;
  --finhelm-teal: #00A39E;
  --finhelm-teal-bright: #00CFC9;
  --finhelm-teal-glow: rgba(0,207,201,0.15);
  --confidence-green: #2ECC71;
  --caution-amber: #F39C12;
  --risk-coral: #E74C3C;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--dark-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Typography */
h1,h2,h3,h4 { font-family: var(--font-display); }
.data, .metric { font-family: var(--font-data); }

/* Wordmark */
.wordmark { font-family: var(--font-display); }
.wordmark-light { font-weight: 300; }
.wordmark-bold { font-weight: 700; }

/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px;
  background: rgba(11,17,32,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  transition: background 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo .wordmark { font-size: 26px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--text-secondary); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-accent); }
.nav-cta {
  background: var(--finhelm-teal); color: #fff; border: none;
  padding: 12px 28px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,163,158,0.3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,163,158,0.4); }
.mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 48px 80px;
  background: linear-gradient(145deg, #0B1120 0%, #0F172A 30%, #131C2E 60%, #0B1120 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,207,201,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -15%; left: -5%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,163,158,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,163,158,0.1); padding: 10px 20px; border-radius: 100px;
  margin-bottom: 28px; border: 1px solid rgba(0,207,201,0.15);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--finhelm-teal-bright); }
.hero-eyebrow span {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--finhelm-teal-bright); letter-spacing: 0.06em; text-transform: uppercase;
}
.hero h1 {
  font-size: 60px; font-weight: 700; line-height: 1.08; margin-bottom: 28px;
}
.hero h1 .accent { color: var(--finhelm-teal-bright); }
.hero h1 .muted { color: var(--text-tertiary); }
.hero-sub {
  font-size: 20px; line-height: 1.65; color: var(--text-secondary);
  max-width: 520px; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ═══ BUTTONS ═══ */
.btn-primary {
  background: var(--finhelm-teal); color: #fff; border: none;
  padding: 18px 36px; border-radius: var(--radius-lg);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(0,163,158,0.35);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,163,158,0.45); }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 2px solid rgba(255,255,255,0.15);
  padding: 16px 32px; border-radius: var(--radius-lg);
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  cursor: pointer; transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--finhelm-teal-bright); color: var(--finhelm-teal-bright); }
.btn-ghost {
  background: transparent; color: var(--finhelm-teal-bright); border: none;
  padding: 12px 0; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}

/* ═══ DASHBOARD PREVIEW ═══ */
.dashboard-preview {
  background: rgba(30,41,59,0.5);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--dark-border);
}
.dash-tabs { display: flex; gap: 24px; }
.dash-tabs span {
  font-size: 14px; font-weight: 500; color: var(--text-tertiary); cursor: pointer;
  padding-bottom: 4px;
}
.dash-tabs span.active {
  color: var(--finhelm-teal-bright);
  border-bottom: 2px solid var(--finhelm-teal-bright);
}
.status-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--confidence-green);
}
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--confidence-green); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.metric-card {
  background: rgba(30,41,59,0.4); border: 1px solid var(--dark-border);
  border-top: 3px solid var(--finhelm-teal-bright);
  border-radius: var(--radius-lg); padding: 20px;
}
.metric-card .label {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 8px;
}
.metric-card .value {
  font-family: var(--font-data); font-size: 28px; font-weight: 700;
  color: var(--text-primary); line-height: 1.1;
}
.metric-card .change {
  font-family: var(--font-data); font-size: 13px; font-weight: 500;
  margin-top: 6px;
}
.metric-card .change.positive { color: var(--confidence-green); }
.metric-card .change.negative { color: var(--risk-coral); }
.metric-card .change.accent { color: var(--finhelm-teal-bright); }

/* ═══ SECTIONS ═══ */
section { padding: 100px 48px; }
.section-dark { background: linear-gradient(145deg, #0B1120 0%, #0F172A 50%, #131C2E 100%); }
.section-elevated { background: var(--dark-elevated); }
.section-navy { background: var(--finhelm-navy); }
.container { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,163,158,0.1); padding: 8px 18px; border-radius: 100px;
  margin-bottom: 20px; border: 1px solid rgba(0,207,201,0.12);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--finhelm-teal-bright); letter-spacing: 0.06em; text-transform: uppercase;
}
.section-title {
  font-size: 44px; font-weight: 700; line-height: 1.12; margin-bottom: 20px;
}
.section-subtitle {
  font-size: 20px; color: var(--text-secondary); max-width: 640px; line-height: 1.6;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ═══ STATS STRIP ═══ */
.stats-strip {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 40px;
  padding: 60px 0; border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border); margin-top: 80px;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-data); font-size: 40px; font-weight: 700;
  color: var(--finhelm-teal-bright); margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-body); font-size: 15px;
  color: var(--text-secondary); line-height: 1.4;
}

/* ═══ PRODUCT GRID ═══ */
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 60px; }
.product-card {
  background: rgba(30,41,59,0.4); border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl); padding: 36px; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.product-card:hover {
  border-color: rgba(0,207,201,0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.product-card .icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 28px;
}
.product-card h3 {
  font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary);
}
.product-card .tagline {
  font-family: var(--font-data); font-size: 14px; font-weight: 500;
  color: var(--finhelm-teal-bright); margin-bottom: 16px;
}
.product-card p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.6;
}
.product-card .accent-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}

/* ═══ CATEGORY INDICTMENT ═══ */
.indictment {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px;
}
.indictment-col { padding: 40px; border-radius: var(--radius-xl); }
.indictment-old {
  background: rgba(231,76,60,0.06); border: 1px solid rgba(231,76,60,0.15);
}
.indictment-new {
  background: rgba(0,163,158,0.06); border: 1px solid rgba(0,207,201,0.2);
}
.indictment-col h3 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.indictment-old h3 { color: var(--risk-coral); }
.indictment-new h3 { color: var(--finhelm-teal-bright); }
.indictment-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 16px; color: var(--text-secondary);
}
.indictment-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

/* ═══ FOUNDER SECTION ═══ */
.founder-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 60px; }
.founder-card {
  background: rgba(30,41,59,0.4); border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl); padding: 36px; text-align: center;
}
.founder-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--finhelm-teal), var(--finhelm-navy));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-family: var(--font-display);
  font-size: 28px; font-weight: 700; color: #fff;
}
.founder-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.founder-card .role {
  font-size: 14px; color: var(--finhelm-teal-bright); margin-bottom: 16px;
  font-weight: 500;
}
.founder-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ═══ PRICING ═══ */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 60px; }
.pricing-card {
  background: rgba(30,41,59,0.4); border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl); padding: 40px;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: rgba(0,207,201,0.3);
  background: rgba(0,163,158,0.06);
  position: relative;
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--finhelm-teal-bright); color: var(--dark-base);
  padding: 6px 20px; border-radius: 100px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.pricing-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.pricing-card .subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }
.pricing-price {
  font-family: var(--font-data); font-size: 48px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 4px;
}
.pricing-period { font-size: 15px; color: var(--text-tertiary); margin-bottom: 32px; }
.pricing-features { list-style: none; flex: 1; margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; font-size: 15px; color: var(--text-secondary);
}
.pricing-features li .check { color: var(--confidence-green); font-size: 16px; flex-shrink: 0; }
.pricing-card .btn-primary, .pricing-card .btn-secondary { width: 100%; text-align: center; justify-content: center; }

/* ═══ FORM ═══ */
.form-section {
  background: rgba(30,41,59,0.4); border: 1px solid var(--dark-border);
  border-radius: var(--radius-2xl); padding: 60px; margin-top: 60px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 0; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 16px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--dark-border);
  background: rgba(15,23,42,0.6); color: var(--text-primary);
  font-family: var(--font-body); font-size: 16px;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--finhelm-teal-bright);
  box-shadow: 0 0 0 3px var(--finhelm-teal-glow);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-tertiary); }
.form-group select option { background: var(--dark-base); color: var(--text-primary); }
.form-submit { margin-top: 24px; }

/* ═══ FOOTER ═══ */
.footer {
  padding: 80px 48px 40px;
  background: var(--dark-deep);
  border-top: 1px solid var(--dark-border);
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
}
.footer-brand .wordmark { font-size: 28px; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; color: var(--text-secondary); max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 15px; color: var(--text-secondary);
  padding: 6px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--finhelm-teal-bright); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--dark-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-tertiary);
}

/* ═══ ABOUT PAGE ═══ */
.page-hero {
  padding: 160px 48px 80px;
  background: linear-gradient(145deg, #0B1120 0%, #0F172A 40%, #131C2E 100%);
  text-align: center;
}
.page-hero h1 { font-size: 52px; font-weight: 700; margin-bottom: 20px; }
.page-hero p { font-size: 20px; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }

.timeline { max-width: 700px; margin: 60px auto 0; }
.timeline-item {
  display: flex; gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--dark-border);
}
.timeline-date {
  font-family: var(--font-data); font-size: 14px; font-weight: 600;
  color: var(--finhelm-teal-bright); min-width: 100px;
}
.timeline-text { font-size: 16px; color: var(--text-secondary); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 44px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: repeat(2,1fr); }
  .indictment { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .founder-grid { grid-template-columns: repeat(2,1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding: 100px 24px 60px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 18px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; justify-content: center; }
  .section-title { font-size: 32px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .stat-value { font-size: 32px; }
  .product-grid, .pricing-grid, .founder-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-section { padding: 32px 24px; }
  .page-hero { padding: 120px 24px 60px; }
  .page-hero h1 { font-size: 36px; }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--finhelm-teal-glow); }
  50% { box-shadow: 0 0 40px rgba(0,207,201,0.25); }
}
.animate-in { animation: fadeInUp 0.7s ease-out forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
