/* ===== InfraVolt design system ===== */
:root {
  --navy: #0b1f16;         /* deep green-black — dark surfaces */
  --navy-2: #12291d;
  --brand-ink: #0b1f16;
  --electric: #0fa65a;     /* primary green — accents on light backgrounds */
  --electric-2: #45d08a;   /* lighter green — accents on dark backgrounds */
  --volt: #0fa65a;
  --paper: #f2f1ed;        /* warm paper white — reversed type on dark */
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e6e9e4;
  --bg: #ffffff;
  --bg-alt: #f2f1ed;       /* warm paper for alt sections */
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px -20px rgba(15, 23, 42, 0.25);
  --shadow-sm: 0 8px 24px -14px rgba(15, 23, 42, 0.35);
  --maxw: 1120px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--electric); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--electric); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #0c8f4d; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--electric); color: var(--electric); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e3f4ea; }
.full-width { width: 100%; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric);
  background: rgba(15, 166, 90, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--electric), var(--electric-2));
  color: #fff; font-size: 1rem;
}
.brand-logo { display: block; height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--slate); font-weight: 500; }
.site-nav a:hover { color: var(--navy); text-decoration: none; }
.site-nav a.active { color: var(--navy); font-weight: 600; }
.nav-cta { background: var(--electric); color: #fff !important; padding: 0.5rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: #0c8f4d; text-decoration: none; }
.nav-cta.active { color: #fff !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ===== Aurora animated background ===== */
.aurora-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* CSS fallback shown if WebGL is unavailable / while the canvas mounts. */
  background:
    radial-gradient(1200px 520px at 50% 128%, rgba(69, 208, 138, 0.28), transparent 62%),
    radial-gradient(760px 420px at 12% 116%, rgba(15, 166, 90, 0.22), transparent 60%);
}
.aurora-bg canvas { display: block; width: 100%; height: 100%; }

/* ===== Hero (dark, aurora) ===== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: var(--paper); }
.hero .eyebrow { color: var(--electric-2); background: rgba(69, 208, 138, 0.14); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-copy h1 { margin-bottom: 0.6rem; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 40ch; }
.hero .lede { color: rgba(242, 241, 237, 0.82); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 1.4rem; }
.hero .btn-ghost { color: var(--paper); border-color: rgba(242, 241, 237, 0.32); }
.hero .btn-ghost:hover { color: var(--electric-2); border-color: var(--electric-2); }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 0; margin: 0; color: rgba(242, 241, 237, 0.75); font-size: 0.92rem; font-weight: 500; }

/* Hero chat card */
.hero-card { display: grid; place-items: center; }
.chat-window {
  width: 100%; max-width: 380px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(-1deg);
}
.chat-head { display: flex; align-items: center; gap: 6px; background: var(--navy); color: #cfe6da; font-size: 0.82rem; font-weight: 600; padding: 0.7rem 1rem; }
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #2f5a45; }
.chat-head .dot:first-child { background: #ff5f57; }
.chat-head .dot:nth-child(2) { background: #febc2e; }
.chat-head .dot:nth-child(3) { background: #28c840; margin-right: 6px; }
.chat-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; background: var(--bg-alt); }
.bubble { max-width: 82%; padding: 0.6rem 0.9rem; border-radius: 14px; font-size: 0.9rem; color: var(--ink); }
.bubble.in { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--electric); color: #fff; border-bottom-right-radius: 4px; }
.chat-foot { padding: 0.6rem 1rem; font-size: 0.78rem; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }

/* ===== Stats strip ===== */
.stats-strip { background: var(--navy); color: #fff; padding: 2.4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat-value { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--electric-2); }
.stat-label { display: block; font-size: 0.86rem; color: #c2d4c9; margin-top: 0.3rem; }
.section-alt .stats-grid .stat-value { color: var(--electric); }
.section-alt .stat-label { color: var(--muted); }

/* ===== Sections ===== */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 2.6rem; text-align: center; }
.section-sub { color: var(--slate); font-size: 1.05rem; }

/* ===== Cards ===== */
.card-grid { display: grid; gap: 1.4rem; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--slate); font-size: 0.95rem; margin: 0; }
.card-icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(15, 166, 90, 0.1); font-size: 1.4rem; margin-bottom: 0.9rem;
}
.center { margin-top: 2.2rem; }

/* ===== Pricing ===== */
.pricing-preview .price-card, .pricing-full .price-card { display: flex; flex-direction: column; }
.price-card { position: relative; }
.price-card.featured { border-color: var(--electric); box-shadow: 0 22px 55px -22px rgba(15, 166, 90, 0.55); }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--electric); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 999px;
}
.price { margin: 0.4rem 0 0.2rem; }
.price .amount { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--navy); }
.price .per { color: var(--muted); font-weight: 500; }
.price-audience { color: var(--muted); font-size: 0.9rem; min-height: 2.6em; }
.price-features { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.price-features li { position: relative; padding-left: 1.5rem; color: var(--slate); font-size: 0.93rem; }
.price-features li::before { content: '⚡'; position: absolute; left: 0; color: var(--electric); }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.86rem; margin-top: 1.6rem; }

/* Example box */
.example-box { max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.example-box p:first-child { font-size: 1.2rem; }
.calc { font-family: var(--display); font-weight: 700; color: var(--navy); }
.calc.total { color: var(--electric); font-size: 1.4rem; }
.example-compare { color: var(--muted); margin: 0; }

/* Compare table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
.compare-table th, .compare-table td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.compare-table thead th { background: var(--bg-alt); font-family: var(--display); color: var(--navy); font-size: 0.86rem; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .self-row { background: rgba(15, 166, 90, 0.06); }
.compare-table .self-row td { font-weight: 600; }

/* ===== Two-column / about ===== */
.two-col { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 2.4rem; align-items: start; }
.two-col p { color: var(--slate); }
.fact-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.fact-card h3 { color: #fff; }
.fact-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.fact-card li { color: #cdd9f0; font-size: 0.94rem; }
.fact-card strong { color: #fff; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: 1.4rem; padding: 1.2rem 0; border-left: 2px solid var(--line); padding-left: 1.6rem; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -8px; top: 1.5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--electric); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--electric); }
.timeline-when { font-family: var(--display); font-weight: 700; color: var(--electric); }
.timeline-body h3 { margin-bottom: 0.2rem; }
.timeline-body p { color: var(--slate); margin: 0; }

/* Persona cards */
.persona-card .persona-profile { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.persona-card .persona-pain { color: var(--slate); font-size: 0.92rem; }
.persona-card .persona-win { color: var(--navy); font-size: 0.92rem; }

/* ===== Page hero (dark, aurora) ===== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.4rem, 4vw, 3.2rem);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--paper); }
.page-hero .eyebrow { color: var(--electric-2); background: rgba(69, 208, 138, 0.14); }
.page-hero .lede { max-width: 56ch; color: rgba(242, 241, 237, 0.82); }
.error-hero { padding: 5rem 0; }
.error-hero .btn { margin-top: 1rem; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--electric)); color: #fff; }
.cta-inner { text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #d9efe1; max-width: 46ch; margin: 0 auto 1.6rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2.4rem; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--navy); }
.field input, .field textarea {
  font-family: inherit; font-size: 0.98rem; padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 3px rgba(15, 166, 90, 0.12); }
.contact-aside { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.contact-aside hr { border: none; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.tick-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.tick-list li { position: relative; padding-left: 1.6rem; color: var(--slate); font-size: 0.94rem; }
.tick-list li::before { content: '✓'; position: absolute; left: 0; color: var(--electric); font-weight: 700; }
.alert-success { background: #fff; border: 1px solid var(--line); border-left: 4px solid #22c55e; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.alert-success h2 { color: var(--navy); }
.alert-success .btn { margin-top: 0.5rem; }

/* ===== Footer ===== */
.site-footer { background: var(--brand-ink); color: #c2d4c9; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-logo-link { display: inline-block; margin-bottom: 0.9rem; }
.footer-logo { display: block; width: auto; height: 42px; max-width: 230px; }
.footer-brand .brand { color: #fff; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; }
.footer-meta { color: #94ab9d; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col a { display: block; color: #c2d4c9; font-size: 0.94rem; margin-bottom: 0.5rem; }
.footer-col a:hover { color: #fff; }
.footer-tag { display: block; font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid #1c3327; margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-bottom p { font-size: 0.84rem; margin: 0; color: #94ab9d; }
.footer-note { color: #7b9184; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1rem; box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 340px; }
  .site-nav a { padding: 0.7rem 0; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.3rem; }
}
@media (max-width: 520px) {
  .card-grid.four, .card-grid.three, .stats-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
