:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft-surface: #f6f9fc;
  --ink: #101828;
  --muted: #526173;
  --soft: #7b8798;
  --line: #dce3ec;
  --line-strong: #b8c4d2;
  --accent: #1f8a70;
  --accent-hover: #176d59;
  --accent-soft: #ecf8f4;
  --cyan: #177ddc;
  --amber: #b7791f;
  --red: #c2413a;
  --radius: 8px;
  --max: 1220px;
  --shadow: 0 16px 44px rgba(16,24,40,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], h1[id], h2[id], h3[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
a, button, input, select, textarea, summary { transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 12px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.nav { max-width: var(--max); margin: 0 auto; height: 72px; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 760; flex: 0 0 auto; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #bde5d8; border-radius: 7px; background: #e9f7f2; color: var(--accent); font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #506070; font-size: 13px; }
.nav-links > a:not(.button) { min-height: 36px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.nav-links > a:not(.button):hover { background: #f1f5f9; color: var(--ink); }
.nav-product, .nav-links a[aria-current="page"]:not(.button) { color: var(--ink); }
.nav-links a[aria-current="page"]:not(.button) { border-bottom: 1px solid var(--accent); border-radius: 0; }
.mobile-menu { display: none; margin-left: auto; position: relative; }
.mobile-menu summary { list-style: none; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; font-weight: 800; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel { position: absolute; right: 0; top: 48px; min-width: 240px; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.mobile-menu-panel a { padding: 10px 12px; border-radius: 6px; color: var(--muted); font-weight: 700; overflow-wrap: anywhere; }
.mobile-menu-panel a:hover, .mobile-menu-panel a[aria-current="page"] { color: var(--ink); background: #f1f5f9; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.button.primary { border-color: transparent; background: var(--accent); color: #fff; }
.button.secondary { background: #fff; }
.button:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.button.primary:hover { background: var(--accent-hover); }

.hero { min-height: 560px; position: relative; display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--soft-surface) 100%); }
.hero::before { content: ""; position: absolute; top: 84px; right: max(24px, calc((100vw - 1220px) / 2 + 24px)); bottom: 64px; width: min(500px, 36vw); border: 1px solid var(--line); border-radius: 18px; background-image: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.06)), url("assets/finance-ai-command-center.png"); background-size: cover; background-position: center; box-shadow: var(--shadow); z-index: 0; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 92px 24px 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 620px; margin: 20px 0 18px; font-size: 58px; line-height: 1.08; color: var(--ink); }
.hero-copy { max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.metric-strip, .quick-nav, .section.compact[aria-label="Landing page summary"], .quote-band, #workflow, #buyers { display: none; }

.section { max-width: var(--max); margin: 0 auto; padding: 68px 24px; }
.section-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 30px; }
.section h2 { max-width: 760px; margin-bottom: 0; font-size: 36px; line-height: 1.14; }
.section-lede { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.solutions, .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.solution-card, .proof-card, .feature, .persona, .panel, .trust-item, .auth-intro, .auth-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(16,24,40,.06); }
.solution-card { min-height: 250px; padding: 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.solution-card:hover { transform: translateY(-2px); border-color: #a7d8cb; box-shadow: var(--shadow); }
.solution-card h3 { font-size: 22px; margin: 14px 0 10px; }
.tag { width: fit-content; padding: 5px 8px; border: 1px solid #bde5d8; border-radius: 4px; color: var(--accent); background: var(--accent-soft); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .1em; }
.card-points { display: grid; gap: 8px; margin: 4px 0 20px; padding: 0; list-style: none; color: var(--soft); }
.card-points li { display: grid; grid-template-columns: 12px 1fr; gap: 9px; align-items: start; line-height: 1.45; }
.card-points li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.card-action { margin-top: auto; color: var(--accent); font-weight: 900; }
.card-action::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); }
.trust-section { padding-top: 54px; padding-bottom: 54px; }
.trust-item, .feature, .persona, .panel, .proof-card { padding: 20px; }
.trust-item strong { display: block; margin-bottom: 8px; color: var(--ink); }
.trust-item span, .feature p, .persona p, .panel p, .proof-card p, .cta p { color: var(--muted); line-height: 1.55; }

.page-hero, .auth-page { position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.78)), url("assets/finance-ai-command-center.png") center/cover; }
.page-hero-inner { max-width: var(--max); margin: 0 auto; padding: 84px 24px 52px; }
.page-hero h1 { max-width: 780px; font-size: 44px; }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; align-items: start; }
.panel h2 { font-size: 28px; margin-bottom: 14px; }
.data-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(16,24,40,.06); }
.data-table th, .data-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table thead th { color: var(--soft); text-transform: uppercase; letter-spacing: .08em; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--soft-surface); }
.data-table tbody th { color: var(--ink); font-weight: 800; }
.status, .card-action, .auth-switch a, .form-row a { color: var(--accent); }
.warn { color: var(--amber); }
.danger { color: var(--red); }

.cta { max-width: var(--max); margin: 0 auto; padding: 74px 24px; text-align: center; }
.cta h2 { font-size: 38px; margin-bottom: 16px; }
.cta p { max-width: 650px; margin: 0 auto 26px; }
.contact-form { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: left; }
.contact-form .button { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
.form-success { display: none; grid-column: 1 / -1; margin: 4px 0 0; padding: 12px 14px; border: 1px solid #bde5d8; border-radius: 6px; color: var(--accent-hover); background: var(--accent-soft); font-weight: 800; }
.form-success.is-visible { display: block; }
.auth-page { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: 64px 24px; }
.auth-shell { width: 100%; max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: stretch; }
.auth-intro, .auth-card { backdrop-filter: blur(12px); padding: 28px; }
.auth-intro h1 { font-size: 36px; line-height: 1.08; margin-bottom: 14px; }
.auth-intro p, .auth-card p { color: var(--muted); line-height: 1.6; }
.form-grid, .field { display: grid; gap: 14px; }
.field { gap: 7px; }
.field label { color: #455466; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); padding: 0 12px; font: inherit; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.sso-button { width: 100%; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 13px; }
.check-field { display: inline-flex; align-items: center; gap: 8px; }
.form-message { margin: 0; color: var(--soft); font-size: 13px; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); color: var(--soft); background: #fff; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; }
.footer-compliance, .footer-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-links a:hover { color: var(--ink); }
.footer-compliance span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--soft); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }

@media (max-width: 1200px) { h1 { font-size: 52px; } .page-hero h1 { font-size: 40px; } .section h2 { font-size: 34px; } .cta h2 { font-size: 34px; } }
@media (max-width: 1080px) { .nav { height: 68px; } .nav-links { display: none; } .mobile-menu { display: block; } }
@media (max-width: 900px) { .hero::before { display: none; } .hero { min-height: auto; } .hero-inner { padding-top: 72px; } .metric-strip, .solutions, .features, .personas, .proof-grid, .split, .trust-grid, .contact-form { grid-template-columns: 1fr; } .section-head { display: block; } .data-table { display: block; overflow-x: auto; } .footer-inner { flex-direction: column; } .footer-links { justify-content: center; } h1 { font-size: 38px; line-height: 1.08; } .hero-copy { font-size: 17px; } .section h2, .cta h2, .page-hero h1 { font-size: 30px; line-height: 1.14; } .auth-shell { grid-template-columns: 1fr; } }
@media (max-width: 640px) { h1 { font-size: 32px; } .hero-copy, .page-hero p { font-size: 16px; } .section { padding-top: 58px; padding-bottom: 58px; } .section h2, .cta h2, .page-hero h1 { font-size: 26px; line-height: 1.16; } .mobile-menu-panel { position: fixed; left: 16px; right: 16px; top: 74px; } }
