/* ============================================================
 * Sredi.me — Marketing Landing
 * Eigenständige Static-Page. Design-Tokens spiegeln das SPA
 * (warm-neutrale Palette + refined-violet accent, Inter font).
 * ============================================================ */

:root {
  /* Surfaces — warm off-white, near-black */
  --bg:               oklch(0.985 0.005 70);
  --bg-alt:           oklch(0.965 0.006 70);
  --fg:               oklch(0.18 0.012 50);
  --card:             #ffffff;
  --muted:            oklch(0.955 0.006 70);
  --muted-fg:         oklch(0.52 0.012 50);
  --subtle:           oklch(0.97 0.005 70);
  --border:           oklch(0.89 0.008 70);

  /* Primary — refined violet */
  --primary:          oklch(0.55 0.155 290);
  --primary-hover:    oklch(0.50 0.155 290);
  --primary-fg:       oklch(0.99 0.005 290);
  --primary-soft:     oklch(0.95 0.025 290);
  --primary-ring:     oklch(0.55 0.155 290 / 0.35);

  /* Shape & elevation */
  --radius-sm:        0.5rem;
  --radius:           0.75rem;
  --radius-lg:        1rem;
  --radius-xl:        1.5rem;

  --shadow-sm:        0 1px 3px 0 oklch(0.15 0.01 50 / 0.06), 0 1px 2px -1px oklch(0.15 0.01 50 / 0.04);
  --shadow:           0 4px 12px -2px oklch(0.15 0.01 50 / 0.08), 0 2px 4px -2px oklch(0.15 0.01 50 / 0.04);
  --shadow-lg:        0 12px 32px -8px oklch(0.15 0.01 50 / 0.14), 0 4px 8px -4px oklch(0.15 0.01 50 / 0.06);

  /* Type */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --container-narrow: 760px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: 6rem 0;
  position: relative;
}
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section__head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.section__head h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section__lead {
  margin: 0;
  color: var(--muted-fg);
  font-size: 1.0625rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--muted);
  border-color: var(--fg);
}
.btn--lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.985 0.005 70 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
}
.nav__links {
  display: none;
  gap: 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted-fg);
}
.nav__links a {
  transition: color 0.15s ease;
}
.nav__links a:hover {
  color: var(--fg);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Language switcher — three small links, one highlighted */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card);
}
.lang-switch__opt {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
  border-right: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.lang-switch__opt:last-child { border-right: none; }
.lang-switch__opt:hover { background: var(--muted); color: var(--fg); }
.lang-switch__opt.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}
.nav__cta .btn--ghost {
  display: none;
}

@media (min-width: 820px) {
  .nav__links { display: flex; }
  .nav__cta .btn--ghost { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5.5rem;
}
.hero__blob {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(110px);
  opacity: 0.45;
}
.hero__blob--a {
  top: -10rem;
  left: -10rem;
  width: 38rem;
  height: 38rem;
  background: var(--primary);
  opacity: 0.32;
}
.hero__blob--b {
  bottom: -14rem;
  right: -8rem;
  width: 30rem;
  height: 30rem;
  background: var(--primary);
  opacity: 0.22;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
  .hero { padding: 6rem 0 7rem; }
}

.hero__copy { max-width: 560px; }
.hero__title {
  margin: 1.25rem 0 1.25rem;
  font-size: clamp(2.25rem, 3.5vw + 1rem, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero__title span { display: block; }
.hero__accent {
  background: linear-gradient(120deg, var(--primary), oklch(0.65 0.18 320));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 32rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__bullets li::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: var(--primary-soft);
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

/* ---------- Hero mockup ---------- */
.hero__mock {
  position: relative;
  perspective: 1400px;
}
.mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(0.4deg);
  transition: transform 0.4s ease;
}
.mock:hover { transform: rotate(0deg) translateY(-4px); }

.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mock__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--border);
}
.mock__dot--r { background: oklch(0.7 0.16 25); }
.mock__dot--y { background: oklch(0.82 0.14 80); }
.mock__dot--g { background: oklch(0.72 0.14 150); }
.mock__title {
  margin-left: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  font-weight: 500;
}

.mock__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  min-height: 18rem;
}
.mock__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mock__col-head {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
}
.mock__slot {
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.8125rem;
  min-height: 3.25rem;
}
.mock__slot--tall { min-height: 4.5rem; }
.mock__slot--violet {
  background: var(--primary);
  color: var(--primary-fg);
}
.mock__slot--soft {
  background: var(--primary-soft);
  color: oklch(0.35 0.13 290);
}
.mock__slot--ghost {
  background: transparent;
  color: var(--muted-fg);
  border: 1px dashed var(--border);
}
.mock__slot-t { font-weight: 600; font-size: 0.75rem; opacity: 0.85; }
.mock__slot-s { font-size: 0.8125rem; }

.mock__toast {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.mock__toast-pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: oklch(0.62 0.14 150);
}
.mock__toast-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid oklch(0.62 0.14 150);
  opacity: 0;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.5); opacity: 0.75; }
  100% { transform: scale(1.8);  opacity: 0; }
}

/* ---------- Stats strip ---------- */
.strip {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  padding: 2rem 1.25rem;
  text-align: center;
}
@media (min-width: 720px) {
  .strip__inner { grid-template-columns: repeat(4, 1fr); }
}
.strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.strip__item strong {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.strip__item span {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: oklch(0.85 0.012 290);
}

.feature__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.feature__icon svg { width: 1.25rem; height: 1.25rem; }
.feature h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 6px var(--primary-soft);
}
.step h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
}
.step p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.chip {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  color: var(--fg);
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: oklch(0.35 0.13 290);
  transform: translateY(-1px);
}

/* ---------- Quote ---------- */
.section--quote {
  padding: 5rem 0;
}
.quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 1.6vw + 0.5rem, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--fg);
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.9375rem;
}
.quote__name { font-weight: 600; }
.quote__role { color: var(--muted-fg); }

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.faq__item[open] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  padding: 1.125rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--muted-fg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq__item[open] summary::after {
  content: "−";
  color: var(--primary);
}
.faq__item p {
  margin: 0;
  padding: 0 0 1.25rem;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

/* ---------- Final CTA ---------- */
.cta {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, var(--primary-soft), transparent 70%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  text-align: center;
  max-width: 640px;
}
.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cta p {
  margin: 0 0 2rem;
  color: var(--muted-fg);
  font-size: 1.0625rem;
}
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.75rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 780px) {
  .site-footer__inner { grid-template-columns: 1.2fr 2fr; }
}
.site-footer__tag {
  margin: 0.75rem 0 0;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  max-width: 22rem;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.site-footer__cols h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.site-footer__cols ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__cols a {
  color: var(--fg);
  font-size: 0.9375rem;
  transition: color 0.15s;
}
.site-footer__cols a:hover { color: var(--primary); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

/* ---------- Motion-reduced ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
