/* Intervia Trade — Brex-inspired design tokens */
: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;
  --nav-height: 72px;
  --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;
  top: -100px;
  left: var(--gutter);
  padding: 12px 16px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-md);
  z-index: 10000;
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* 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;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.announcement__arrow {
  transition: transform 0.15s ease;
}

.announcement a:hover .announcement__arrow {
  transform: translateX(3px);
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 16px;
}

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

.logo span {
  color: var(--primary);
}

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

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
}

.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;
}

.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;
  border: none;
  cursor: pointer;
  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);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
}

.btn--ghost:hover {
  background: var(--surface-alt);
}

.btn--link-arrow {
  background: transparent;
  color: var(--ink);
  padding: 0;
  min-height: auto;
  font-weight: 600;
}

.btn--link-arrow:hover {
  color: var(--primary);
}

.btn--link-arrow .arrow {
  transition: transform 0.15s ease;
}

.btn--link-arrow:hover .arrow {
  transform: translateX(4px);
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-md);
}

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

.nav__mobile .btn--primary {
  margin-top: 8px;
  width: 100%;
}

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 80px) 0 var(--section-pad);
}

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

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

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

.hero__title {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 20px;
}

.hero__title .brand {
  display: block;
  color: var(--ink);
}

.hero__title .brand-accent {
  color: var(--primary);
}

.hero__lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

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

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

/* Dashboard mock */
.dashboard {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dashboard__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.dashboard__dots {
  display: flex;
  gap: 6px;
}

.dashboard__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.dashboard__dots span:first-child {
  background: var(--primary);
}

.dashboard__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.dashboard__body {
  padding: 20px;
}

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

@media (max-width: 480px) {
  .dashboard__metrics {
    grid-template-columns: 1fr;
  }
}

.metric-mini {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 14px;
}

.metric-mini__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 4px;
}

.metric-mini__value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

.metric-mini__value--up {
  color: var(--success);
}

.dashboard__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.row-item__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-item__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--soft-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}

.row-item__status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.row-item__status--ok {
  background: rgba(19, 138, 67, 0.12);
  color: var(--success);
}

.row-item__status--pending {
  background: rgba(179, 92, 0, 0.12);
  color: #b35c00;
}

/* Trust strip */
.trust {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust__label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 24px;
}

.trust__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
}

.trust__logos span {
  font-size: 15px;
  font-weight: 600;
  color: var(--logo-gray);
  letter-spacing: -0.02em;
}

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

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

.section__header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

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

.section__desc {
  font-size: 16px;
  color: var(--body);
  margin: 0;
}

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

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

@media (min-width: 1024px) {
  .feature-grid--3 {
    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-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--soft-orange);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

.feature-card__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}

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

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

  .split--reverse .split__copy {
    order: 2;
  }

  .split--reverse .split__media {
    order: 1;
  }
}

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

.split__text {
  margin: 0 0 24px;
  color: var(--body);
}

.split__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.split__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
}

.split__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.product-panel {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}

/* Metric trio */
.metric-trio {
  display: grid;
  gap: 24px;
}

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

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

@media (min-width: 1024px) {
  .section--alt .metric-panel {
    background: var(--surface);
  }
}

.metric-panel__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 8px;
}

.metric-panel__value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 8px;
}

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

/* CTA band */
.cta-band {
  padding: var(--section-pad) 0;
  background: var(--ink);
  color: var(--on-dark);
}

.cta-band__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-band__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--on-dark);
}

.cta-band__text {
  font-size: 16px;
  color: rgba(252, 252, 253, 0.85);
  margin: 0 0 32px;
}

.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;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

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

.footer__brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-dark);
  margin: 0 0 12px;
}

.footer__brand span {
  color: var(--primary);
}

.footer__tagline {
  color: rgba(252, 252, 253, 0.7);
  margin: 0;
  max-width: 280px;
  font-size: 14px;
}

.footer__col h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(252, 252, 253, 0.5);
  margin: 0 0 16px;
}

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

.footer__col li {
  margin-bottom: 10px;
}

.footer__col a {
  color: rgba(252, 252, 253, 0.85);
  font-size: 14px;
}

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

.footer__legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(252, 252, 253, 0.55);
  line-height: 1.6;
}

.footer__legal p {
  margin: 0 0 8px;
}

.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;
}
