:root {
  --bg: #ffffff;
  --surface: #f6fbff;
  --surface-strong: #e9f6ff;
  --text: #0a1f33;
  --muted: #587087;
  --line: rgba(15, 121, 200, 0.14);
  --blue: #0f79c8;
  --blue-deep: #0b56a5;
  --green: #5bb041;
  --orange: #f5a313;
  --shadow: 0 24px 60px rgba(10, 31, 51, 0.08);
  --radius: 24px;
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(91, 176, 65, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(15, 121, 200, 0.08), transparent 32%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 8px 0 32px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}

.topnav a {
  transition: color 180ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 72px;
  height: 72px;
  flex: none;
}

.brand-wordmark {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-blue {
  color: var(--blue-deep);
}

.brand-green {
  color: var(--green);
}

.topnav a:hover,
.topnav a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible,
.contact-intro a:hover,
.contact-intro a:focus-visible,
.consent-row a:hover,
.consent-row a:focus-visible,
.policy-section a:hover,
.policy-section a:focus-visible,
.policy-nav a:hover,
.policy-nav a:focus-visible {
  color: var(--blue-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  padding: 24px 0 48px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.value-strip h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
}

.lede {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: 0 14px 30px rgba(15, 121, 200, 0.22);
}

.button-secondary {
  color: var(--blue-deep);
  background: #ffffff;
  border-color: var(--line);
}

.hero-card,
.panel,
.value-strip article,
.cookie-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -28% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 163, 19, 0.24), transparent 68%);
}

.hero-card p {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 700;
}

.hero-card p:nth-child(2n) {
  color: var(--green);
}

.value-strip {
  padding: 8px 0 20px;
}

.value-strip article {
  padding: 30px;
}

.value-strip h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.value-strip p {
  max-width: 70ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.grid-section,
.flow,
.tag-cloud {
  display: grid;
  gap: 20px;
}

.grid-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px 0;
}

.panel {
  padding: 28px;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 12px;
  color: var(--text);
  line-height: 1.55;
}

.architecture,
.use-cases,
.contact-section {
  padding: 34px 0 14px;
}

.section-heading h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.flow-step {
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.flow-step h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.architecture-closing {
  max-width: 64ch;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.tag-cloud {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.tag-cloud span {
  padding: 16px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 36px 0 88px;
  color: var(--muted);
}

.footer p {
  margin: 0;
  max-width: 52ch;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-link {
  border: 0;
  background: none;
  color: var(--blue-deep);
  font-weight: 700;
  cursor: pointer;
}

.contact-card,
.policy-hero,
.policy-section,
.policy-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
}

.contact-intro {
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.field span small {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: #ffffff;
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(15, 121, 200, 0.18);
  border-color: rgba(15, 121, 200, 0.34);
}

.field small,
.form-status {
  color: var(--muted);
}

.field-full {
  grid-column: 1 / -1;
}

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.5;
}

.consent-row input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.form-status {
  min-height: 1.4em;
  margin: 0;
}

.policy-page {
  display: grid;
  gap: 28px;
}

.policy-hero {
  padding: 30px;
}

.policy-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.policy-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  padding: 24px;
}

.policy-nav a {
  color: var(--muted);
  font-weight: 600;
}

.policy-content {
  display: grid;
  gap: 18px;
}

.policy-section {
  padding: 28px;
}

.policy-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.policy-section p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: var(--muted);
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr) auto;
  gap: 20px;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-title {
  margin: 0 0 8px;
  font-weight: 800;
}

.cookie-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-controls {
  display: grid;
  gap: 10px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option small {
  margin-top: 4px;
  color: var(--muted);
}

.cookie-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

@media (max-width: 980px) {
  .hero,
  .grid-section,
  .flow,
  .tag-cloud,
  .cookie-banner,
  .contact-card,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section-heading h2,
  .value-strip h2 {
    max-width: none;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 116px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .policy-nav {
    position: static;
  }

  .flow-step {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-actions,
  .cookie-actions,
  .footer-links {
    width: 100%;
  }

  .hero-actions .button,
  .cookie-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .topnav {
    width: 100%;
    gap: 12px;
  }

  .topnav a {
    width: 100%;
  }

  .contact-card,
  .policy-hero,
  .policy-section,
  .policy-nav,
  .value-strip article {
    padding: 22px;
  }

  .field input,
  .field textarea {
    font-size: 16px;
  }

  .tag-cloud {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .panel,
  .value-strip article,
  .flow-step,
  .cookie-banner {
    border-radius: 20px;
  }

  .flow-step h3 {
    font-size: 1.12rem;
  }

  .architecture-closing,
  .lede,
  .value-strip p,
  .flow-step p,
  .contact-intro,
  .policy-section p {
    font-size: 1rem;
  }

  .cookie-banner {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
  }
}
