:root {
  --ink: #111412;
  --ink-soft: #242a26;
  --paper: #ffffff;
  --surface: #f3f6f4;
  --line: #d9dfdb;
  --muted: #5e6962;
  --green: #22c55e;
  --green-dark: #15803d;
  --teal: #0f766e;
  --coral: #e75b4e;
  --max: 1180px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Arial, sans-serif; line-height: 1.55; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--green-dark); }
.skip-link:focus { top: 12px; }

.site-header { height: var(--header); background: var(--paper); border-bottom: 1px solid rgba(17,20,18,.1); position: sticky; top: 0; z-index: 50; }
.nav-shell { width: min(var(--max), calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); background: var(--green); border-radius: 6px; font-size: 18px; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a, .text-link { color: #3d4740; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-menu a:hover, .text-link:hover { color: var(--green-dark); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 9px; cursor: pointer; }
.menu-button span { width: 24px; height: 2px; display: block; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

.button { min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #07160c; background: var(--green); border-color: var(--green); }
.button-primary:hover { background: #35d66f; border-color: #35d66f; }
.button-secondary { color: var(--ink); background: var(--paper); border-color: #aeb8b1; }
.button-secondary:hover { border-color: var(--ink); }
.button-ghost { color: var(--paper); background: rgba(17,20,18,.36); border-color: rgba(255,255,255,.48); }
.button-ghost:hover { background: rgba(17,20,18,.66); border-color: var(--paper); }
.button-dark-outline { color: var(--paper); border-color: #667069; }
.button-dark-outline:hover { border-color: var(--paper); }
.button-compact { min-height: 40px; padding: 0 16px; }
.button-block { width: 100%; }

.hero { height: calc(100svh - 124px); min-height: 580px; max-height: 760px; position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.hero-media { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,9,.96) 0%, rgba(8,11,9,.82) 34%, rgba(8,11,9,.28) 68%, rgba(8,11,9,.08) 100%); }
.hero-inner { width: min(var(--max), calc(100% - 40px)); height: 100%; margin: auto; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 36px 0 42px; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--green-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.eyebrow { color: #b9f6cb; display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--green); }
.hero h1 { margin: 0; max-width: 640px; font-size: clamp(64px, 9vw, 118px); line-height: .86; letter-spacing: 0; }
.hero-statement { max-width: 660px; margin: 28px 0 0; font-size: clamp(24px, 3vw, 40px); font-weight: 600; line-height: 1.08; }
.hero-copy { max-width: 600px; margin: 18px 0 0; color: #d6ded8; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin: 16px 0 0; color: #aeb9b1; font-size: 12px; }

.proof-band { background: var(--ink); color: var(--paper); border-top: 1px solid #343a36; }
.proof-grid { width: min(var(--max), calc(100% - 40px)); min-height: 72px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { display: flex; align-items: baseline; gap: 10px; padding: 20px 24px; border-left: 1px solid #343a36; }
.proof-grid div:last-child { border-right: 1px solid #343a36; }
.proof-grid strong { color: var(--green); font-size: 20px; }
.proof-grid span { color: #b8c0ba; font-size: 12px; }

.section { padding: 104px max(20px, calc((100% - var(--max)) / 2)); }
.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading h2, .workflow-intro h2, .setup-copy h2, .faq-heading h2, .final-cta h2 { margin: 0; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.04; letter-spacing: 0; }
.section-heading > p:last-child, .heading-split > p, .setup-copy > p, .faq-heading > p { color: var(--muted); font-size: 17px; }
.heading-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 72px; align-items: end; }
.heading-split > p { margin: 0 0 4px; }

.operation-section { background: var(--paper); }
.interfaces { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.interface-item { min-height: 300px; padding: 30px 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.interface-item:first-child { border-left: 1px solid var(--line); }
.item-index { color: var(--coral); font: 700 12px/1 Inter, sans-serif; }
.interface-item h3 { margin: 42px 0 12px; font-size: 28px; }
.interface-item p { margin: 0; color: var(--muted); font-size: 14px; }
.item-tag { margin-top: auto; color: var(--teal); font-size: 12px; font-weight: 700; }

.workflow-section { background: var(--surface); display: grid; grid-template-columns: .8fr 1.2fr; gap: 96px; }
.workflow-intro { position: sticky; top: 112px; align-self: start; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #bec8c1; }
.workflow-list li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid #bec8c1; }
.workflow-list > li > span { color: var(--coral); font-size: 12px; font-weight: 800; }
.workflow-list h3 { margin: 0 0 6px; font-size: 22px; }
.workflow-list p { margin: 0; color: var(--muted); }

.features-section { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.feature-grid article { min-height: 190px; display: grid; grid-template-columns: 52px 1fr; gap: 24px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article:nth-child(odd) { border-left: 1px solid var(--line); }
.feature-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--paper); background: var(--ink); border-radius: 6px; font-weight: 800; }
.feature-grid h3 { margin: 0 0 8px; font-size: 21px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.setup-section { background: var(--teal); color: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.setup-copy { align-self: center; }
.setup-copy .kicker { color: #a7f3d0; }
.setup-copy > p { color: #d6efeb; }
.arrow-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--paper); font-weight: 700; text-decoration: none; }
.arrow-link span { font-size: 22px; }
.setup-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); }
.setup-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.setup-steps > li > span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); background: var(--green); border-radius: 50%; font-size: 12px; font-weight: 800; }
.setup-steps strong { font-size: 18px; }
.setup-steps p { margin: 3px 0 0; color: #d6efeb; font-size: 14px; }

.pricing-section { background: var(--surface); }
.pricing-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.billing-toggle { display: inline-flex; padding: 4px; background: #dfe5e1; border-radius: 6px; }
.billing-toggle button { min-width: 88px; min-height: 38px; border: 0; border-radius: 4px; color: #58635c; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.billing-toggle button.active { color: var(--ink); background: var(--paper); box-shadow: 0 1px 3px rgba(17,20,18,.12); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; gap: 20px; }
.price-card { padding: 36px; background: var(--paper); border: 1px solid #cfd7d1; border-radius: 6px; }
.price-card-featured { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.price-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price-top p { margin: 0; font-size: 19px; font-weight: 800; }
.price-top span { color: var(--muted); font-size: 12px; }
.price-card-featured .price-top span { color: #aeb8b1; }
.price { min-height: 60px; margin: 34px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 38px; line-height: 1; }
.price span { color: var(--muted); }
.price-card-featured .price span { color: #aeb8b1; }
.price-description { min-height: 48px; margin: 0; color: var(--muted); font-size: 14px; }
.price-card-featured .price-description { color: #bec7c0; }
.price-card ul { min-height: 210px; margin: 30px 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.price-card-featured ul { border-color: #3e4540; }
.price-card li { position: relative; padding: 7px 0 7px 24px; font-size: 14px; }
.price-card li::before { content: ""; width: 8px; height: 8px; position: absolute; left: 0; top: 14px; background: var(--green); border-radius: 50%; }
.pricing-footnote { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 12px; text-align: center; }

.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 96px; }
.faq-heading { align-self: start; position: sticky; top: 112px; }
.faq-heading a { color: var(--green-dark); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 76px; padding: 24px 48px 24px 0; position: relative; cursor: pointer; font-size: 17px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 19px; color: var(--green-dark); font-size: 26px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -8px 48px 24px 0; color: var(--muted); }

.final-cta { padding: 72px max(20px, calc((100% - var(--max)) / 2)); display: flex; justify-content: space-between; align-items: end; gap: 64px; color: var(--paper); background: var(--ink); }
.final-cta > div:first-child { max-width: 720px; }
.final-cta > div:first-child > p:last-child { color: #b9c2bb; }
.kicker-light { color: #9bf3b5; }
.final-actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }

.site-footer { padding: 64px max(20px, calc((100% - var(--max)) / 2)) 24px; color: var(--paper); background: #080a09; border-top: 1px solid #303531; }
.footer-main { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 56px; padding-bottom: 56px; }
.brand-light { color: var(--paper); }
.footer-brand p { max-width: 300px; color: #939d96; font-size: 14px; }
.footer-column { display: flex; flex-direction: column; gap: 10px; }
.footer-column h2 { margin: 0 0 8px; color: #8f9992; font-size: 12px; text-transform: uppercase; }
.footer-column a { color: #dbe1dc; font-size: 14px; text-decoration: none; }
.footer-column a:hover { color: var(--green); }
.footer-bottom { padding-top: 22px; border-top: 1px solid #303531; display: flex; justify-content: space-between; gap: 24px; color: #7f8982; font-size: 12px; }

:focus-visible { outline: 3px solid #f8b84e; outline-offset: 3px; }

@media (max-width: 920px) {
  :root { --header: 64px; }
  .nav-shell { width: min(100% - 32px, var(--max)); }
  .menu-button { display: block; order: 3; }
  .nav-actions .text-link { display: none; }
  .nav-menu { display: none; position: fixed; inset: var(--header) 0 auto; padding: 24px 20px 30px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(17,20,18,.12); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 600px; height: calc(100svh - 104px); }
  .hero-media { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,11,9,.95) 0%, rgba(8,11,9,.74) 52%, rgba(8,11,9,.2) 100%); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid div:nth-child(2) { border-right: 1px solid #343a36; }
  .proof-grid div:nth-child(-n+2) { border-bottom: 1px solid #343a36; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .heading-split, .workflow-section, .setup-section, .faq-section { grid-template-columns: 1fr; gap: 52px; }
  .workflow-intro, .faq-heading { position: static; }
  .interfaces { grid-template-columns: repeat(2, 1fr); }
  .interface-item:nth-child(2) { border-right: 1px solid var(--line); }
  .interface-item:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .interface-item:nth-child(4) { border-top: 1px solid var(--line); }
  .footer-main { grid-template-columns: 2fr 1fr 1fr; }
  .footer-column:last-child { grid-column: 2; }
}

@media (max-width: 640px) {
  .nav-actions .button { display: none; }
  .nav-shell { gap: 12px; }
  .hero { min-height: min(590px, calc(100svh - 112px)); max-height: 720px; height: calc(100svh - 112px); }
  .hero-media { object-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,11,9,.96) 0%, rgba(8,11,9,.82) 66%, rgba(8,11,9,.28) 100%); }
  .hero-inner { width: calc(100% - 32px); padding: 30px 0; }
  .hero h1 { font-size: clamp(62px, 21vw, 88px); }
  .hero-statement { margin-top: 22px; font-size: 26px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .proof-grid { width: 100%; }
  .proof-grid div { min-height: 80px; padding: 16px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .section { padding: 68px 16px; }
  .section-heading h2, .workflow-intro h2, .setup-copy h2, .faq-heading h2, .final-cta h2 { font-size: 36px; }
  .interfaces, .feature-grid { grid-template-columns: 1fr; }
  .interface-item { min-height: 240px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .interface-item:first-child { border-top: 0; }
  .feature-grid article, .feature-grid article:nth-child(odd) { border-left: 1px solid var(--line); }
  .feature-grid article { min-height: 0; padding: 26px 20px; grid-template-columns: 44px 1fr; gap: 16px; }
  .feature-mark { width: 38px; height: 38px; }
  .pricing-heading { align-items: stretch; flex-direction: column; }
  .billing-toggle { align-self: stretch; }
  .billing-toggle button { flex: 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { padding: 28px 22px; }
  .price-card ul { min-height: 0; }
  .final-cta { padding: 64px 16px; align-items: stretch; flex-direction: column; gap: 30px; }
  .final-actions { min-width: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (max-height: 700px) and (min-width: 641px) {
  .hero { min-height: calc(100svh - 112px); height: calc(100svh - 112px); }
  .hero-inner { padding-top: 22px; padding-bottom: 22px; }
  .hero h1 { font-size: clamp(58px, 8vw, 90px); }
  .hero-statement { margin-top: 18px; font-size: clamp(24px, 2.7vw, 34px); }
  .hero-copy { margin-top: 12px; font-size: 15px; }
  .hero-actions { margin-top: 18px; }
  .hero-note { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
