@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f3f4f7;
  --bg-deep: #e9edf3;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-soft: rgba(104, 108, 118, 0.06);
  --text: #1b212b;
  --muted: #5f6774;
  --line: rgba(27, 33, 43, 0.12);
  --line-strong: rgba(27, 33, 43, 0.2);
  --accent: #686c76;
  --accent-strong: #4c5664;
  --accent-soft: rgba(104, 108, 118, 0.12);
  --shadow: 0 24px 80px rgba(54, 63, 79, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1160px;
}

body.home-page {
  --bg: #dde3ec;
  --bg-deep: #d1d9e4;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #f2f5fa;
  --surface-soft: rgba(76, 86, 100, 0.08);
  --line: rgba(27, 33, 43, 0.16);
  --line-strong: rgba(27, 33, 43, 0.24);
  --shadow: 0 24px 80px rgba(39, 47, 61, 0.16);
}

body.onespeed-page {
  --bg: #111318;
  --bg-deep: #0a0b0f;
  --surface: rgba(23, 26, 32, 0.9);
  --surface-strong: #1a1f27;
  --surface-soft: rgba(255, 255, 255, 0.03);
  --text: #f4f7fb;
  --muted: #9fa7b5;
  --line: rgba(183, 188, 199, 0.16);
  --line-strong: rgba(183, 188, 199, 0.28);
  --accent: #2a8ed4;
  --accent-strong: #57a7e1;
  --accent-soft: rgba(42, 142, 212, 0.14);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(104, 108, 118, 0.14), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body.home-page {
  background:
    radial-gradient(circle at top left, rgba(76, 86, 100, 0.18), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.35), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body.onespeed-page {
  background:
    radial-gradient(circle at top left, rgba(42, 142, 212, 0.2), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #101218 0%, #0b0d11 100%);
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero,
.section-hero {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 244, 247, 0.96));
  box-shadow: var(--shadow);
}

body.onespeed-page .hero,
body.onespeed-page .section-hero {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(26, 31, 39, 0.98), rgba(16, 18, 24, 0.98));
  min-height: 280px;
}

.hero::before,
.section-hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 55%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 108, 118, 0.12), transparent 68%);
  pointer-events: none;
}

body.onespeed-page .hero::before,
body.onespeed-page .section-hero::before {
  background: radial-gradient(circle, rgba(42, 142, 212, 0.22), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 28px;
  align-items: center;
}

body.onespeed-page .hero-grid {
  min-height: 202px;
}

body.onespeed-page .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy {
  min-width: 0;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.eyebrow,
.breadcrumbs {
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: color-mix(in srgb, var(--text) 78%, transparent);
}

.lead,
.intro {
  max-width: 62ch;
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.72;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

body.onespeed-page .pill {
  background: rgba(255, 255, 255, 0.04);
  color: #d9dfeb;
}

.grid {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.apps-grid {
  grid-template-columns: minmax(0, 1fr);
}

.content-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  align-items: start;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22)),
    var(--surface);
  box-shadow: var(--shadow);
}

body.onespeed-page .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.app-card {
  display: grid;
  gap: 22px;
}

.card-kicker {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.brand-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.brand-logo-box,
.logo-stage,
.neutral-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18)),
    var(--surface-strong);
}

body.onespeed-page .brand-logo-box,
body.onespeed-page .logo-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    #050608;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-logo-box {
  padding: 12px;
}

.logo-stage {
  width: min(100%, 250px);
  padding: 16px;
}

.neutral-panel {
  width: min(100%, 320px);
  padding: 20px;
}

.logo-stage::after,
.brand-logo-box::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 142, 212, 0.22), transparent 66%);
  pointer-events: none;
}

.logo-image {
  width: 100%;
  height: auto;
}

.neutral-metrics {
  display: grid;
  gap: 12px;
}

.neutral-metric {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
}

.neutral-metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.logo-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  text-decoration: none;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

body.onespeed-page .button {
  min-height: 40px;
  padding: 0 14px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #f7fbff;
  font-size: 0.86rem;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

body.onespeed-page .button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
}

.stack {
  display: grid;
  gap: 18px;
}

.note-card,
.alert {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent) 6%, transparent)),
    var(--surface);
}

.legal-list,
.link-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.link-list a {
  color: var(--accent-strong);
  text-decoration: none;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.info-table th,
.info-table td {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.info-table th {
  width: 32%;
  padding-right: 20px;
  font-weight: 700;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.prose {
  font-size: 1rem;
  line-height: 1.72;
}

.prose p,
.prose ul {
  margin: 0 0 16px;
}

.doc-links {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.doc-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: inherit;
  text-decoration: none;
}

.doc-link-label {
  font-weight: 700;
}

.mini-logo {
  width: 64px;
}

@media (max-width: 900px) {
  .hero-grid,
  .brand-row,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    justify-content: flex-start;
  }

  body.onespeed-page .hero,
  body.onespeed-page .section-hero,
  body.onespeed-page .hero-grid {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .hero,
  .section-hero,
  .card {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .logo-stage,
  .brand-logo-box,
  .neutral-panel {
    padding: 14px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .info-table th {
    padding-bottom: 0;
    border-bottom: none;
  }
}
