/* =============================================================
   TigerCFO.ai — Controller Layer for AI-Powered Accounting
   styles.css
   ============================================================= */

:root {
  --bg: #080d0b;
  --bg2: #0e1613;
  --bg3: #131e19;
  --bg4: #1a2b24;
  --acc: #0F6E56;
  --acc2: #1a9b78;
  --acc3: #26d4a0;
  --acc4: #6eecc5;
  --text: #e2ede8;
  --muted: #7a9e8e;
  --faint: #3d5a4e;
  --border: #1a3a2e;
  --gold: #f0c040;
  --gold2: #d4a520;
  --blue: #4a90d9;
  --blue2: #6bb3f0;
  --purple: #9b6ed4;
  --purple2: #b994e8;
  --red: #e05555;
  --HH: 'Syne', sans-serif;
  --MM: 'DM Sans', sans-serif;
  --CC: 'JetBrains Mono', monospace;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--MM);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}
::selection { background: var(--acc); color: #fff; }
:focus-visible {
  outline: 2px solid var(--acc3);
  outline-offset: 3px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(8, 13, 11, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-image {
  display: block;
  width: 220px;
  height: auto;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--MM); font-size: 13px;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--acc3); }
.nav-cta {
  background: var(--acc);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--acc2) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--MM);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover {
  background: var(--acc2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 110, 86, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--acc3);
  border: 1px solid var(--faint);
}
.btn-secondary:hover {
  border-color: var(--acc);
  background: rgba(15, 110, 86, 0.1);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--acc3); border-color: var(--faint); }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 140px 48px 80px;
  overflow: hidden;
  min-height: 90vh;
  display: flex; align-items: center;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.hero-glow {
  position: absolute; top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(15, 110, 86, 0.2), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: var(--CC);
  font-size: 11px;
  color: var(--acc3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc3);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
h1 {
  font-family: var(--HH);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 auto 26px;
  max-width: 1000px;
}
.hero-statement,
.hero-promise {
  display: block;
}
.hero-statement {
  color: #f3f8f5;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-promise {
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.08;
}
.brand { color: var(--acc3); }
.brand-ai { color: var(--acc); font-weight: 600; }
.hero-sub {
  font-size: clamp(16px, 1.45vw, 18px);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.7;
}
.hero-tag {
  font-family: var(--CC);
  font-size: 12px;
  color: var(--acc3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.hero-buttons {
  display: flex; gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── PROOF / TRUST BAR ── */
.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof-cell {
  background: var(--bg2);
  padding: 28px 24px;
  text-align: center;
}
.proof-val {
  font-family: var(--HH);
  font-size: 22px; font-weight: 700;
  color: var(--acc3);
  margin-bottom: 4px;
}
.proof-label {
  font-family: var(--CC);
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── SECTION DEFAULTS ── */
section { padding: 100px 48px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--CC);
  font-size: 10px;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
h2 {
  font-family: var(--HH);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
h3 {
  font-family: var(--HH);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.section-centered { text-align: center; }
.section-centered .section-sub { margin-left: auto; margin-right: auto; }

/* ── PROBLEM / SOLUTION CONTRAST ── */
.contrast {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.contrast-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
}
.contrast-col.bad { border-color: rgba(224, 85, 85, 0.3); }
.contrast-col.good { border-color: var(--faint); }
.contrast-col h3 { font-size: 18px; margin-bottom: 18px; }
.contrast-col.bad h3 { color: var(--red); }
.contrast-col.good h3 { color: var(--acc3); }
.contrast-col ul { list-style: none; }
.contrast-col li {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid rgba(26, 58, 46, 0.4);
  line-height: 1.6;
}
.contrast-col li:last-child { border-bottom: none; }
.contrast-col.bad li::before {
  content: '✕';
  position: absolute; left: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.contrast-col.good li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--acc3);
  font-size: 13px;
  font-weight: 700;
}

/* ── CHECKS GRID ("What TigerCFO Checks") ── */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.check-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.check-card:hover {
  border-color: var(--faint);
  transform: translateY(-3px);
}
.check-tag {
  font-family: var(--CC);
  font-size: 10px;
  color: var(--acc);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.check-card h3 { font-size: 17px; margin-bottom: 8px; }
.check-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── OFFERS / PRICING LADDER ── */
.offers {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.offer-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.offer-card:hover {
  border-color: var(--faint);
  transform: translateY(-3px);
}
.offer-card.featured {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px var(--acc), 0 12px 40px rgba(15, 110, 86, 0.25);
}
.offer-card.featured::before {
  content: 'Start here';
  position: absolute;
  top: -10px; left: 24px;
  background: var(--acc);
  color: #fff;
  font-family: var(--CC);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}
.offer-tier {
  font-family: var(--CC);
  font-size: 10px;
  color: var(--acc);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.offer-card h3 { font-size: 19px; margin-bottom: 8px; }
.offer-price {
  font-family: var(--HH);
  font-size: 28px;
  font-weight: 700;
  color: var(--acc3);
  margin: 12px 0 4px;
}
.offer-price-note {
  font-family: var(--CC);
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 16px;
}
.offer-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ── INTAKE FORM ── */
.intake {
  background: var(--bg);
}
.intake-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.intake-direct {
  align-self: stretch;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(145deg, rgba(15, 110, 86, 0.12), var(--bg2) 58%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}
.intake-direct h3 {
  font-family: var(--HH);
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 10px 0 14px;
}
.intake-direct > p:not(.form-fine) {
  color: var(--muted);
  line-height: 1.75;
}
.intake-assurances {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
  padding: 0;
}
.intake-assurances li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.intake-assurances li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--acc3);
  font-weight: 700;
}
.intake-direct-cta { width: 100%; justify-content: center; }
.intake-direct .form-fine { margin-top: 16px; text-align: center; }
.intake-direct .form-fine a { color: var(--acc3); }
.intake-copy h2 { margin-bottom: 18px; }
.intake-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.intake-copy ul { list-style: none; margin-top: 12px; }
.intake-copy li {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0 8px 22px;
  position: relative;
}
.intake-copy li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--acc3);
}
form.intake-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--CC);
  font-size: 10px;
  color: var(--acc3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--MM);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--acc); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-help {
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
}
.form-error {
  background: rgba(224, 85, 85, 0.08);
  border: 1px solid rgba(224, 85, 85, 0.3);
  color: #f0a0a0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.form-error.visible { display: block; }
.form-success {
  background: rgba(38, 212, 160, 0.08);
  border: 1px solid rgba(38, 212, 160, 0.35);
  color: var(--acc4);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.form-success.visible { display: block; }
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.form-fine {
  font-size: 11px;
  color: var(--faint);
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid; gap: 12px;
}
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 26px;
}
.faq-item h3 {
  font-family: var(--HH);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.faq-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-section h2 { max-width: 720px; margin: 0 auto 14px; }
.cta-section .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 32px; }

/* ── FOOTER ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .footer-brand {
  font-family: var(--HH);
  font-weight: 700;
  font-size: 16px;
  color: var(--acc3);
}
footer .footer-brand .dot-ai { color: var(--acc); }
footer .footer-meta {
  font-family: var(--CC);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.05em;
}
footer .footer-links { display: flex; gap: 20px; }
footer .footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
footer .footer-links a:hover { color: var(--acc3); }
.footer-legal {
  width: 100%;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.legal-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 140px 0 80px;
}
.legal-page > h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 10px 0 8px;
}
.legal-updated {
  color: var(--muted);
  margin-bottom: 44px;
}
.legal-section {
  padding: 0;
  margin: 0 0 34px;
}
.legal-section h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.legal-section p,
.legal-disclaimer {
  color: var(--muted);
  line-height: 1.8;
}
.legal-section a { color: var(--acc3); }
.legal-disclaimer {
  margin-top: 48px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg2);
  font-size: 13px;
}

/* ── THANK YOU PAGE ── */
.thanks-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}
.thanks-card {
  max-width: 720px;
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 48px 40px;
}
.thanks-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(38, 212, 160, 0.12);
  border: 1px solid rgba(38, 212, 160, 0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--acc3);
  font-size: 26px; font-weight: 700;
  margin-bottom: 24px;
}
.thanks-card h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 12px;
  text-align: left;
}
.thanks-card .lede {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
}
.thanks-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.thanks-step:last-of-type { border-bottom: 1px solid var(--border); }
.thanks-step .num {
  font-family: var(--CC);
  font-size: 12px;
  color: var(--acc3);
  background: rgba(38, 212, 160, 0.08);
  border-radius: 6px;
  height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.thanks-step h3 {
  font-family: var(--HH);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.thanks-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.thanks-step a {
  color: var(--acc3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.thanks-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.thanks-note {
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(240, 192, 64, 0.06);
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: #e8d188;
  line-height: 1.7;
}
.thanks-note strong { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 880px) {
  nav { padding: 0 20px; }
  .nav-logo-image { width: 165px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 120px 20px 60px; min-height: auto; }
  .hero-inner { max-width: 720px; }
  .hero-statement { font-size: clamp(30px, 7vw, 42px); }
  .hero-promise { font-size: clamp(34px, 8vw, 48px); }
  .hero-sub { line-height: 1.6; }
  section { padding: 70px 20px; }
  footer { padding: 32px 20px; }
  .proof-bar { grid-template-columns: repeat(2, 1fr); }
  .contrast-grid { grid-template-columns: 1fr; }
  .intake-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .thanks-card { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
