/* Design tokens — Brex-inspired */
:root {
  --primary: #ff5900;
  --accent-hover: #e65000;
  --accent-pressed: #cc4700;
  --ink: #15191e;
  --body: #33383f;
  --muted: #60646c;
  --canvas: #fcfcfd;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --border: #e6e8eb;
  --border-strong: #c9cdd2;
  --soft-orange: #fff3ec;
  --footer-bg: #15191e;
  --on-primary: #ffffff;
  --on-dark: #fcfcfd;
  --logo-gray: #a5a9b1;
  --success: #138a43;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --max-width: 1280px;
  --section-pad: clamp(64px, 10vw, 120px);
  --gutter: clamp(24px, 4vw, 32px);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--on-dark);
}

.skip-link:focus {
  left: var(--gutter);
  top: 8px;
}

/* Announcement */
.announcement {
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
}

.announcement a {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement a:hover {
  color: var(--primary);
}

/* Nav */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 72px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.logo span {
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
}

.nav-links a:hover {
  background: var(--surface-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.menu-toggle .icon-close {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px var(--gutter);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.43;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent-pressed);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-alt);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.headline-lg {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 16px;
}

.title-md {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}

.body-text {
  margin: 0;
  max-width: 56ch;
}

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 80px) 0 clamp(64px, 10vw, 100px);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero-brand {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 20px;
}

.hero-sub {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.4;
  color: var(--body);
  margin: 0 0 28px;
  max-width: 42ch;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--body);
}

.hero-bullets svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--primary);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 48ch;
}

.hero-media {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 24px;
}

.hero-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.panel-badge {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--soft-orange);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.panel-stat {
  font-size: 12px;
  color: var(--muted);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.slot-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--surface-alt) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 1px solid var(--border);
}

.slot-tile.highlight {
  background: var(--soft-orange);
  border-color: rgba(255, 89, 0, 0.25);
}

.panel-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.panel-footer strong {
  color: var(--ink);
  font-weight: 600;
}

/* Feature cards */
.card-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--soft-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

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

/* Metrics */
.metric-row {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .metric-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
}

.metric-value {
  font-size: clamp(28px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 8px;
}

.metric-panel p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Split section */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.workflow-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-list li {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-list strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 4px;
}

.workflow-list span {
  font-size: 14px;
  color: var(--muted);
}

/* Trust */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--logo-gray);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  margin: 0 var(--gutter);
  max-width: calc(var(--max-width) - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

.cta-band .headline-lg {
  color: var(--on-dark);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(252, 252, 253, 0.75);
  margin: 0 auto 28px;
  max-width: 48ch;
  font-size: 16px;
}

.cta-band .btn-primary {
  font-size: 16px;
  padding: 14px 28px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: 64px var(--gutter) 32px;
  margin-top: var(--section-pad);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(252, 252, 253, 0.65);
  margin: 0;
  max-width: 40ch;
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: var(--on-dark);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 12px;
  color: rgba(252, 252, 253, 0.65);
}

.footer-col a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(252, 252, 253, 0.5);
}

.responsible {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}

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