/* Serohub landing – Veris-inspired layout */

:root {
  --bg: #f7f8fb;
  --bg-soft: #eef1f6;
  --surface: #ffffff;
  --ink: #0f1222;
  --ink-soft: #5b6178;
  --line: rgba(15, 18, 34, 0.08);
  --brand: #3d5afe;
  --brand-deep: #2a3fd4;
  --shadow-sm: 0 8px 24px rgba(15, 18, 34, 0.06);
  --shadow-md: 0 18px 50px rgba(15, 18, 34, 0.12);
  --shadow-btn: 0 10px 28px rgba(15, 18, 34, 0.22);
  --radius: 18px;
  --container: 1280px;
  --font-display: "Outfit", "Figtree", sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 32%, #ffffff 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(15, 18, 34, 0.04);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  justify-self: center;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: #1a1f33;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-color: rgba(15, 18, 34, 0.1);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #fff;
}

.btn-sm {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.hero-stage {
  position: relative;
  /* Orbit darf oben/seitlich raus, unten klar vom Demo getrennt */
  clip-path: inset(-55% -35% 8% -35%);
  padding: 2.25rem 0 3.5rem;
  min-height: clamp(380px, 50vh, 500px);
  display: grid;
  place-items: center;
}

.hero-bg {
  position: absolute;
  inset: -55% -20% 15%;
  pointer-events: none;
  z-index: 0;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 18, 34, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, #000 15%, transparent 72%);
  opacity: 0.55;
}

.orbit-ring {
  --ring-size: min(110vw, 960px);
  --orbit-duration: 56s;
  position: absolute;
  left: 50%;
  top: 36%;
  width: var(--ring-size);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px dashed rgba(15, 18, 34, 0.12);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.ring-a {
  --ring-size: min(110vw, 960px);
  --orbit-duration: 56s;
}

.ring-b {
  --ring-size: min(90vw, 760px);
  --orbit-duration: 42s;
}

.ring-c {
  --ring-size: min(70vw, 560px);
  --orbit-duration: 34s;
}

.orbit-trails {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  animation: orbit-spin var(--orbit-duration) linear infinite;
}

.ring-b .orbit-trails,
.ring-b .orbit-track {
  animation-direction: reverse;
}

.ring-b .orbit-icon {
  animation-direction: normal;
}

.trail {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: var(--dash) var(--gap);
  stroke-dashoffset: var(--offset);
  filter: drop-shadow(0 0 5px currentColor);
}

.trail-blue { stroke: #3b82f6; color: #3b82f6; }
.trail-violet { stroke: #8b5cf6; color: #8b5cf6; }
.trail-cyan { stroke: #06b6d4; color: #06b6d4; }
.trail-green { stroke: #22c55e; color: #22c55e; }
.trail-amber { stroke: #f59e0b; color: #f59e0b; }
.trail-pink { stroke: #ec4899; color: #ec4899; }
.trail-indigo { stroke: #6366f1; color: #6366f1; }
.trail-sky { stroke: #0ea5e9; color: #0ea5e9; }

.orbit-track {
  position: absolute;
  inset: 0;
  animation: orbit-spin var(--orbit-duration) linear infinite;
}

.orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px;
  /* exakt auf dem Ring-Rand: halbe Ringbreite */
  transform: rotate(var(--a)) translateY(calc(var(--ring-size) / -2));
}

.orbit-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(15, 18, 34, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 18, 34, 0.1);
  color: var(--ink);
  animation: orbit-spin var(--orbit-duration) linear infinite reverse;
}

.orbit-icon svg {
  width: 24px;
  height: 24px;
}

.icon-ticket { color: #ef4444; }
.icon-users { color: #3b82f6; }
.icon-device { color: #8b5cf6; }
.icon-project { color: #f59e0b; }
.icon-book { color: #10b981; }
.icon-order { color: #ec4899; }
.icon-time { color: #06b6d4; }
.icon-cal { color: #6366f1; }
.icon-link { color: #14b8a6; }
.icon-stock { color: #f97316; }
.icon-call { color: #22c55e; }
.icon-task { color: #0ea5e9; }

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding-block: 0.5rem 1rem;
  animation: rise-in 0.9s ease both;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(61, 90, 254, 0.1);
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 0.82rem;
}

.eyebrow-sep {
  opacity: 0.45;
}

.hero h1 {
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 16ch;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Scroll-driven live demo – klar unter dem Hero getrennt */

.demo-scroll {
  position: relative;
  z-index: 2;
  height: 220vh;
  margin-top: 0;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid transparent;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 2.5rem, var(--bg) 100%);
}

.demo-sticky {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  height: auto;
  display: grid;
  align-items: start;
  z-index: 2;
}

.demo-shell {
  width: min(100% - 2rem, 1360px);
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.demo-stage {
  --tilt: 8deg;
  --lift: 12px;
  --radius: 20px;
  --fade: 1;
  --live: 0;
  position: relative;
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border: 1px solid rgba(15, 18, 34, 0.08);
  border-bottom: 0;
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: perspective(1400px) rotateX(var(--tilt)) translateY(var(--lift));
  transform-origin: center top;
  will-change: transform;
}

.demo-stage.is-flat {
  box-shadow: 0 24px 60px rgba(15, 18, 34, 0.16);
  border-radius: 16px;
  border-bottom: 1px solid rgba(15, 18, 34, 0.1);
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: #f3f5f9;
  border-bottom: 0;
  opacity: 0;
  transition: opacity 0.25s ease, max-height 0.3s ease, padding 0.3s ease;
}

.demo-stage.is-live .demo-chrome {
  padding: 0.65rem 0.85rem;
  max-height: 48px;
  border-bottom: 1px solid rgba(15, 18, 34, 0.06);
  opacity: 0.95;
}

.demo-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5d9e2;
}

.demo-chrome span:nth-child(1) { background: #ff5f57; }
.demo-chrome span:nth-child(2) { background: #febc2e; }
.demo-chrome span:nth-child(3) { background: #28c840; }

.demo-chrome-url {
  margin: 0 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.demo-viewport {
  position: relative;
  aspect-ratio: 16 / 9.4;
  background: #f8fafc;
}

.demo-stage.is-live .demo-viewport {
  aspect-ratio: auto;
  height: min(70vh, 760px);
}

.demo-shot,
.demo-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.demo-shot {
  object-fit: cover;
  object-position: top center;
  opacity: calc(1 - var(--live));
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.demo-live {
  opacity: var(--live);
  pointer-events: none;
  background: #fff;
}

.demo-stage.is-live.is-frame-ready .demo-shot {
  visibility: hidden;
}

.demo-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 82%, var(--bg) 100%);
  opacity: var(--fade);
  pointer-events: none;
  z-index: 2;
}

.demo-hint {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 36rem;
}

.demo-hint[hidden] {
  display: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trust */

.trust {
  padding: 1.25rem 0 3.5rem;
  text-align: center;
}

.trust-text {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Foundation */

.foundation {
  padding: 1rem 0 4.5rem;
}

.foundation-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.85rem;
  max-width: 980px;
  margin: 0 auto;
}

.foundation-node {
  flex: 1 1 200px;
  max-width: 260px;
  padding: 1.4rem 1.2rem 1.5rem;
  border-radius: 22px;
  text-align: left;
  border: 1px solid transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.foundation-node.tone-blue {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
}
.foundation-node.tone-green {
  background: linear-gradient(145deg, #059669, #047857);
}
.foundation-node.tone-amber {
  background: linear-gradient(145deg, #d97706, #b45309);
}

.fn-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.fn-icon svg {
  width: 22px;
  height: 22px;
}

.foundation-node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.foundation-node span:not(.fn-icon) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.foundation-arrow {
  align-self: center;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #93c5fd, #34d399);
  border-radius: 2px;
  position: relative;
}

.foundation-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #34d399;
  border-top: 2px solid #34d399;
  transform: translateY(-50%) rotate(45deg);
}

/* Bento */

.bento {
  padding: 1rem 0 4.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-card {
  position: relative;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bento-card-lg {
  grid-row: span 2;
  background:
    radial-gradient(420px 240px at 80% 10%, rgba(96, 165, 250, 0.35), transparent 60%),
    linear-gradient(160deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 120%);
  color: #fff;
  border-color: transparent;
  justify-content: flex-end;
  min-height: 420px;
  gap: 0.45rem;
}

.bento-card-lg .bento-label { color: #93c5fd; }
.bento-card-lg p,
.bento-card-lg .bento-list { color: rgba(255, 255, 255, 0.8); }

.bento-card-wide {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  background:
    linear-gradient(120deg, #ecfeff 0%, #fff 45%, #fef3c7 100%);
  border-color: rgba(6, 182, 212, 0.2);
}

.bento-card-tickets {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.bento-card-team {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 70%);
  border-color: rgba(16, 185, 129, 0.22);
}

.bento-label {
  margin: 0.55rem 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.bento-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.bento-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.bento-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.bento-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.bento-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #60a5fa;
}

/* Mini mocks */

.mock-avatars {
  display: flex;
  margin-bottom: auto;
  padding-top: 0.25rem;
}

.mock-avatars span {
  width: 42px;
  height: 42px;
  margin-left: -10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  background: var(--c, #94a3b8);
  border: 2px solid rgba(15, 23, 42, 0.35);
}

.mock-avatars span:first-child { margin-left: 0; }

.mock-tickets {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.pill {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.pill-yellow { background: #fef08a; color: #854d0e; }
.pill-blue { background: #bfdbfe; color: #1e40af; }
.pill-green { background: #bbf7d0; color: #166534; }

.mock-checks {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.mock-checks label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.86rem;
  font-weight: 600;
}

.check {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 2px solid #86efac;
  flex-shrink: 0;
}

.check.on {
  background: #22c55e;
  border-color: #16a34a;
  box-shadow: inset 0 0 0 2px #fff;
}

.mock-shop {
  display: grid;
  gap: 0.55rem;
}

.shop-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 18, 34, 0.08);
  font-weight: 700;
  font-size: 0.92rem;
}

.shop-item div {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: rgba(61, 90, 254, 0.1);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.shop-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c);
}

/* Modules */

.modules {
  padding: 1rem 0 4.5rem;
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(61, 90, 254, 0.06), transparent 70%);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.module {
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.mod-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  color: #fff;
}

.mod-icon svg {
  width: 20px;
  height: 20px;
}

.module.tone-violet .mod-icon { background: #8b5cf6; }
.module.tone-cyan .mod-icon { background: #06b6d4; }
.module.tone-orange .mod-icon { background: #f59e0b; }
.module.tone-blue .mod-icon { background: #3b82f6; }
.module.tone-green .mod-icon { background: #10b981; }
.module.tone-pink .mod-icon { background: #ec4899; }
.module.tone-red .mod-icon { background: #ef4444; }
.module.tone-indigo .mod-icon { background: #6366f1; }

.module h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.module p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Extras */

.extras {
  padding: 1rem 0 4.5rem;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.extra {
  position: relative;
  padding: 1.3rem 1.15rem 1.35rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent, var(--brand));
  overflow: hidden;
}

.extra::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 72px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--brand)) 12%, white), transparent);
  pointer-events: none;
}

.extra > * { position: relative; }

.extra-badge {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent, var(--brand-deep));
  background: color-mix(in srgb, var(--accent, var(--brand)) 14%, white);
}

.extra.accent-blue { --accent: #2563eb; }
.extra.accent-teal { --accent: #0d9488; }
.extra.accent-violet { --accent: #7c3aed; }
.extra.accent-amber { --accent: #d97706; }
.extra.accent-green { --accent: #059669; }
.extra.accent-pink { --accent: #db2777; }
.extra.accent-red { --accent: #dc2626; }
.extra.accent-cyan { --accent: #0891b2; }

.extra h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

/* Fallback without color-mix */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .extra::before { background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent); }
  .extra-badge { background: #eff6ff; }
}

.section-head h2,
.workflow h2,
.why-more h3,
.cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem;
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.section-lead {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Workflow band */

.workflow {
  padding: 1rem 0 5rem;
}

.workflow-inner {
  text-align: center;
  padding: 3.25rem 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(61, 90, 254, 0.12), transparent 70%),
    linear-gradient(180deg, #f4f6ff 0%, #ffffff 100%);
  border: 1px solid rgba(61, 90, 254, 0.12);
}

.workflow h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.85rem;
}

.workflow-chain {
  margin: 0 auto 1.75rem;
  max-width: 46rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.workflow-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem auto 1.75rem;
  max-width: 52rem;
}

.workflow-pills span {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(61, 90, 254, 0.18);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 18, 34, 0.04);
}

/* Why */

.why {
  padding: 1rem 0 5rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.why-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.why-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.why-linked .why-icon { background: #dbeafe; color: #1d4ed8; }
.why-open .why-icon { background: #d1fae5; color: #047857; }
.why-team .why-icon { background: #ffedd5; color: #c2410c; }

.why-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.why-card p {
  margin: 0;
  color: var(--ink-soft);
}

.why-more {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #101528 0%, #1d2442 100%);
  color: #fff;
}

.why-more-copy p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.why-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.why-points li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
}

.why-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #8ea2ff;
  box-shadow: 0 0 0 4px rgba(142, 162, 255, 0.2);
}

/* CTA band */

.cta-band {
  padding: 0 0 5rem;
}

.cta-band-inner {
  text-align: center;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 980px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card-lg {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 280px;
  }

  .bento-card-wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .module-grid,
  .extras-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .foundation-arrow {
    display: none;
  }

  .why-grid,
  .why-more {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 0.5rem) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    justify-self: stretch;
  }

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

  .nav a {
    padding: 0.9rem 1rem;
    border-radius: 12px;
  }

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

  .nav-toggle {
    display: grid;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .orbit-ring {
    opacity: 0.7;
  }

  .orbit-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .orbit-item {
    width: 44px;
    height: 44px;
    margin: -22px;
  }

  .orbit-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .hero-stage {
    min-height: auto;
    padding: 1.5rem 0 2.5rem;
    clip-path: inset(-35% -20% 5% -20%);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .orbit-ring {
    top: 32%;
  }

  .ring-c {
    display: none;
  }

  .bento-grid,
  .module-grid,
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .demo-scroll {
    height: 200vh;
    padding-top: 2rem;
  }

  .demo-stage.is-live .demo-viewport {
    height: min(62vh, 560px);
  }

  .demo-chrome {
    display: none;
  }

  .workflow-inner {
    padding: 2.25rem 1.1rem;
    border-radius: 22px;
  }

  .btn {
    width: 100%;
  }

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

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

  .demo-scroll {
    height: auto;
  }

  .demo-sticky {
    position: relative;
    top: auto;
    height: auto;
    padding: 1.5rem 0 2rem;
  }

  .demo-stage {
    --tilt: 0deg !important;
    --lift: 0px !important;
    --fade: 0 !important;
    --live: 1 !important;
    transform: none !important;
    border-radius: 16px;
    border-bottom: 1px solid rgba(15, 18, 34, 0.1);
  }

  .demo-stage.is-live .demo-viewport,
  .demo-viewport {
    aspect-ratio: auto;
    height: min(70vh, 640px);
  }

  .demo-live {
    pointer-events: auto;
  }

  .orbit-track,
  .orbit-icon,
  .orbit-trails,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  .reveal {
    transform: none !important;
  }
}
