:root {
  --bg: #0b0d0c;
  --bg-elevated: #0f1210;
  --bg-panel: #121513;
  --text: #f2f1ec;
  --muted: #b8bab4;
  --dim: #9a9c96;
  --line: #1f2220;
  --line-soft: #2a2d2a;
  --line-mid: #3a3e3a;
  --accent: #d4ff3a;
  --warn: #ff8a5b;
  --max: 1280px;
  --gutter: 20px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none !important;
  }
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  box-sizing: border-box;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right, 0px));
}

/* Hard guarantee on small screens — content never sits on the edge */
@media (max-width: 719px) {
  .wrap {
    padding-left: calc(20px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(20px + env(safe-area-inset-right, 0px)) !important;
  }

  .section-faq {
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  flex: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
}

.nav-link {
  display: none;
  color: var(--muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
}

@media (min-width: 720px) {
  .nav-link {
    display: inline;
  }
}

.btn {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  filter: brightness(1.08);
  color: var(--bg);
}

.btn-lg {
  font-weight: 800;
  font-size: 18px;
  padding: 18px 26px;
}

.btn-ghost {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 18px 26px;
  min-height: 44px;
  border: 1px solid var(--line-mid);
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--text);
}

/* Hero */
.hero {
  padding: clamp(40px, 8vw, 88px) 0 clamp(48px, 8vw, 72px);
}

.eyebrow {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 11vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.accent {
  color: var(--accent);
}

.hero-grid {
  margin-top: clamp(28px, 6vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-grid > * {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.lead {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.45;
  color: #d6d7d2;
  max-width: 40ch;
}

.lead strong {
  color: var(--text);
  font-weight: 700;
}

.usp-line {
  margin: -8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.35;
  color: var(--muted);
  max-width: 36ch;
}

.usp-stat {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-btns > a {
  flex: 1 1 100%;
  justify-content: center;
}

@media (min-width: 600px) {
  .hero-btns > a {
    flex: 0 0 auto;
  }
}

.contact-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dim);
}

.flow {
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid #262a27;
}

.flow-cap {
  padding: 16px 22px;
  border-bottom: 1px solid #262a27;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.flow-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

@media (min-width: 600px) {
  .flow-body {
    padding: 24px 22px;
  }
}

.flow-box {
  border: 1px solid var(--line-soft);
  padding: 18px 20px;
}

.flow-label {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--dim);
}

.flow-text {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.flow-arrow {
  align-self: center;
  color: var(--accent);
}

.flow-core {
  background: var(--accent);
  color: var(--bg);
  padding: 24px 20px;
  margin: 4px 0;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 600px) {
  .flow-core {
    padding: 28px 24px;
    margin: 4px -8px;
    box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--accent);
  }
}

.flow-core-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.flow-core-mark {
  width: 16px;
  height: 16px;
  background: var(--bg);
  display: inline-block;
  flex: none;
}

.flow-core-desc {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

/* Marquee */
.marquee {
  background: var(--accent);
  color: var(--bg);
  overflow: hidden;
  border-top: 1px solid var(--bg);
  border-bottom: 1px solid var(--bg);
}

.marquee-track {
  display: flex;
  width: max-content;
  padding: 14px 0;
  animation: marquee 50s linear infinite;
  align-items: center;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.marquee-logo {
  width: auto;
  height: 36px;
  max-width: 140px;
  object-fit: contain;
  flex: none;
  background: #f2f1ec;
  border-radius: 6px;
  padding: 4px 6px;
  box-sizing: content-box;
}

.marquee-dot {
  width: 10px;
  height: 10px;
  background: var(--bg);
  display: inline-block;
  flex: none;
  margin-left: 14px;
}

/* Sections */
.section {
  padding: clamp(48px, 8vw, 72px) 0;
}

.section-tight-top {
  padding-top: clamp(48px, 8vw, 72px);
  padding-bottom: 0;
}

.section-lg {
  padding: clamp(56px, 10vw, 96px) 0;
}

.section-faq {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px var(--gutter) clamp(64px, 12vw, 112px);
  width: 100%;
}

.section-muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.section-label {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.h2-lg {
  font-size: clamp(40px, 5.5vw, 80px);
}

.h2-mb {
  margin-bottom: 32px;
}

.h2-mb-lg {
  margin-bottom: 40px;
}

.h2-mb-xl {
  margin-bottom: 48px;
}

.h2-mb-2xl {
  margin-bottom: 56px;
}

/* Before / After */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 880px) {
  .compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.compare > * {
  min-width: 0;
}

.compare-before {
  border: 1px solid var(--line-mid);
  padding: clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.compare-after {
  background: var(--accent);
  color: var(--bg);
  padding: clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.compare-tag {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.compare-tag--before {
  color: var(--warn);
}

.compare-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.compare-list li {
  display: flex;
  gap: 14px;
  align-items: start;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
}

.compare-before .compare-list li {
  color: var(--muted);
}

.compare-after .compare-list li {
  font-weight: 800;
}

.compare-list svg {
  flex: none;
  margin-top: 3px;
}

/* Automate list */
.strike-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.strike-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}

@media (min-width: 800px) {
  .strike-list li {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.strike-list li > * {
  min-width: 0;
}

.strike {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-color: var(--warn);
  text-decoration-thickness: 3px;
}

.result {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Portals */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-more {
  margin-top: 24px;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.portal-more p {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 30ch;
}

/* How */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps > * {
  min-width: 0;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-num {
  font-size: clamp(64px, 14vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.steps h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

/* Solutions */
.modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 880px) {
  .modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.modes > * {
  min-width: 0;
}

.mode-api {
  background: var(--accent);
  color: var(--bg);
  padding: clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mode-done {
  border: 1px solid var(--warn);
  padding: clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mode-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.mode-done .mode-label {
  color: var(--warn);
}

.modes h3 {
  margin: 0;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.modes > article > p {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  max-width: 42ch;
}

.mode-done > p,
.mode-done ul {
  color: #d6d7d2;
}

.modes ul {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
}

.mode-link {
  margin-top: auto;
  align-self: start;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  padding: 14px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 2px solid;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
}

.mode-api .mode-link {
  color: var(--bg);
  background: #0b0d0c0f;
  border-color: var(--bg);
}

.mode-api .mode-link:hover {
  background: #0b0d0c1a;
  color: var(--bg);
}

.mode-done .mode-link {
  color: var(--warn);
  border-color: var(--warn);
}

.mode-done .mode-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line-soft);
  padding: 24px 0;
}

.faq:last-of-type {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 600;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  font-size: 32px;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex: none;
}

.faq[open] .faq-plus {
  transform: rotate(45deg);
}

.faq p {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* CTA */
.cta {
  background: var(--accent);
  color: var(--bg);
}

.cta-inner {
  padding: clamp(64px, 12vw, 112px) 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cta h2 {
  font-size: clamp(48px, 8vw, 128px);
  letter-spacing: -0.045em;
}

.cta p {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  max-width: 32ch;
}

.cta-mail {
  color: var(--bg);
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
  word-break: break-all;
  min-height: 44px;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.cta-mail:hover {
  color: var(--bg);
  opacity: 0.85;
}

/* Contact modal */
body.contact-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.contact-modal[hidden] {
  display: none;
}

@media (min-width: 600px) {
  .contact-modal {
    align-items: center;
    padding: 24px;
  }
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  color: var(--text);
  padding: 28px 22px 32px;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .contact-dialog {
    padding: 36px 32px 40px;
  }
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.contact-close:hover {
  color: var(--text);
}

.contact-dialog h2 {
  margin: 0 36px 8px 0;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.contact-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field abbr {
  color: var(--accent);
  text-decoration: none;
}

.field input {
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-mid);
  padding: 14px 16px;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
}

.field input::placeholder {
  color: #6a6c68;
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.contact-status {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
}

.contact-status--ok {
  color: var(--accent);
}

.contact-status--error {
  color: var(--warn);
}

/* Footer */
.site-footer {
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--dim);
}
