/* ===== Design tokens ===== */
:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f2f8f4;
  --color-dark: #102c27;
  --color-dark-2: #163f35;
  --color-primary: #288000;
  --color-primary-dark: #1d5c00;
  --color-accent: #51ff00;
  --color-text: #1c2b23;
  --color-text-muted: #647569;
  --color-border: #e4ede7;
  --color-footer-bg: #102c27;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-md: 0 10px 30px rgba(16, 44, 39, 0.06);
  --shadow-lg: 0 20px 50px rgba(16, 44, 39, 0.12);
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-w: 1160px;
}

/* ===== Dark theme ===== */
:root[data-theme="dark"] {
  --color-bg: #0a1512;
  --color-surface: #10201c;
  --color-surface-alt: #15271f;
  --color-dark: #eef5f1;
  --color-primary: #2b8c00;
  --color-text: #dbe8e1;
  --color-text-muted: #9fb3a9;
  --color-border: #22382f;
}
:root[data-theme="dark"] .site-header {
  background: rgba(10, 21, 18, 0.85);
}
:root[data-theme="dark"] .section-alt::before {
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(81, 255, 0, 0.05), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(81, 255, 0, 0.08), transparent 65%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 16px; color: var(--color-text-muted); }

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(40, 128, 0, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tag-light {
  color: var(--color-primary-dark);
  background: rgba(40, 128, 0, 0.1);
}

.section { padding: 120px 0; }
.section-alt {
  background: var(--color-surface-alt);
  position: relative;
  overflow: hidden;
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(81, 255, 0, 0.1), transparent 65%);
  pointer-events: none;
}
.section-alt > .container { position: relative; }
.section-dark {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.section-dark h2, .section-dark h3 { color: var(--color-dark); }
.section-dark p { color: var(--color-text-muted); }
.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
}
.section-contact { background: var(--color-surface); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(40, 128, 0, 0.35);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 0 0 rgba(18, 40, 29, 0);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.25s ease;
}
.site-header.is-scrolled .header-inner {
  height: 62px;
}
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 26px; width: auto; display: block; }
.logo-img-dark { display: none; }
:root[data-theme="dark"] .site-header .logo-img-light { display: none; }
:root[data-theme="dark"] .site-header .logo-img-dark { display: block; }

.theme-toggle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.theme-toggle:hover { border-color: var(--color-primary); }
.theme-toggle svg { width: 18px; height: 18px; color: var(--color-primary); }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}
.main-nav a:not(.nav-cta) {
  padding-bottom: 4px;
}
.main-nav a:hover,
.main-nav a.active { color: var(--color-primary); }
.nav-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  opacity: 0;
  transition: left 0.35s cubic-bezier(0.65, 0, 0.35, 1), width 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
  pointer-events: none;
}
@media (max-width: 720px) {
  .nav-indicator { display: none; }
}

/* ===== Scroll progress + back-to-top ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 200;
  will-change: transform;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
}
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}
.nav-cta:hover { background: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  will-change: transform;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(600px circle at 85% 10%, rgba(40, 128, 0, 0.1), transparent 60%),
    radial-gradient(500px circle at 10% 90%, rgba(81, 255, 0, 0.14), transparent 60%);
  transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
}
html.js .hero-bg::before {
  animation: hero-breathe 16s ease-in-out infinite;
}
@keyframes hero-breathe {
  0%, 100% { transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1); }
  50% { transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.06); }
}
.hero-inner { max-width: 780px; }
.eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero-lead { font-size: 1.1rem; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; margin: 32px 0 48px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-dark); }
.hero-stats span { font-size: 0.85rem; color: var(--color-text-muted); }
.hero-logos { display: flex; gap: 8px; margin-bottom: 6px; }
.hero-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: box-shadow 0.25s ease;
}
html.js .hero-logo {
  opacity: 0;
  animation: hero-logo-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-logo-1 { animation-delay: 0.55s; }
.hero-logo-2 { animation-delay: 0.65s; }
.hero-logo-3 { animation-delay: 0.75s; }
.hero-logo-4 { animation-delay: 0.85s; }
@keyframes hero-logo-in {
  from { opacity: 0; transform: translateY(8px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-logo-lift {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-logo:hover .hero-logo-lift { transform: translateY(-3px); }
.hero-logo:hover { box-shadow: var(--shadow-lg); }
.hero-logo img { width: 22px; height: 22px; object-fit: contain; }

/* ===== Trustbar ===== */
.trustbar {
  background: var(--color-surface);
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trustbar p {
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
}
.card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --hover-lift: 0px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.card:hover {
  --hover-lift: -6px;
  box-shadow: 0 26px 60px rgba(18, 40, 29, 0.14);
  border-color: rgba(40, 128, 0, 0.3);
}
.cards-grid .card:nth-child(1) { --delay: 0.26s; }
.cards-grid .card:nth-child(2) { --delay: 0.38s; }
.cards-grid .card:nth-child(3) { --delay: 0.5s; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon img { width: 30px; height: 30px; object-fit: contain; }
.card-icon svg { width: 30px; height: 30px; }
.card ul { padding-left: 18px; margin: 16px 0 0; color: var(--color-text-muted); font-size: 0.92rem; }
.card ul li { margin-bottom: 6px; }

.cards-supplement-label {
  margin: 40px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}
.cards-grid-compact { margin-top: 20px; }
.cards-grid-solo { grid-template-columns: minmax(0, 420px); justify-content: center; }
.card-compact { padding: 24px; }
.card-compact h3 { font-size: 1.05rem; }
.card-compact p { margin-bottom: 0; font-size: 0.92rem; }
.card-icon-sm { width: 40px; height: 40px; margin-bottom: 14px; }
.card-icon-sm svg { width: 20px; height: 20px; }
.card-icon-sm img { width: 26px; height: 26px; object-fit: contain; }

.app-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.app-badges-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-right: 4px;
}
.app-badge {
  --hover-lift: 0px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
}
.app-badge svg { flex-shrink: 0; }
.app-badge:hover {
  --hover-lift: -2px;
  border-color: var(--color-primary);
  background: var(--color-surface);
  color: var(--color-dark);
}
.app-badges .app-badge:nth-child(2) { --delay: 0.55s; }
.app-badges .app-badge:nth-child(3) { --delay: 0.6s; }
.app-badges .app-badge:nth-child(4) { --delay: 0.65s; }
.app-badges .app-badge:nth-child(5) { --delay: 0.7s; }
.app-badges .app-badge:nth-child(6) { --delay: 0.75s; }
.app-badges .app-badge:nth-child(7) { --delay: 0.8s; }
.app-badges .app-badge:nth-child(8) { --delay: 0.85s; }

/* ===== Zusätzliches Angebot (Teaser) ===== */
.teaser-band { padding: 56px 0; }
.teaser-box {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.teaser-box-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.teaser-box-content { flex: 1; min-width: 0; }
.teaser-box-content h3 { margin-top: 0; }
.teaser-box-content .check-list { margin-top: 18px; }
.teaser-box-content .btn { margin-top: 24px; }

/* ===== Split layout ===== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse .split-visual { order: 1; }
.split.reverse .split-text { order: 2; }

.founder {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.founder-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-md);
}
.founder-info { display: flex; flex-direction: column; }
.founder-info strong { color: var(--color-dark); font-size: 1.05rem; }
.founder-info span { color: var(--color-text-muted); font-size: 0.9rem; }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--color-dark);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-visual { display: flex; flex-direction: column; gap: 16px; }
.visual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
}
.visual-card:hover {
  box-shadow: 0 20px 50px rgba(18, 40, 29, 0.12);
  border-color: rgba(40, 128, 0, 0.3);
}
.visual-card span:last-child { color: var(--color-text-muted); font-weight: 600; font-size: 0.9rem; }
.visual-kpi {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-primary);
  min-width: 90px;
}
.visual-card-2 { margin-left: 32px; }
.visual-card-3 { margin-left: 64px; }
.split-visual .visual-card:nth-child(1) { --delay: 0.2s; }
.split-visual .visual-card:nth-child(2) { --delay: 0.32s; }
.split-visual .visual-card:nth-child(3) { --delay: 0.44s; }

.ms-panel {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.ms-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-dark);
}
.ms-row:last-child { border-bottom: none; }
.ms-panel .ms-row:nth-child(1) { --delay: 0s; }
.ms-panel .ms-row:nth-child(2) { --delay: 0.1s; }
.ms-panel .ms-row:nth-child(3) { --delay: 0.2s; }
.ms-panel .ms-row:nth-child(4) { --delay: 0.3s; }
.ms-panel .ms-row:nth-child(5) { --delay: 0.4s; }
.ms-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
  position: relative;
}
.steps-line {
  position: absolute;
  top: 43px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
  overflow: hidden;
}
.steps-line-fill {
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  transform: scaleX(var(--steps-progress, 1));
  transform-origin: left center;
}
.step {
  --hover-lift: 0px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  z-index: 1;
}
.step:hover {
  --hover-lift: -4px;
  box-shadow: var(--shadow-lg);
  border-color: rgba(40, 128, 0, 0.3);
}
.step-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.steps .step:nth-child(2) { --delay: 0.2s; }
.steps .step:nth-child(3) { --delay: 0.3s; }
.steps .step:nth-child(4) { --delay: 0.4s; }
.steps .step:nth-child(5) { --delay: 0.5s; }

/* ===== Quote ===== */
.quote {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: center;
  line-height: 1.5;
}
.quote footer {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ===== Contact ===== */
.contact-info { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-info li { margin-bottom: 10px; color: var(--color-text-muted); }
.contact-info a { color: var(--color-primary); font-weight: 600; }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.88rem; color: var(--color-dark); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(40, 128, 0, 0.15);
}
.form-note { margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--color-primary); min-height: 1em; }

.form-row-group { display: flex; gap: 16px; margin-bottom: 18px; }
.form-row-group .form-row { flex: 1; margin-bottom: 0; }

.form-checkbox-row { margin-bottom: 22px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-row .checkbox-label {
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.checkbox-label a { color: var(--color-primary); }

@media (max-width: 480px) {
  .form-row-group { flex-direction: column; gap: 18px; }
}

/* ===== Legal pages ===== */
.legal { padding-top: 64px; }
.legal-container { max-width: 760px; }
.legal h1 { margin-top: 0; }
.legal h2 {
  font-size: 1.1rem;
  margin-top: 36px;
  margin-bottom: 10px;
}
.legal p { margin-bottom: 4px; }
.legal-back { margin-top: 40px; }
.legal-back a { color: var(--color-primary); font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: #b9ccbf;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.footer-nav a { color: #b9ccbf; font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: 0.85rem; width: 100%; text-align: center; color: #7f9187; }

/* ===== Motion / Scroll-Reveal ===== */
.reveal {
  opacity: 1;
  transform: none;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(calc(24px + var(--parallax-y, 0px))) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(var(--parallax-y, 0px)) scale(1);
  will-change: auto;
}
/* More specific than .reveal.is-visible so these win instead of the plain
   translateY/scale above (equal-specificity source-order would otherwise
   let .reveal.is-visible clobber these, since it's declared right above). */
html.js .card.is-visible {
  transform: translateY(var(--hover-lift, 0px)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
html.js .step.is-visible {
  transform: translateY(var(--hover-lift, 0px));
}
html.js .app-badge.is-visible {
  transform: translateY(var(--hover-lift, 0px));
}
/* Once the entrance transition has finished, .settled (added by script.js on
   transitionend) swaps in a much shorter transform transition so hover
   micro-interactions (card lift, tilt) feel snappy instead of inheriting the
   slow 0.8s entrance speed. Same specificity as .reveal.is-visible above, so
   source order (this comes later) decides. */
html.js .reveal.settled {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Components that are both a .reveal target AND have their own hover
   transitions need their FULL property list restated here (a plain
   `transition` shorthand fully replaces, it doesn't merge with .reveal's),
   with each property carrying its own delay so hover response is instant
   while the entrance keeps its staggered --delay. */
html.js .card,
html.js .step,
html.js .app-badge,
html.js .visual-card {
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0s,
    border-color 0.4s ease 0s,
    background 0.25s ease 0s,
    color 0.25s ease 0s;
}
html.js .card.settled,
html.js .step.settled,
html.js .app-badge.settled {
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0s,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0s,
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0s,
    border-color 0.4s ease 0s,
    background 0.25s ease 0s,
    color 0.25s ease 0s;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card,
  .step,
  .visual-card,
  .app-badge,
  .hero-logo,
  .hero-logo-lift,
  .btn-primary,
  .back-to-top {
    transition: none;
  }
  html.js .hero-logo,
  html.js .hero-bg::before {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .card, .step {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --hover-lift: 0px;
  }
  .app-badge { --hover-lift: 0px; }
  .nav-indicator { transition: none; }
  .steps-line-fill { transform: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps-line {
    top: 0;
    bottom: 0;
    left: 18px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .steps-line-fill {
    transform: scaleY(var(--steps-progress, 1));
    transform-origin: top center;
  }
  .step { margin-left: 44px; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-visual, .split.reverse .split-text { order: initial; }
  .split-visual { margin-top: 32px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 96px 0 56px; }
  .section { padding: 64px 0; }
  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
  .visual-card-2, .visual-card-3 { margin-left: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .teaser-box { flex-direction: column; padding: 28px; }
}
