/* ===== Theme tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --card: #ffffff;
  --line: #e5e5e5;
  --text: #0a0a0a;
  --muted: #5c5c5c;
  --invert-bg: #0a0a0a;
  --invert-text: #ffffff;
  --radius: 16px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --card: #111111;
  --line: #262626;
  --text: #fafafa;
  --muted: #a3a3a3;
  --invert-bg: #fafafa;
  --invert-text: #0a0a0a;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--invert-bg); color: var(--invert-text); font-size: 1rem; }
.logo-llc { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: -4px; }
.links { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: .95rem; color: var(--muted); }
.links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; font-size: 1.05rem; }
.icon-btn:hover { border-color: var(--text); }
.menu-btn { display: none; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--invert-bg); color: var(--invert-text) !important; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--invert-bg); cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, opacity .15s; }
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); opacity: 1; }

/* ===== Typography ===== */
.eyebrow { display: inline-block; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--muted); margin-bottom: 14px; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.8rem); line-height: 1.03; font-weight: 800; letter-spacing: -.035em; max-width: 900px; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 440px; }

/* ===== Hero ===== */
.hero { padding: 100px 0 70px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .7; pointer-events: none; }
.hero .wrap { position: relative; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 620px; margin: 24px 0 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 28px 20px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ===== Marquee ===== */
.marquee { padding: 34px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee p { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.track { display: flex; gap: 56px; width: max-content; animation: scroll 32s linear infinite; }
.track span { font-weight: 700; font-size: 1.15rem; color: var(--muted); white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid .card { padding: 26px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--text); transform: translateY(-3px); }
.card p { color: var(--muted); margin-bottom: 16px; }
.card ul { list-style: none; font-size: .92rem; display: grid; gap: 6px; }
.card li::before { content: "—  "; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--invert-bg); color: var(--invert-text); display: grid; place-items: center; margin-bottom: 22px; }
.icon svg { width: 22px; height: 22px; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: start; }
.why h2 { margin-bottom: 20px; }
.why-list { display: grid; gap: 0; }
.why-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-item:first-child { padding-top: 0; }
.why-item .num { font-weight: 800; color: var(--muted); }
.why-item p { color: var(--muted); }

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--text); font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 12px 22px; font-weight: 600; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; }
.plan.featured { background: var(--invert-bg); color: var(--invert-text); border-color: var(--invert-bg); }
.plan.featured .muted, .plan.featured li { color: color-mix(in srgb, var(--invert-text) 70%, transparent); }
.plan.featured .btn { background: var(--invert-text); color: var(--invert-bg) !important; border-color: var(--invert-text); }
.plan .tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; }
.plan ul { list-style: none; margin: 26px 0 30px; display: grid; gap: 10px; color: var(--muted); flex: 1; }
.plan li::before { content: "✓  "; font-weight: 700; }
.plan .btn { justify-content: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 44px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* CTA band */
.cta-band { background: var(--invert-bg); color: var(--invert-text); border-radius: 28px; padding: 70px 50px; text-align: center; }
.cta-band p { opacity: .7; margin: 16px auto 30px; max-width: 520px; }
.cta-band .btn { background: var(--invert-text); color: var(--invert-bg) !important; border-color: var(--invert-text); }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: center; }
.about h2 { margin-bottom: 22px; }
.about p { color: var(--muted); margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { font-weight: 700; font-size: 1.1rem; }

/* Founder */
.founder { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 70px; align-items: center; }
.founder-photo { position: relative; isolation: isolate; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 24px; display: block; filter: grayscale(15%); border: 1px solid var(--line); }
.founder-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--text); border-radius: 24px; z-index: -1; opacity: .25; }
.founder h2 { margin-bottom: 6px; }
.founder-role { font-weight: 600; margin-bottom: 22px; }
.founder p:not(.founder-role) { color: var(--muted); margin-bottom: 16px; }
.founder blockquote { border-left: 3px solid var(--text); padding: 6px 0 6px 20px; margin: 26px 0; font-size: 1.08rem; font-style: italic; }
.founder-skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.founder-skills li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; }
.contact h2 { margin-bottom: 16px; }
.contact-list { list-style: none; margin-top: 34px; display: grid; gap: 20px; }
.contact-list strong { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }
.contact-list a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--text); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-content: center; }
.form-note { font-size: .8rem; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h4 { color: var(--text); font-size: .9rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .logo { color: var(--text); margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom nav { display: flex; gap: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .track { animation: none; } }

/* Legal pages */
.legal { padding: 70px 20px 90px; max-width: 780px; }
.legal h1 { font-size: 2.6rem; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid, .pricing { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why, .about, .contact, .founder { grid-template-columns: 1fr; gap: 44px; }
  .founder-photo { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .links.open { display: flex; }
  .links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-actions .btn { display: none; }
}
@media (max-width: 640px) {
  .grid, .pricing, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .form .row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding: 70px 0 50px; }
  .cta-band { padding: 50px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
