/* Base */
:root {
  --bg: #0b1020;
  --bg-2: #0e1530;
  --surface: #101938;
  --text: #e8ecf7;
  --muted: #aab4cf;
  --primary: #6d5efc;
  --primary-600: #5a4be8;
  --primary-700: #4c3fd0;
  /* Links */
  --link: #8fb7ff;           /* helleres Blau */
  --link-hover: #b8d4ff;     /* Hover-Blau */
  --border: rgba(255, 255, 255, 0.08);
  --ring: rgba(109, 94, 252, 0.45);
  --success: #22c55e;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 10% -10%, #1b2350 0%, transparent 50%),
    radial-gradient(900px 600px at 120% 10%, #2b1657 0%, transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
}
img, svg, video { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}
.section.alt { background: rgba(255, 255, 255, 0.02); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 3.5vw + 1rem, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); margin: 0 0 12px; }

/* Header */
.site-header {
  position: fixed; top: 0; z-index: 40;
  width: 100%;
  background: rgba(10, 14, 32, 0.6);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.brand-mark { display: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 4px 16px rgba(0,0,0,.35); }
.brand-text { letter-spacing: 0.2px; }

.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.main-nav > a:not(.btn):hover { color: var(--text); }
.main-nav .cta { margin-left: 6px; color: #fff; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 38px; border: 1px solid var(--border); background: transparent; border-radius: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: 0.2s ease; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 12px; text-decoration: none; font-weight: 700; border: 1px solid transparent; transition: transform .15s ease, filter .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #22d3ee); border-color: transparent; box-shadow: 0 10px 28px rgba(109, 94, 252, 0.35), 0 0 0 1px rgba(255,255,255,0.04) inset; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 14px 36px rgba(109,94,252,.45), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.08); box-shadow: inset 0 1px rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }

/* Hero */
.hero { position: relative; overflow: clip; padding: 120px 0 100px; }
.hero .stat { display: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.hero .subtitle { font-size: 1.1rem; }
.hero .actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-bg { position: absolute; inset: -2px; background:
  radial-gradient(600px 400px at 20% 10%, rgba(109,94,252,0.25) 0%, transparent 60%),
  radial-gradient(800px 500px at 90% 30%, rgba(34,211,238,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.hero-bg::after { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg at 50% 50%, rgba(109,94,252,.15), rgba(34,211,238,.12), rgba(109,94,252,.15)); animation: spin 18s linear infinite; filter: blur(60px); opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

.mockup { width: 100%; aspect-ratio: 4/3; border-radius: 18px; border: 1px solid var(--border); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.45); display: grid; place-items: center; position: relative; overflow: hidden; }
.mockup .screen { width: 86%; height: 74%; border-radius: 12px; background:
  linear-gradient(90deg, rgba(255,255,255,.06) 0 30%, transparent 30% 60%, rgba(255,255,255,.06) 60% 100%),
  linear-gradient(180deg, #121a3a, #0b1230);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 10px 30px rgba(0,0,0,.35);
  position: relative; overflow: hidden;
}
.lottie { position: absolute; inset: 8% 6%; }
.mockup .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.06) 45%, transparent 60%); transform: translateX(-100%); animation: shimmer 4s ease-in-out infinite; }
@keyframes shimmer { 50% { transform: translateX(100%);} }

/* Animated wireframe inside hero mockup */
.wireframe { position: absolute; inset: 8% 6%; display: grid; grid-template-rows: auto 1fr; gap: 8px; overflow: hidden; }
.wf-topbar { height: 20px; border: 1px solid var(--border); border-radius: 6px; background: rgba(255,255,255,.04); display: grid; grid-template-columns: 100px 1fr 70px; gap: 6px; align-items: center; padding: 4px 6px; }
.wf-topbar .wf-logo { height: 10px; border-radius: 4px; background: rgba(255,255,255,.08); }
.wf-topbar .wf-menu { justify-self: end; width: 60px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.wf-viewport { position: relative; overflow: hidden; }
.wf-scroll { display: grid; gap: 8px; padding-bottom: 8px; animation: wf-autoscroll 14s linear infinite alternate; will-change: transform; }
.wf-body { border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)); padding: 8px; display: grid; grid-template-columns: 140px 1fr; gap: 8px; overflow: hidden; }
.wf-sidebar { display: grid; gap: 6px; }
.wf-line { height: 10px; border-radius: 4px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; }
.wf-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%); transform: translateX(-100%); animation: wf-shimmer 3.5s ease-in-out infinite; }
.wf-main { display: grid; grid-template-rows: auto 1fr; gap: 8px; overflow: hidden; }
.wf-hero { height: 64px; border-radius: 8px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; }
.wf-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%); transform: translateX(-100%); animation: wf-shimmer 3.5s ease-in-out infinite; }
.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.wf-card { height: 42px; border-radius: 8px; background: rgba(255,255,255,.05); position: relative; overflow: hidden; }
.wf-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%); transform: translateX(-100%); animation: wf-shimmer 3.5s ease-in-out infinite; }
@keyframes wf-shimmer { 50% { transform: translateX(100%);} }
@keyframes wf-autoscroll { from { transform: translateY(0); } to { transform: translateY(-45%); } }

/* About */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.price-grid { align-items: start; }

.avatar {
  width: clamp(180px, 30vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 36px rgba(0,0,0,.35);
  transition: transform .35s ease, box-shadow .35s ease;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform .4s ease;
}
.avatar:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.avatar:hover img { transform: scale(1.08); }
.avatar span { display: none; }

.bullets { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 8px; }
.bullets li { color: var(--text); position: relative; padding-left: 22px; }
.bullets li::before { content: "\2022"; position: absolute; left: 4px; color: var(--primary); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 0.9rem; text-decoration: none; position: relative; overflow: hidden; background: rgba(255,255,255,.02); }
.tool:hover { color: var(--text); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.tool { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-2px);} }

/* Cards & Projects */
.card { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
/* Legal pages: add spacing between stacked cards */
.legal .card { margin-bottom: 16px; }
.legal .card:last-child { margin-bottom: 0; }
/* Legal pages: link styling */
.legal a { color: var(--link); text-decoration-color: rgba(143,183,255,.6); text-underline-offset: 2px; }
.legal a:hover { color: var(--link-hover); text-decoration-color: rgba(184,212,255,.8); }
.legal a:visited { color: var(--link); }
.project .project-media { border-radius: 12px; aspect-ratio: 16/10; background:
    radial-gradient(200px 140px at 80% 20%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(200px 200px at 20% 60%, rgba(109,94,252,.3), transparent 60%),
    linear-gradient(180deg, #0f1736, #0c1330);
  border: 1px solid var(--border); margin-bottom: 12px; position: relative; overflow: hidden;
}
/* If an image is provided, use it to fill the media area */
.project .project-media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
/* Remove decorative gradient when an image exists */
.project .project-media:has(img) { background: none; }
.project .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.project .tags span { font-size: .8rem; color: var(--muted); border: 1px solid var(--border); padding: 4px 8px; border-radius: 999px; }
.project h3 { margin: 4px 0 6px; }
.card-actions { margin-top: 10px; }

/* Project cards: align CTA to bottom */
.card.project { display: flex; flex-direction: column; }
.project .project-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.project .card-actions { margin-top: auto; }

/* Animated project cards */
.card.project { position: relative; transition: transform .18s ease, box-shadow .2s ease; }
.card.project:hover { transform: translateY(-2px); box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.card.project::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(180px 100px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.08), transparent 60%); opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.card.project:hover::after { opacity: .4; }

/* Case Studies */
.case { display: grid; gap: 10px; }
.case header .muted { color: var(--muted); }
.case-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.case-points li { position: relative; padding-left: 22px; }
.case-points li::before { content: "\2192"; position: absolute; left: 4px; color: var(--primary); }
.result-chip { display: inline-block; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: rgba(255,255,255,.03); font-size: .9rem; }

/* Pricing */
.card.price {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 24px 22px;
}
.card.price .card-head { display: grid; gap: 8px; }
.card.price .card-headline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card.price .card-headline h3 { margin: 0; }
.card.price .plan-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(109,94,252,.18);
  color: #bfc5ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.card.price .plan-badge.muted {
  background: rgba(255,255,255,.08);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.12);
}
.card.price .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
}
.card.price .price-prefix {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.card.price .price-old {
  font-size: 1.05rem;
  color: #f87171;
  text-decoration: line-through;
  font-weight: 600;
  opacity: 0.9;
}
.card.price .price-value { line-height: 1; }
.card.price .price-new {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
}
.card.price .features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  overflow: hidden;
  transition: height .28s ease;
}
.card.price .features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.96rem;
  line-height: 1.45;
}
.card.price .features li::before { content: "\2713"; position: absolute; left: 2px; color: var(--success); font-weight: 700; }
.card.price .card-actions { margin-top: auto; display: grid; gap: 10px; }
.card.price .card-actions .btn { width: 100%; }
.card.price.highlight { border-color: rgba(109,94,252,.5); box-shadow: 0 12px 60px rgba(109,94,252,.25); }
.card.addons { display: grid; gap: 18px; padding: 24px 22px; }
.card.addons .card-headline h3 { margin: 0; }
.card.addons .addon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card.addons .addon-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.card.addons .addon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  row-gap: 4px;
}
.card.addons .addon-title { font-weight: 600; color: #fff; }
.card.addons .addon-price { font-weight: 600; font-size: 0.95rem; color: #9fc1ff; }
.card.addons .addon-note { margin: 0; font-size: 0.9rem; color: var(--muted); }
.card.addons .addon-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.9rem; color: var(--muted); }

/* Tilt cards */
.tilt {
  position: relative;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0) scale3d(var(--tilt-scale, 1), var(--tilt-scale, 1), 1);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, min-height .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt:hover { box-shadow: 0 30px 90px rgba(109,94,252,.34); border-color: rgba(109,94,252,.6); }
.tilt::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px 200px at var(--mx, 50%) var(--my, 50%), rgba(109,94,252,.35), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.tilt:hover::after { opacity: .55; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.step { text-align: left; border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; }
.step::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(140px 80px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.08), transparent 65%); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.step:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.14); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.step:hover::after { opacity: .45; }
.step .icon { font-size: 1.3rem; margin-bottom: 6px; }

/* Testimonials */
.quote p { color: var(--text); }
.quote footer { color: var(--muted); margin-top: 6px; }
.quote.muted { opacity: .8; }

/* Testimonials carousel */
.carousel { position: relative; }
#testimonials .carousel {
  padding: 16px clamp(56px, 8vw, 96px);
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
}
.carousel.centered { text-align: center; }
.carousel-track { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-snap-stop: always; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(640px, 80%); width: min(640px, 80%); scroll-snap-align: center; transition: transform .25s ease, opacity .25s ease; opacity: .9; transform: scale(.97); }
.slide.is-active { transform: scale(1); opacity: 1; }
#testimonials .quote {
  width: min(680px, 62%);
  margin: 0 auto;
  min-height: 170px;
  padding: 22px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
#testimonials .quote:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
#testimonials .quote:hover .stars .star {
  color: #e9b949;
  text-shadow: 0 0 10px rgba(233, 185, 73, 0.38);
}
#testimonials .quote:hover .stars .star:nth-child(odd) {
  transform: translateY(-1px) scale(1.08) rotate(-3deg);
}
#testimonials .quote:hover .stars .star:nth-child(even) {
  transform: translateY(1px) scale(1.06) rotate(2.2deg);
}
.slide.is-active { outline: 2px solid rgba(109,94,252,.45); outline-offset: 2px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); z-index: 5; }
.carousel-btn:hover { background: rgba(255,255,255,.09); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 2px;
}
#testimonials .carousel-btn.prev { left: clamp(-24px, -4vw, -12px); }
#testimonials .carousel-btn.next { right: clamp(-24px, -4vw, -12px); }
.stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 8px;
  justify-content: center;
}
.stars .star {
  font-size: 1.15rem;
  color: #f4c86a;
  display: inline-block;
  transform-origin: center;
  transition: transform .25s ease, color .25s ease, text-shadow .35s ease;
}
.star { appearance: none; background: transparent; border: none; color: #4b5563; font-size: 1.2rem; cursor: default; padding: 0; transition: color .15s ease; filter: drop-shadow(0 0 0 transparent); }
.star::before { content: "\2605"; }
.star.active { color: #fbbf24; }
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.25); }
.carousel-dots .dot.active { background: white; }

/* Projects horizontal scroll (when more items) */
.projects { display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-bottom: -12px; scrollbar-width: none; }
.projects::-webkit-scrollbar { display: none; }
.projects .project { scroll-snap-align: center; flex: 0 0 calc((100% - 44px) / 3); min-width: 300px; }
/* Projects controls container */
#portfolio .projects-wrap { position: relative; padding: 16px 56px; background: rgba(0,0,0,.18); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
#portfolio .projects-wrap .carousel-btn.prev { left: 16px; }
#portfolio .projects-wrap .carousel-btn.next { right: 16px; }
@media (max-width: 980px) {
  .projects .project { flex: 0 0 calc((100% - 22px) / 2); }
}
@media (max-width: 720px) {
  .projects .project { flex: 0 0 100%; min-width: 80%; }
}

/* Contact */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
label { color: var(--muted); font-size: .95rem; }
input, textarea { background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 12px 12px; font-size: 1rem; outline: none; }
input:focus, textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 4px rgba(109,94,252,.12); }
.form textarea { resize: none; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-note { min-height: 20px; color: var(--muted); }

/* Pricing: collapse/expand features */
.card.price.collapsed:not(.is-transitioning) .features li:nth-child(n+4) { display: none; }
.card.price .toggle-features { height: 38px; padding: 0 14px; margin-top: 0; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; background: rgba(0,0,0,.15); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.foot-links, .foot-meta { display: flex; gap: 12px; align-items: center; }
.foot-links a, .foot-meta a { color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-meta a:hover { color: var(--text); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.foot-brand .brand-logo { width: 28px; height: 28px; border-radius: 50%; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mockup { order: -1; }
  .grid.two { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid.three { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  /* Keep header always visible on mobile */
  .site-header { position: fixed; top: 0; left: 0; right: 0; }
  body { padding-top: 66px; }
  .main-nav { position: fixed; inset: 66px 16px auto 16px; background: rgba(10,14,32,.9); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 8px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s ease; }
  .main-nav > a:not(.btn) { padding: 10px 12px; border-radius: 10px; }
  .main-nav > a:not(.btn):hover { background: rgba(255,255,255,.04); }
  .site-header.open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-block; }
  .main-nav .cta { justify-self: start; }
  .hero { padding: 90px 0 60px; }
  .brand-logo { width: 30px; height: 30px; }
  /* Testimonials: make each slide full width, no preview */
  #testimonials .carousel { padding: 16px clamp(24px, 12vw, 36px); }
  .carousel-track { gap: 12px; padding: 0 16px; scroll-snap-type: x mandatory; scroll-snap-stop: always; }
  .slide { flex: 0 0 100%; width: 100%; scroll-snap-align: center; }
  #testimonials .quote { width: 100%; max-width: none; min-height: unset; padding: 18px; }
  #testimonials .carousel-btn {
    width: 36px;
    height: 36px;
    top: 52%;
  }
  #testimonials .carousel-btn.prev { left: clamp(-18px, -5vw, -10px); }
  #testimonials .carousel-btn.next { right: clamp(-18px, -5vw, -10px); }
  /* Footer stacking on small screens */
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 8px; }
  .foot-links, .foot-meta { flex-wrap: wrap; row-gap: 6px; }
  .foot-meta { order: 3; }
  .foot-links { order: 2; }
}

.section-title { margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  .avatar,
  .avatar img,
  #testimonials .quote,
  .stars .star,
  .tilt,
  #stats .stat,
  #stats .stat .value {
    transition: none !important;
  }
  .avatar:hover {
    transform: none;
    box-shadow: 0 8px 36px rgba(0,0,0,.35);
  }
  #testimonials .quote:hover {
    transform: none;
    box-shadow: none;
  }
  #testimonials .quote:hover .stars .star {
    transform: none;
    text-shadow: none;
  }
  .tilt {
    transform: none !important;
  }
  .tilt::after,
  #stats .stat::after {
    opacity: 0 !important;
  }
  #stats .stat:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }
  #stats .stat:hover .value {
    color: white;
    text-shadow: none;
  }
}

/* Utility */
.header-spacer { height: 70px; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq-item { position: relative; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: rgba(109,94,252,.5); box-shadow: 0 12px 50px rgba(109,94,252,.15); }
.faq-q { width: 100%; text-align: left; background: transparent; color: var(--text); border: 0; padding: 16px 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-q .caret { transition: transform .2s ease; }
.faq-item.open .faq-q .caret { transform: rotate(180deg); }
.faq-a { padding: 0 18px; color: var(--muted); display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease, padding .25s ease; }
.faq-a-inner { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; padding: 0 18px 16px; }

/* Stats */
.stats-grid .stat {
  position: relative;
  text-align: left;
  display: grid;
  gap: 6px;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .32s ease, border-color .32s ease;
}
.stats-grid .stat::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(220px 160px at var(--mx, 50%) var(--my, 50%), rgba(143, 183, 255, 0.32), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}
.stats-grid .stat:hover {
  transform: translateY(-6px);
  border-color: rgba(143, 183, 255, 0.55);
  box-shadow: 0 24px 70px rgba(94, 136, 255, 0.28);
}
.stats-grid .stat:hover::after { opacity: .7; }
#stats .stat:hover .value {
  color: #d5e5ff;
  text-shadow: 0 6px 18px rgba(143, 183, 255, 0.45);
}
.stat .value { font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); font-weight: 900; color: white; letter-spacing: -0.02em; }
.stat .value.text { font-size: clamp(1.2rem, 1.5vw + 1rem, 2rem); font-weight: 800; }
.stats-grid .stat .value, .stats-grid .stat .value.text { min-height: clamp(2rem, 3vw + 1rem, 2.6rem); display: flex; align-items: flex-end; }
.stat .label { color: var(--muted); }
.stat .source { color: var(--text); opacity: .8; font-size: .9rem; align-self: end; margin-top: auto; }
.stat .sub-value { margin-top: 2px; }
.stat .chip { display: inline-block; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text); font-size: .85rem; }

/* Hide placeholder stats grid if still present */
#stats .stats-grid:first-of-type { display: none; }


