/* ==========================================================================
   synchronised — Design system & layout
   ========================================================================== */

:root {
  /* Colour */
  --bg: #ffffff;
  --bg-subtle: #fafbfc;
  --bg-muted: #f1f3f5;
  --border: #e6e9ec;
  --border-strong: #dde1e6;
  --text: #0f1419;
  --text-secondary: #536471;
  --text-tertiary: #8b98a5;
  --accent: #0f62fe;
  --accent-hover: #0043ce;
  --accent-muted: #edf5ff;
  --success: #198038;
  --success-bg: #e8f5e9;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;

  /* Typography */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --tracking-tight: -0.025em;
  --tracking-tighter: -0.04em;

  /* Radii & shadow */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.2s;
  --duration-slow: 0.35s;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-muted);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

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

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* ==========================================================================
   Header & nav
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  white-space: nowrap;
}

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

.nav-link-active {
  color: var(--text) !important;
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--duration) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: var(--bg-muted);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out), color var(--duration), border-color var(--duration), box-shadow var(--duration);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

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

.btn-primary {
  color: #fff;
  background: var(--accent);
}

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

.btn-outline {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-subtle);
}

.btn-lg {
  padding: 14px 28px;
  font-size: var(--text-base);
}

@media (max-width: 480px) {
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }

  .btn-lg {
    min-height: 48px;
    padding: 14px 24px;
  }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-30);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.14) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 640px;
  margin: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-5);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-title {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  margin: 0 0 var(--space-8);
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-16) 0 var(--space-20);
    min-height: 480px;
  }

  .hero-badge {
    margin-bottom: var(--space-4);
  }

  .hero-title {
    margin-bottom: var(--space-4);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-8) 0 var(--space-12);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Page hero (e.g. Partners)
   ========================================================================== */

.page-hero {
  padding: var(--space-20) 0 var(--space-16);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.page-hero-subtitle {
  margin: 0 0 var(--space-8);
  max-width: 560px;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.page-hero .hero-badge {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .page-hero {
    padding: var(--space-12) 0 var(--space-12);
  }

  .page-hero-title {
    font-size: 1.75rem;
  }

  .page-hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-section .container {
  max-width: 560px;
}

.contact-success {
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
}

.contact-form {
  margin: 0;
}

.contact-field {
  margin-bottom: var(--space-6);
}

.contact-field label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.contact-field .required {
  color: var(--text-tertiary);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
}

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

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.contact-form .btn {
  margin-top: var(--space-2);
}

/* ==========================================================================
   Documentation page
   ========================================================================== */

.docs-main .container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-12);
  padding-top: var(--space-12);
  padding-bottom: var(--space-24);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(72px + var(--space-4));
}

.docs-nav-label {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav-link {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease-out);
}

.docs-nav-link:hover,
.docs-nav-link:focus-visible {
  color: var(--accent);
}

.docs-content-wrap,
.docs-content {
  min-width: 0;
}

.docs-loading,
.docs-error {
  padding: var(--space-8) 0;
  color: var(--text-secondary);
}

.docs-intro {
  margin-bottom: var(--space-12);
}

.docs-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.docs-description {
  margin: 0 0 var(--space-12);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.docs-card {
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration), box-shadow var(--duration);
}

.docs-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.docs-card-title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.docs-card-excerpt {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.docs-card-excerpt p {
  margin: 0 0 var(--space-2);
}

.docs-card-excerpt p:last-child {
  margin-bottom: 0;
}

.docs-card-meta {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.docs-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: color var(--duration);
}

.docs-card-link:hover {
  color: var(--accent-hover);
}

.docs-articles {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.docs-article {
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.docs-article:last-child {
  border-bottom: none;
}

.docs-article-single .docs-article-title {
  margin-top: 0;
}

.docs-not-found {
  padding: var(--space-8) 0;
}

.docs-not-found .docs-title {
  margin-bottom: var(--space-4);
}

.docs-article-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.docs-article-meta {
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.docs-article-body {
  margin-bottom: var(--space-8);
}

.docs-article-body:last-of-type {
  margin-bottom: var(--space-6);
}

.docs-article-figure {
  margin: 0 0 var(--space-8);
}

.docs-article-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.docs-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-muted);
}

.docs-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.docs-prose,
.docs-section-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text);
}

.docs-prose p,
.docs-section-body p {
  margin: 0 0 var(--space-4);
}

.docs-prose p:last-child,
.docs-prose ul:last-child,
.docs-section-body p:last-child,
.docs-section-body ul:last-child {
  margin-bottom: 0;
}

.docs-prose ul,
.docs-section-body ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
  list-style: disc;
}

.docs-prose li,
.docs-section-body li {
  margin-bottom: var(--space-2);
}

.docs-prose code,
.docs-section-body code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 2px 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.docs-prose a,
.docs-section-body a {
  color: var(--accent);
  text-decoration: underline;
}

.docs-prose a:hover,
.docs-section-body a:hover {
  color: var(--accent-hover);
}

.docs-section {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.docs-section:last-child {
  border-bottom: none;
}

.docs-section h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

@media (max-width: 768px) {
  .docs-main .container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-top: var(--space-8);
  }

  .docs-sidebar {
    position: static;
  }

  .docs-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .docs-nav-link {
    padding: var(--space-2) var(--space-3);
    background: var(--bg-muted);
    border-radius: var(--radius);
  }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust-bar {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.trust-text {
  margin: 0 0 var(--space-5);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
}

.trust-logo {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-tight);
}

@media (max-width: 768px) {
  .trust-bar {
    padding: var(--space-8) 0;
  }

  .trust-logos {
    gap: var(--space-6);
  }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

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

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.section-label {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  line-height: var(--leading-tight);
}

.section-subtitle {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0 var(--space-20);
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how-section {
  background: var(--bg-subtle);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.how-step {
  position: relative;
  padding: var(--space-8);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration), box-shadow var(--duration);
}

.how-step:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-muted);
  border-radius: var(--radius);
}

.how-step h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
}

.how-step p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-8);
  }

  .how-step {
    padding: var(--space-6);
  }
}

/* ==========================================================================
   Features
   ========================================================================== */

.features {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration), box-shadow var(--duration-slow) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: var(--radius);
}

.feature-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.feature-card p code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.feature-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: color var(--duration);
}

.feature-link:hover {
  color: var(--accent-hover);
}

@media (max-width: 768px) {
  .feature-grid {
    gap: var(--space-4);
  }

  .feature-card {
    padding: var(--space-5);
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-3);
  }
}

/* ==========================================================================
   CTA block
   ========================================================================== */

.cta {
  padding: var(--space-24) 0;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

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

.cta-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.cta-subtitle {
  margin: 0 0 var(--space-8);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .cta {
    padding: var(--space-16) 0;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: var(--space-16);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--space-16);
  padding-bottom: var(--space-12);
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

.footer-col h4 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration);
}

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

.footer-bottom {
  padding: var(--space-6) var(--space-6);
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ==========================================================================
   Responsive: nav (tablet & mobile)
   ========================================================================== */

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: var(--space-3) 0;
    gap: 0;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-5) 0 var(--space-3);
    margin-top: var(--space-3);
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--space-5);
  }

  .nav-links li + li {
    margin-top: 2px;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: var(--space-4) 0;
    font-size: var(--text-base);
    font-weight: 500;
    min-height: 48px;
    color: var(--text);
    border-radius: var(--radius);
    padding-left: var(--space-2);
  }

  .nav-links a:hover {
    background: var(--bg-muted);
  }

  .nav-cta {
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border);
  }

  .nav-cta .btn {
    min-height: 44px;
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  .logo-img {
    height: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-bottom: var(--space-10);
  }

  .footer {
    padding-top: var(--space-12);
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .footer-bottom {
    padding: var(--space-5) var(--space-4);
  }
}

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

  .footer-col h4 {
    margin-bottom: var(--space-3);
  }
}

/* ==========================================================================
   Animations (respect reduced motion)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .section-header,
  .how-step,
  .feature-card {
    animation: fadeInUp 0.6s var(--ease-out) backwards;
  }

  .how-step:nth-child(1) { animation-delay: 0.05s; }
  .how-step:nth-child(2) { animation-delay: 0.1s; }
  .how-step:nth-child(3) { animation-delay: 0.15s; }

  .feature-card:nth-child(1) { animation-delay: 0.02s; }
  .feature-card:nth-child(2) { animation-delay: 0.04s; }
  .feature-card:nth-child(3) { animation-delay: 0.06s; }
  .feature-card:nth-child(4) { animation-delay: 0.08s; }
  .feature-card:nth-child(5) { animation-delay: 0.1s; }
  .feature-card:nth-child(6) { animation-delay: 0.12s; }
  .feature-card:nth-child(7) { animation-delay: 0.14s; }
  .feature-card:nth-child(8) { animation-delay: 0.16s; }
  .feature-card:nth-child(9) { animation-delay: 0.18s; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
