/* ============================================================
   gelingt.ai — Landing page styles
   Warm-neutrales Token-System, Light/Dark via data-theme.
   ============================================================ */

/* ---------- Fonts (lokal gehostet, ITF Free Font License) ---------- */
@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* core neutrals (warm) */
  --n-0: #ffffff;
  --n-50: #f6f6f3;
  --n-100: #edede8;
  --n-150: #dbdbd2;
  --n-200: #d0d0c8;
  --n-500: #c0c0c0;
  --n-550: #949494;
  --n-600: #747474;
  --n-800: #474747;
  --n-850: #353535;
  --n-900: #292929;
  --n-950: #191919;
  --n-1000: #000000;

  --status-success: #4cc02b;
  --status-failure: #ce1919;
  --accent-blue: #146ef5;

  /* semantic */
  --bg: var(--n-50);
  --surface-1: var(--n-100);        /* cards, nav island */
  --surface-2: var(--n-150);        /* bento neutral tile */
  --surface-3: #e9e9e1;             /* icon boxes, arrows */
  --surface-flip: var(--n-950);
  --card: var(--n-0);
  --text-heading: var(--n-900);
  --text-heading-muted: color-mix(in srgb, var(--n-900) 50%, transparent);
  --text-body: var(--n-850);
  --text-muted: color-mix(in srgb, var(--n-850) 70%, transparent);
  --text-faint: color-mix(in srgb, var(--n-850) 55%, transparent);
  --border: rgba(0, 0, 0, 0.12);
  --border-soft: rgba(0, 0, 0, 0.08);
  --btn-bg: var(--n-950);
  --btn-text: #ffffff;
  --btn-secondary-bg: #dfdfd7;
  --btn-secondary-hover: #d3d3ca;
  --badge-bg: rgba(0, 0, 0, 0.1);
  --input-bg: var(--n-0);

  /* radii */
  --r-xs: 3px;
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 18px;
  --r-pill: 200px;

  /* spacing */
  --gap-1: 3px;  --gap-2: 6px;  --gap-3: 9px;  --gap-4: 12px;
  --gap-5: 18px; --gap-6: 24px; --gap-7: 36px; --gap-8: 48px;
  --gap-9: 60px; --gap-10: 72px; --gap-11: 96px;
  --section-pad: 84px;

  /* type scale (factor 1.19, base 16) */
  --fs-small: 14px;
  --fs-body: 16px;
  --fs-lead: 19px;
  --fs-h5: 22.7px;
  --fs-h4: 27px;
  --fs-h3: 32.1px;
  --fs-h2: 38.2px;
  --fs-h1: 45.4px;
  --fs-display: 64.3px;

  --font: "Switzer", Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.6, 0.2, 1);
}

[data-theme="dark"] {
  --bg: var(--n-950);
  --surface-1: var(--n-900);
  --surface-2: var(--n-850);
  --surface-3: #313131;
  --surface-flip: var(--n-0);
  --card: var(--n-950);
  --text-heading: #ffffff;
  --text-heading-muted: rgba(255, 255, 255, 0.5);
  --text-body: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.15);
  --border-soft: rgba(255, 255, 255, 0.1);
  --btn-bg: #ffffff;
  --btn-text: var(--n-950);
  --btn-secondary-bg: #353535;
  --btn-secondary-hover: #424242;
  --badge-bg: rgba(255, 255, 255, 0.12);
  --input-bg: var(--n-950);
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  padding-top: 72px; /* room for the floating nav island */
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--text-heading); }
p { margin: 0; }

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

button {
  font-family: inherit;
  font-size: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--text-heading);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1128px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--section-pad); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 24px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: var(--fs-body);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn .btn-label { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(148, 148, 148, 0.35);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.35s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(0.98); }

.btn--small { height: 36px; padding-inline: 18px; font-size: 15px; }
.btn--large { height: 60px; padding-inline: 36px; }
.btn--secondary { background: var(--btn-secondary-bg); color: var(--text-heading); }
.btn--secondary::after { background: rgba(0, 0, 0, 0.07); }
.btn--on-photo { background: #ffffff; color: var(--n-950); }

/* ---------- Nav ---------- */
.navbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-island {
  pointer-events: auto;
  width: min(712px, calc(100vw - 24px));
  height: 60px;
  background: var(--surface-1);
  border-radius: var(--r-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 18px 12px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.is-scrolled .nav-island { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}
.nav-logo svg { width: 18px; height: 18px; color: var(--text-heading); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-s);
}
.menu-toggle .menu-bars { display: grid; gap: 5px; width: 22px; }
.menu-toggle .menu-bars span {
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mega menu */
.nav-menu {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(1080px, calc(100vw - 24px));
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
  z-index: 999;
}
.nav-menu.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.nav-menu-links { padding: 12px; display: flex; flex-direction: column; }
.nav-menu-primary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }
.nav-menu-primary a { font-size: var(--fs-h4); color: var(--text-heading); width: fit-content; }
.nav-menu-primary a:hover { color: var(--text-muted); }
.nav-menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.nav-menu-cols a { font-size: 15px; color: var(--text-body); width: fit-content; padding-block: 2px; }
.nav-menu-cols a:hover { text-decoration: underline; }

.nav-menu-promo {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  min-height: 348px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(43, 68, 155, 0.55), transparent 60%),
    radial-gradient(120% 90% at 15% 90%, #8a6a43 0%, transparent 65%),
    linear-gradient(160deg, #c9a87c 0%, #b08d5f 45%, #33427c 100%);
}
.nav-menu-promo .promo-title { color: #fff; font-size: var(--fs-h5); line-height: 1.35; }
.nav-menu-promo .promo-title .muted { color: rgba(255, 255, 255, 0.75); }

/* ---------- Announcement ---------- */
.announcement { padding-block: 18px; }
.announcement-text {
  text-align: center;
  font-size: 15px;
  color: var(--text-body);
}
.link-underline { text-decoration: underline; text-underline-offset: 3px; }
.link-underline:hover { color: var(--text-heading-muted); }

/* ---------- Hero ---------- */
.hero-stack { display: flex; flex-direction: column; align-items: center; gap: var(--gap-7); }
.hero-title { text-align: center; }
.hero-title h1,
.heading-h1 {
  font-size: clamp(34px, 3.6vw, var(--fs-h1));
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.muted-heading { color: var(--text-heading-muted); }

.bento {
  margin-top: var(--gap-10);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  border-radius: var(--r-m);
  overflow: hidden;
}
.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 280px;
  overflow: hidden;
}
.tile--neutral { background: var(--surface-2); }

/* painterly art tiles (all CSS, no image assets) */
.art { position: relative; }
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.art--portrait {
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(255, 224, 178, 0.9), transparent 60%),
    radial-gradient(70% 80% at 20% 80%, #6b4a2f 0%, transparent 70%),
    radial-gradient(60% 50% at 85% 75%, #3c2a1c 0%, transparent 65%),
    linear-gradient(150deg, #c99a63 0%, #a5714a 55%, #7c5433 100%);
}
.art--collage {
  background:
    radial-gradient(55% 45% at 78% 18%, #e8862f 0%, transparent 62%),
    radial-gradient(48% 42% at 88% 55%, #d3541f 0%, transparent 60%),
    radial-gradient(60% 55% at 15% 45%, #8c8cc0 0%, transparent 58%),
    radial-gradient(70% 60% at 30% 90%, #5d8a4e 0%, transparent 65%),
    linear-gradient(140deg, #4d7a45 0%, #74a05e 40%, #cf7a2c 100%);
}
.art--meadow {
  background:
    radial-gradient(70% 55% at 80% 15%, #c96a5a 0%, transparent 60%),
    radial-gradient(60% 50% at 15% 25%, #e5b8ad 0%, transparent 60%),
    radial-gradient(80% 70% at 50% 95%, #5f8f47 0%, transparent 70%),
    linear-gradient(160deg, #d9a394 0%, #93b06d 60%, #6f9c4f 100%);
}
.art--sky {
  background:
    radial-gradient(70% 50% at 25% 20%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(90% 70% at 80% 85%, #2e5fb8 0%, transparent 70%),
    linear-gradient(165deg, #b8d1ea 0%, #7fa8d9 45%, #4a7ac4 100%);
}
.art--forest {
  background:
    radial-gradient(60% 50% at 80% 20%, #d9dfd0 0%, transparent 55%),
    radial-gradient(80% 70% at 20% 80%, #0d2416 0%, transparent 75%),
    linear-gradient(155deg, #35543a 0%, #1c3826 55%, #0f2718 100%);
}
.art--amber {
  background:
    radial-gradient(60% 50% at 20% 15%, #f0e0c8 0%, transparent 55%),
    radial-gradient(70% 60% at 85% 80%, #a34c14 0%, transparent 65%),
    linear-gradient(150deg, #eabd7a 0%, #d98f3e 50%, #b05f1d 100%);
}
.art--studio {
  background:
    radial-gradient(60% 45% at 75% 25%, rgba(160, 200, 220, 0.5), transparent 60%),
    radial-gradient(80% 70% at 20% 85%, #101c22 0%, transparent 70%),
    linear-gradient(155deg, #3e5a66 0%, #22343d 55%, #131f26 100%);
}
.art--walnut {
  background:
    radial-gradient(85% 70% at 70% 90%, #7a4b1e 0%, transparent 65%),
    radial-gradient(60% 45% at 25% 15%, rgba(122, 82, 40, 0.5), transparent 60%),
    linear-gradient(160deg, #241304 0%, #33200b 55%, #1c0f03 100%);
}
.art--marble {
  background:
    radial-gradient(45% 60% at 20% 30%, #b9bec2 0%, transparent 60%),
    radial-gradient(50% 45% at 75% 20%, #8f979d 0%, transparent 55%),
    radial-gradient(60% 50% at 60% 75%, #d8d4cc 0%, transparent 60%),
    radial-gradient(35% 30% at 35% 85%, #a9a396 0%, transparent 55%),
    linear-gradient(140deg, #c9cccd 0%, #9aa1a6 50%, #d3d0c8 100%);
}
.art--banner {
  background:
    radial-gradient(60% 90% at 8% 40%, #6f95c8 0%, transparent 60%),
    radial-gradient(50% 80% at 38% 60%, #a9c3e0 0%, transparent 55%),
    radial-gradient(45% 80% at 62% 45%, #e0b64e 0%, transparent 60%),
    radial-gradient(50% 85% at 88% 55%, #7fae6a 0%, transparent 60%),
    linear-gradient(100deg, #86a7cf 0%, #d9c06e 55%, #93b877 100%);
}

/* floating mini-cards inside tiles */
.mini-card {
  position: absolute;
  background: var(--n-0);
  color: var(--n-900);
  border-radius: var(--r-m);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.tile .supplier-card {
  inset: 14% 14%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.supplier-card .title { font-size: 18px; color: var(--n-900); }
.supplier-card .sub { font-size: 16px; color: rgba(41, 41, 41, 0.55); margin-top: 4px; }
.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f0eb;
  border-radius: var(--r-s);
  padding: 10px;
}
.chip-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(150deg, #27ae60, #148044);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.chip .chip-name { font-size: 14px; color: var(--n-900); line-height: 1.3; }
.chip .chip-sub { font-size: 13px; color: rgba(41, 41, 41, 0.55); }

.units-card {
  top: 20%;
  right: 12%;
  left: 22%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.units-card .label { font-size: 14px; color: rgba(41, 41, 41, 0.55); }
.units-card .value { font-size: 18px; color: var(--n-900); }

.automation-card {
  top: 39%;
  right: 12%;
  left: 22%;
  padding: 18px 20px;
}
.automation-card .label { font-size: 13px; color: rgba(41, 41, 41, 0.55); margin-bottom: 12px; }
.check-row { display: flex; align-items: center; gap: 12px; padding-block: 7px; font-size: 16px; color: var(--n-900); }
.checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
}
.checkbox.is-checked { background: var(--n-950); border-color: var(--n-950); color: #fff; }
.checkbox svg { width: 11px; height: 11px; }

/* ---------- Intro statement ---------- */
.intro-text {
  max-width: 804px;
  margin-left: 138px;
  font-size: clamp(24px, 2.4vw, var(--fs-h3));
  line-height: 1.3;
  color: var(--text-heading);
}
.intro-text .intro-lead { display: block; }
.intro-text .muted { color: var(--text-heading-muted); }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; align-items: center; gap: var(--gap-8); }
.logo-strip-label { flex-shrink: 0; font-size: var(--fs-body); color: var(--text-body); }
.marquee { overflow: hidden; flex: 1; min-width: 0; width: 100%; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 84px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.brand-mark { display: flex; align-items: center; gap: 8px; color: var(--text-heading); opacity: 0.85; white-space: nowrap; }
.brand-mark--tool { font-size: 19px; letter-spacing: 0.01em; font-weight: 500; }

/* ---------- Feature showcase ---------- */
.showcase { display: grid; grid-template-columns: 344px 1fr; gap: var(--gap-6); align-items: start; }
.showcase-nav { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 10px; }
.showcase-nav a {
  font-size: var(--fs-h5);
  color: var(--text-heading-muted);
  transition: color 0.3s ease;
  width: fit-content;
}
.showcase-nav a.is-active,
.showcase-nav a:hover { color: var(--text-heading); }

.showcase-cards { display: flex; flex-direction: column; gap: var(--gap-6); }
.feature-card {
  background: var(--surface-1);
  border-radius: var(--r-m);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  transition: background-color 0.3s ease;
}
.feature-card .fc-text { max-width: 320px; padding: 14px 0 0 14px; }
.fc-title { font-size: var(--fs-body); color: var(--text-heading); margin-bottom: 10px; font-weight: 500; }
.fc-desc { font-size: var(--fs-body); color: var(--text-muted); }
.fc-art {
  position: relative;
  width: 46%;
  flex-shrink: 0;
  border-radius: var(--r-m);
  overflow: hidden;
  min-height: 328px;
}

.people-list {
  position: absolute;
  inset: auto 10% 50% 10%;
  transform: translateY(50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.person-row {
  background: #fff;
  border-radius: var(--r-m);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.avatar--1 { background: linear-gradient(140deg, #2c614f, #17442f); }
.avatar--2 { background: linear-gradient(140deg, #7a4a2c, #4d2c17); }
.avatar--3 { background: linear-gradient(140deg, #3c4a63, #1f2b42); }
.person-row .p-name { font-size: 15px; color: var(--n-900); line-height: 1.25; }
.person-row .p-role { font-size: 13px; color: rgba(41, 41, 41, 0.55); }
.person-row .checkbox { margin-left: auto; }

.file-stack {
  position: absolute;
  inset: auto 10% 50% 10%;
  transform: translateY(50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-row {
  background: #fff;
  border-radius: var(--r-m);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  font-size: 15px;
  color: var(--n-900);
}
.file-row .ext { margin-left: auto; font-size: 13px; color: rgba(41, 41, 41, 0.55); }
.analysis-card {
  background: #fff;
  border-radius: var(--r-m);
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.analysis-card .a-title { font-size: 17px; color: var(--n-900); }
.analysis-card .a-sub { font-size: 15px; color: rgba(41, 41, 41, 0.55); margin-top: 2px; }
.analysis-card .btn { width: 100%; margin-top: 16px; height: 42px; background: var(--n-950); color: #fff; font-size: 15px; }

.integration-card {
  position: absolute;
  inset: auto 10% 50% 10%;
  transform: translateY(50%);
  background: #fff;
  border-radius: var(--r-m);
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.integration-card .chip { margin-bottom: 42px; }
.integration-card .perm-label { font-size: 13px; color: rgba(41, 41, 41, 0.55); padding-inline: 6px; margin-bottom: 6px; }
.integration-card .check-row { padding-inline: 6px; }

.perf-card {
  position: absolute;
  inset: auto 10% 50% 10%;
  transform: translateY(50%);
  background: #fff;
  border-radius: var(--r-m);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.perf-card .a-title { font-size: 17px; color: var(--n-900); }
.perf-card .a-sub { font-size: 15px; color: rgba(41, 41, 41, 0.55); }
.bars { display: flex; align-items: flex-end; gap: 10px; margin-top: 40px; height: 96px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; border-radius: 6px; background: #e6e6df; }
.bar.is-hot i { background: var(--n-950); }
.bar span { font-size: 12px; color: rgba(41, 41, 41, 0.55); }

/* ---------- Stats carousel ---------- */
.section-title { font-size: clamp(26px, 2.4vw, var(--fs-h3)); line-height: 1.3; }
.section-title .muted { color: var(--text-heading-muted); }

.stats-track {
  display: flex;
  gap: 24px;
  margin-top: var(--gap-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.stats-track::-webkit-scrollbar { display: none; }
.stat-card {
  flex: 0 0 min(523px, 86vw);
  scroll-snap-align: start;
  border-radius: var(--r-m);
  padding: 24px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.stat-card--1 { border: 1px solid rgba(123, 160, 89, 0.5);
  background:
    radial-gradient(70% 60% at 15% 10%, rgba(232, 200, 74, 0.5), transparent 60%),
    radial-gradient(70% 70% at 85% 80%, rgba(140, 160, 170, 0.45), transparent 65%),
    linear-gradient(140deg, #eee3b8 0%, #cfd9b4 55%, #c3ccc2 100%);
}
.stat-card--2 { border: 1px solid rgba(208, 138, 68, 0.5);
  background:
    radial-gradient(60% 55% at 20% 75%, rgba(158, 186, 222, 0.55), transparent 60%),
    radial-gradient(65% 60% at 85% 20%, rgba(233, 160, 82, 0.5), transparent 65%),
    linear-gradient(140deg, #f2d9bd 0%, #e8cdb4 45%, #d8ccc4 100%);
}
.stat-card--3 { border: 1px solid rgba(207, 169, 51, 0.5);
  background:
    radial-gradient(70% 60% at 80% 15%, rgba(240, 200, 90, 0.55), transparent 60%),
    linear-gradient(140deg, #f2dc9e 0%, #ecd28a 50%, #e5cea2 100%);
}
.stat-card .s-title { font-size: var(--fs-body); font-weight: 500; color: var(--n-900); margin-bottom: 6px; }
.stat-card .s-desc { font-size: var(--fs-body); color: rgba(41, 41, 41, 0.62); max-width: 360px; }
.stat-card .s-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.stat-card .s-value { font-size: clamp(40px, 4vw, 56px); color: #232323; letter-spacing: -0.02em; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.stat-card .s-value svg { width: 26px; height: 26px; color: rgba(35, 35, 35, 0.6); }
.stat-card .s-brand { color: #232323; }

.carousel-arrows { display: flex; gap: 8px; margin-top: 18px; }
.arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--text-heading);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.arrow-btn:hover { background: var(--n-150); }
[data-theme="dark"] .arrow-btn:hover { background: #3a3a3a; }
.arrow-btn[disabled] { opacity: 0.35; cursor: default; }
.arrow-btn svg { width: 14px; height: 14px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  margin-top: var(--gap-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 48px;
}
.fg-item { display: flex; gap: 18px; align-items: flex-start; }
.fg-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-s);
  background: var(--surface-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-heading);
  transition: background-color 0.3s ease;
}
.fg-icon svg { width: 30px; height: 30px; }
.fg-title { font-size: var(--fs-body); font-weight: 500; color: var(--text-heading); margin-bottom: 6px; }
.fg-desc { font-size: 15px; color: var(--text-muted); max-width: 250px; }

/* ---------- Split stat ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: var(--r-m);
  overflow: hidden;
}
.split-pane { position: relative; min-height: 537px; }

.activity-card {
  position: absolute;
  left: 26%;
  top: 26%;
  width: min(260px, 70%);
  background: #fff;
  border-radius: var(--r-m);
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.activity-card .a-title { font-size: 18px; color: var(--n-900); }
.activity-card .a-sub { font-size: 16px; color: rgba(41, 41, 41, 0.5); margin-top: 2px; }
.heat-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 7px; }
.heat-grid i { aspect-ratio: 1; border-radius: 3px; background: #e5e5dc; }
.heat-grid i.hot { background: var(--n-950); }
.heat-grid i.warm { background: #cacabf; }

.split-stat { padding: 48px; color: #fff; display: flex; flex-direction: column; }
.split-stat .r-label { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.split-stat .r-value { font-size: clamp(48px, 5vw, 68px); line-height: 1.05; margin-top: 14px; display: flex; align-items: baseline; gap: 10px; color: #fff; }
.split-stat .r-value svg { width: 34px; height: 34px; color: rgba(255, 255, 255, 0.9); }
.split-stat .r-desc { margin-top: 14px; font-size: var(--fs-body); color: rgba(255, 255, 255, 0.82); max-width: 260px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  margin-top: var(--gap-9);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  position: relative;
  background: var(--surface-1);
  border-radius: var(--r-m);
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  min-height: 476px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}
.price-card .p-name { font-size: var(--fs-h4); color: var(--text-heading); }
.price-card .p-price { font-size: var(--fs-h5); color: var(--text-heading-muted); margin-top: 4px; }
.price-card .p-includes { font-size: 15px; color: var(--text-muted); margin-top: 44px; margin-bottom: 16px; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.price-card li { font-size: 15px; color: var(--text-body); display: flex; align-items: center; gap: 11px; }
.price-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--text-heading);
  flex-shrink: 0;
}
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card--popular::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #b7aee3 0%, #8fae7a 45%, #274326 100%);
}
.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--badge-bg);
  color: var(--text-body);
  font-size: 14px;
  border-radius: var(--r-s);
  padding: 4px 12px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 344px 1fr; gap: var(--gap-6); align-items: start; }
.faq-label { font-size: 18px; color: var(--text-heading); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 19px;
  font-size: 16.5px;
  color: var(--text-heading);
  text-align: left;
}
.faq-q svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--text-heading); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { font-size: var(--fs-body); color: var(--text-muted); max-width: 640px; padding-bottom: 24px; }
.faq-a p + p { margin-top: 12px; }

/* ---------- Testimonial ---------- */
.testimonial {
  display: grid;
  grid-template-columns: 2fr 3fr;
  border-radius: var(--r-m);
  overflow: hidden;
  min-height: 430px;
}
.testimonial .t-art { position: relative; }
.testimonial .t-body {
  background: var(--surface-1);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}
.t-quote-title { font-size: var(--fs-h5); color: var(--text-heading); font-weight: 500; }
.t-quote { font-size: var(--fs-h5); color: var(--text-heading-muted); line-height: 1.4; max-width: 460px; margin-top: 2px; }
.t-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.t-value { font-size: clamp(40px, 4vw, 56px); color: var(--text-heading); line-height: 1; letter-spacing: -0.02em; }
.t-value-label { font-size: 14px; color: var(--text-muted); margin-top: 10px; }

/* ---------- CTA ---------- */
.cta-stack { display: flex; flex-direction: column; align-items: center; gap: var(--gap-7); text-align: center; }
.heading-display { font-size: clamp(40px, 4.6vw, var(--fs-display)); line-height: 1.1; letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.footer { padding-block: var(--section-pad); }
.footer-banner {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  height: 240px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-banner .fb-title { font-size: var(--fs-h3); line-height: 1.25; color: #fff; }
.footer-banner .fb-title .muted { color: rgba(255, 255, 255, 0.75); }
.footer-banner .btn { align-self: flex-end; background: var(--n-950); color: #fff; }

.footer-grid {
  margin-top: var(--gap-11);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.68fr;
  gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .col-title { font-size: 15px; color: var(--text-heading); font-weight: 500; }
.footer-col a { font-size: 15px; color: var(--text-body); width: fit-content; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.newsletter-desc { font-size: 15px; color: var(--text-muted); max-width: 340px; }
.newsletter-form { display: flex; margin-top: 6px; }
.newsletter-form input {
  flex: 1;
  height: 48px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding-inline: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-body);
  min-width: 0;
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form input:focus { outline: none; border-color: var(--text-heading); }
.newsletter-form button {
  height: 48px;
  padding-inline: 12px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 15px;
  border-radius: 0 4px 4px 0;
}
.newsletter-form button:hover { background: #0f5ed6; }
.newsletter-note { font-size: 15px; color: var(--text-muted); }

.footer-bottom {
  margin-top: var(--gap-11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copyright { font-size: 15px; color: var(--text-muted); }
.footer-socials { display: flex; gap: 24px; }
.footer-socials a { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-body); }
.footer-socials a:hover { color: var(--text-heading-muted); }
.footer-socials svg { width: 18px; height: 18px; }

.theme-toggle {
  display: flex;
  gap: 2px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  padding: 3px;
}
.theme-toggle button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-heading);
  opacity: 0.7;
}
.theme-toggle button.is-active { background: var(--n-150); opacity: 1; }
[data-theme="dark"] .theme-toggle button.is-active { background: #454545; }
.theme-toggle svg { width: 15px; height: 15px; }

.footer-legal {
  margin-top: var(--gap-11);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---------- Legal pages ---------- */
.legal-main { padding: 36px 0 var(--section-pad); }
.legal-content { max-width: 720px; }
.legal-content h1 { font-size: clamp(26px, 2.4vw, var(--fs-h3)); margin-bottom: 8px; }
.legal-content .legal-lead { color: var(--text-muted); font-size: 15px; margin-bottom: 40px; }
.legal-content h2 { font-size: 17px; font-weight: 500; margin: 40px 0 10px; }
.legal-content p { color: var(--text-muted); margin-bottom: 10px; }
.legal-content .fact { color: var(--text-body); margin-bottom: 2px; }
.legal-content ul { margin: 0 0 10px; padding-left: 20px; color: var(--text-muted); }
.legal-content li { margin-bottom: 6px; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--text-heading); }
.legal-back { display: inline-flex; margin-top: 48px; font-size: 15px; color: var(--text-body); }
.legal-back:hover { text-decoration: underline; }

/* ---------- Reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  :root { --section-pad: 72px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide-hidden { display: none; }
  .intro-text { margin-left: 0; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
  .showcase-nav a { font-size: 18px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .split { grid-template-columns: 1fr; }
  .split-pane { min-height: 420px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
  .price-card .p-includes { margin-top: 28px; }
  .price-card .btn { margin-top: 28px; }
  .faq { grid-template-columns: 1fr; gap: 12px; }
  .testimonial { grid-template-columns: 1fr; }
  .testimonial .t-art { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { grid-template-columns: 1fr; top: 78px; max-height: calc(100dvh - 96px); overflow: auto; }
  .nav-menu-promo { min-height: 240px; }
}

@media (max-width: 767px) {
  :root { --section-pad: 60px; }
  body { padding-top: 66px; font-size: 15px; }
  .navbar { top: 8px; }
  .nav-island { height: 56px; }
  .hero-title .heading-h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 320px; aspect-ratio: auto; height: 340px; }
  .logo-strip { flex-direction: column; align-items: flex-start; gap: 24px; }
  .feature-card { flex-direction: column; min-height: 0; }
  .feature-card .fc-text { max-width: none; }
  .fc-art { width: 100%; min-height: 300px; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-banner { height: auto; min-height: 220px; gap: 36px; }
  .footer-banner .btn { align-self: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .t-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .testimonial .t-body { padding: 28px 24px; }
  .split-stat { padding: 28px 24px; }
  .activity-card { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .stat-card { flex-basis: 86vw; }
}
