/* ==========================================================================
   www.melanio.cloud – Designsystem „Orbit“ (Tokens wie apps/web/src/styles.css)
   Papier hell, Nacht dunkel, eine Akzentfarbe: Kupfer. Kein Skript, keine fremden Server.
   ========================================================================== */

@font-face {
  font-family: "Inter Variable";
  src: url("/assets/fonts/inter-latin-wght-normal.3100e775e8.woff2") format("woff2-variations"), url("/assets/fonts/inter-latin-wght-normal.3100e775e8.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk Variable";
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.0640890476.woff2") format("woff2-variations"), url("/assets/fonts/space-grotesk-latin-wght-normal.0640890476.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Space Grotesk Variable", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #f5f3ee;
  --bg-sunken: #edeae3;
  --surface: #fffdf9;
  --surface-2: #faf8f3;
  --line: #e4e0d6;
  --line-strong: #cfc9bb;
  --ink: #17162b;
  --ink-2: #4a4860;
  --ink-3: #625f75;

  --accent: #bd5922;
  --accent-ink: #9a491c;
  --accent-soft: #fbe7da;
  --accent-hover: #a34d1d;
  --on-accent: #fff;
  --orbit: #2b2a4f;
  --orbit-soft: #e9e7f5;
  --ok-ink: #167a4c;
  --warn-ink: #8a5c00;
  --warn-soft: #faedcf;

  /* The night panels (hero, final call) look the same in both themes. */
  --night: #0d0c1a;
  --on-night: #fffdf9;
  --on-night-2: rgba(255, 253, 249, 0.74);
  --night-accent: #f08a4b;
  --night-accent-ink: #ffab76;

  --shadow-1: 0 1px 0 rgba(23, 22, 43, 0.04), 0 1px 2px rgba(23, 22, 43, 0.06);
  --shadow-2: 0 1px 0 rgba(23, 22, 43, 0.04), 0 12px 32px -12px rgba(23, 22, 43, 0.18);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: 24px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0c1a;
    --bg-sunken: #090813;
    --surface: #15142a;
    --surface-2: #1a1932;
    --line: #26243f;
    --line-strong: #37345a;
    --ink: #f1eee6;
    --ink-2: #bdb9cf;
    --ink-3: #9692ae;

    --accent: #f08a4b;
    --accent-ink: #ffab76;
    --accent-soft: #3a2320;
    --accent-hover: #e07a3c;
    --on-accent: #17162b;
    --orbit: #c9c4ff;
    --orbit-soft: #22203d;
    --ok-ink: #3cc98a;
    --warn-ink: #eab04a;
    --warn-soft: #33291a;

    --night: #121128;
    --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.3);
    --shadow-2: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}
ul[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}
.icon {
  flex: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.muted {
  color: var(--ink-3);
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow {
  max-width: 820px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.btn.lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}
.btn.block {
  width: 100%;
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn.primary:hover {
  background: var(--accent-hover);
}
.btn.outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}
.btn.outline:hover {
  border-color: var(--ink-3);
}
.btn.ghost {
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--bg-sunken);
}
.btn:active {
  transform: translateY(1px);
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.035em;
}

/* „by smartIDEA“ – the maker's signature, set like a second wordmark. */
.by {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-display);
  line-height: 1;
}
.by-by {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
}
.by-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.by-name b {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-ink);
}
.by-lg {
  font-size: 32px;
  line-height: 1.1;
}
.by-xl {
  border: 0;
  margin: 0;
  padding: 0;
}
.by-xl .by-by {
  font-size: 20px;
}
.by-xl .by-name {
  font-size: 34px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
  background: var(--bg-sunken);
}
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.top-cta {
  display: flex;
  gap: 8px;
}
.menu {
  display: none;
  margin-left: auto;
}
.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu .close,
.menu[open] .open {
  display: none;
}
.menu[open] .close {
  display: block;
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px var(--gutter) 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.menu-panel a:not(.btn) {
  padding: 12px 4px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu-panel .btn {
  margin-top: 14px;
  min-height: 50px;
}

/* ---------- hero ---------- */

.hero {
  padding: 20px 12px 0;
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  max-width: 1240px;
  padding: 80px 64px;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--on-night);
  background:
    radial-gradient(60% 60% at 82% 20%, rgba(240, 138, 75, 0.34), transparent 70%),
    radial-gradient(55% 55% at 0% 100%, rgba(124, 115, 230, 0.32), transparent 70%),
    var(--night);
  box-shadow: 0 40px 80px -40px rgba(13, 12, 26, 0.55);
}
.hero-in::after,
.final-in::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 46% 9%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 72% 34%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 38% 74%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 92% 82%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 6% 56%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 58% 92%, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.hero .eyebrow {
  color: var(--night-accent-ink);
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40em;
}
.hero .lead {
  color: var(--on-night-2);
  max-width: 34em;
}
.hero a:focus-visible,
.final a:focus-visible {
  outline-color: var(--night-accent-ink);
}

/* The way into the demo – the biggest thing on the page after the headline. */
.demo-card {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 520px;
  margin-top: 6px;
  padding: 18px 22px 18px 18px;
  border-radius: 22px;
  color: var(--on-night);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.demo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 171, 118, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}
.demo-play {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: var(--night-accent);
  color: #17162b;
  box-shadow: 0 0 0 8px rgba(240, 138, 75, 0.16), 0 0 40px rgba(240, 138, 75, 0.55);
}
.demo-play .icon {
  margin-left: 3px;
  fill: currentColor;
}
.demo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.demo-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-accent-ink);
}
.demo-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.demo-sub {
  font-size: 14.5px;
  color: var(--on-night-2);
}
.demo-arrow {
  margin-left: auto;
  color: var(--night-accent-ink);
  transition: transform 0.2s var(--ease);
}
.demo-card:hover .demo-arrow {
  transform: translateX(4px);
}
.hero-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15.5px;
  color: var(--on-night-2);
}
.hero-alt a {
  color: var(--on-night);
  font-weight: 600;
}

/* The orbit: rings as flat ellipses, satellites follow them, module chips float around. */
.orbit {
  position: relative;
  width: 460px;
  height: 460px;
  margin: 0 auto;
  z-index: 1;
}
.orbit .ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}
.orbit .r1 {
  width: 250px;
  height: 118px;
}
.orbit .r2 {
  width: 400px;
  height: 190px;
}
.orbit .r3 {
  width: 460px;
  height: 460px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.06);
}
.orbit .core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), #f08a4b 38%, #3b3478 100%);
  box-shadow: 0 0 90px 14px rgba(240, 138, 75, 0.35);
}
.orbit .sat {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  offset-rotate: 0deg;
  animation: sat-orbit linear infinite;
}
.orbit .s1,
.orbit .s3 {
  offset-path: path("M 430 230 A 200 95 0 1 1 30 230 A 200 95 0 1 1 430 230");
  animation-duration: 22s;
}
.orbit .s3 {
  width: 7px;
  height: 7px;
  animation-delay: -11s;
}
.orbit .s2 {
  background: #f08a4b;
  box-shadow: 0 0 14px rgba(240, 138, 75, 0.9);
  offset-path: path("M 355 230 A 125 59 0 1 1 105 230 A 125 59 0 1 1 355 230");
  animation-duration: 13s;
  animation-direction: reverse;
}
.orbit .tilt {
  position: absolute;
  inset: 0;
  transform: rotate(-14deg);
}
@keyframes sat-orbit {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}
.orbit .chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-night);
  background: rgba(21, 20, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: float 7s ease-in-out infinite;
}
.orbit .chip .icon {
  color: var(--night-accent-ink);
}
.orbit .c1 {
  top: 54px;
  left: 30px;
}
.orbit .c2 {
  top: 92px;
  right: 0;
  animation-delay: -2s;
}
.orbit .c3 {
  top: 300px;
  left: 0;
  animation-delay: -4s;
}
.orbit .c4 {
  bottom: 50px;
  right: 40px;
  animation-delay: -1s;
}
.orbit .c5 {
  bottom: 8px;
  left: 120px;
  animation-delay: -5s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- sections ---------- */

.section {
  padding: 104px 0;
}
.section.tight {
  padding: 40px 0 88px;
}
.section.alt {
  background: var(--bg-sunken);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
  max-width: 760px;
}
.section-head h2,
.split h2 {
  font-size: clamp(32px, 4.2vw, 48px);
}
.more {
  margin-top: 36px;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.arrow-link:hover {
  text-decoration: underline;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* modules */
.mod-group {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.mod-group-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mod-group-head h3 {
  font-size: 24px;
}
.mod-group-head p {
  color: var(--ink-3);
  font-size: 15px;
}
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.mod {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.mod:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.mod-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.mod-icon,
.why-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex: none;
}
.mod h4 {
  font-size: 19px;
}
.mod p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--orbit-soft);
  white-space: nowrap;
}
.badge.all {
  color: var(--ok-ink);
  background: color-mix(in srgb, var(--ok-ink) 8%, var(--surface));
}
.mod-always {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: var(--ink-2);
  font-size: 15.5px;
}
.mod-always .icon {
  color: var(--ok-ink);
  margin-top: 3px;
}
.mod-always b {
  color: var(--ink);
}

/* why */
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.why h3 {
  font-size: 22px;
  margin-top: 6px;
}
.why p {
  color: var(--ink-2);
  font-size: 16px;
}

/* check lists */
.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
}
.checks .icon {
  margin-top: 4px;
  color: var(--accent-ink);
}

/* satellite diagram */
.sat-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.lan {
  position: relative;
  padding: 30px 20px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.lan-label {
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface);
}
.devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.devices span,
.sat-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.devices .icon {
  color: var(--ink-3);
}
.sat-node {
  margin-top: 16px;
  justify-content: center;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}
.link {
  position: relative;
  display: flex;
  justify-content: center;
  height: 72px;
}
.link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: repeating-linear-gradient(to top, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 2px 24px;
  animation: flow 1.2s linear infinite;
}
@keyframes flow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -24px;
  }
}
.link span {
  position: relative;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
}
.cloud-node {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--orbit-soft);
  border: 1px solid var(--line);
}
.cloud-node span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.cloud-node b {
  font-family: var(--font-display);
  font-size: 18px;
}
.cloud-node small {
  color: var(--ink-3);
  font-size: 13.5px;
}

/* security cards */
.sec-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sec-cards li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.sec-cards .icon {
  color: var(--accent-ink);
}
.sec-cards h3 {
  font-size: 19px;
  margin-top: 6px;
}
.sec-cards p {
  font-size: 15px;
  color: var(--ink-2);
}

/* plans – teaser */
.mini-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mini-plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.mini-plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.mini-plan h3 {
  font-size: 24px;
}
.mini-plan .muted {
  font-size: 15px;
}
.mini-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.unit-note {
  font-size: 14px;
  color: var(--ink-3);
}
.amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.unit {
  color: var(--ink-3);
  font-size: 15px;
}

/* final call */
.final {
  padding: 0 12px 24px;
}
.final-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1240px;
  padding: 88px 32px;
  border-radius: var(--r-xl);
  overflow: hidden;
  text-align: center;
  color: var(--on-night);
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(240, 138, 75, 0.3), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(124, 115, 230, 0.28), transparent 70%),
    var(--night);
}
.final-in > * {
  position: relative;
  z-index: 1;
}
.final h2 {
  font-size: clamp(30px, 4vw, 46px);
}
.final p {
  color: var(--on-night-2);
  font-size: 18px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.final .btn.primary {
  background: var(--night-accent);
  color: #17162b;
}
.final .btn.primary:hover {
  background: var(--night-accent-ink);
}
.final .btn.outline {
  background: transparent;
  color: var(--on-night);
  border-color: rgba(255, 255, 255, 0.35);
}
.final .btn.outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
}
.play-fill .icon,
.btn .icon {
  fill: none;
}

/* ---------- inner pages ---------- */

.page-head {
  padding: 88px 0 24px;
}
.page-head .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-head h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  letter-spacing: -0.04em;
}
.page-head .cta-row {
  justify-content: flex-start;
}

/* plans */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 28px 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.plan.featured {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    var(--shadow-2);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
}
.plan h2 {
  font-size: 28px;
}
.plan-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}
.plan-price .amount {
  font-size: 52px;
}
.plan-note {
  min-height: 1.6em;
  font-size: 14.5px;
  color: var(--ink-3);
}
.plan .checks {
  flex: 1;
  margin: 20px 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
/* a plan „auf Anfrage“: words instead of a price, then what the contract adds */
.plan-price .amount.words {
  font-size: 40px;
}
.plan .checks:has(+ .plan-contract-head) {
  flex: none;
  margin-bottom: 0;
}
.plan-contract-head {
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plan .checks.contract {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}
/* problem → solution */
.ps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ps {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ps-problem {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px 20px;
  background: var(--surface-2);
  border-bottom: 1px dashed var(--line-strong);
}
.ps-problem h3 {
  font-size: 21px;
}
.ps-problem p {
  color: var(--ink-3);
  font-size: 15.5px;
}
.ps-solution {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 28px 26px;
}
.ps-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ps-solution .ps-label {
  color: var(--accent-ink);
}
.ps-lead {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.ps-solution .checks {
  font-size: 15.5px;
}
.ps-note {
  margin-bottom: 24px;
}

/* the two ways in */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.entry-cards a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.entry-cards a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.entry-kicker {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.entry-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.entry-text {
  color: var(--ink-2);
  flex: 1;
}
.entry-cards .arrow-link {
  color: var(--accent-ink);
}

/* the plan on a solution page */
.ps-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 36px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
}
.ps-plan > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-plan h2 {
  font-size: 40px;
}
.ps-plan .plan-price {
  margin-top: 4px;
}
.ps-plan .more {
  margin-top: 8px;
}
.ps-plan .checks {
  align-self: center;
}
.ps-honest {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
}
.ps-honest h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.ps-honest p {
  color: var(--ink-2);
}

@media (max-width: 1080px) {
  .entry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .ps-list,
  .ps-plan {
    grid-template-columns: minmax(0, 1fr);
  }
  .ps-plan {
    gap: 24px;
    padding: 24px 20px;
  }
}
@media (max-width: 600px) {
  .entry-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .ps-problem,
  .ps-solution {
    padding-left: 20px;
    padding-right: 20px;
  }
  .entry-cards a,
  .ps-honest {
    padding: 22px 20px;
  }
  .ps-honest {
    flex-direction: column;
  }
}

@media (max-width: 1180px) {
  .nav a {
    padding: 8px 9px;
  }
  .plans,
  .mini-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* comparison table */
.table-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 15.5px;
}
.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th:first-child {
  width: 40%;
}
.compare thead th {
  font-family: var(--font-display);
  font-size: 18px;
  background: var(--surface-2);
}
.compare td {
  color: var(--ink-2);
}
.compare tbody th {
  font-weight: 500;
}
.compare tbody th small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 34em;
}
.compare tr.group th {
  padding-top: 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--surface);
}
.compare tr:last-child > * {
  border-bottom: 0;
}
.compare tbody th:first-child,
.compare thead th:first-child {
  position: sticky;
  left: 0;
  background: inherit;
}
.compare tbody tr {
  background: var(--surface);
}
.yes {
  color: var(--ok-ink);
}
.no {
  color: var(--ink-3);
}

/* faq */
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 16px;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent-ink);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 22px;
  color: var(--ink-2);
}

/* security page */
.sec-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sec-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.sec-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sec-block h2 {
  font-size: 24px;
}
.vuln {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.vuln h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.vuln p {
  color: var(--ink-2);
}

/* contact */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.contact-cards li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-cards .icon {
  color: var(--accent-ink);
}
.contact-cards h2 {
  font-size: 19px;
  margin-top: 6px;
}
.maker-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.maker-card address {
  font-style: normal;
  color: var(--ink-2);
}
.placeholder {
  color: var(--warn-ink);
  text-decoration: underline dashed;
  text-underline-offset: 4px;
}
.draft {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-size: 15px;
}
.draft .icon {
  margin-top: 3px;
}

/* imprint */
.prose h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose ul {
  padding-left: 20px;
}
.license-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  max-height: 420px;
  overflow: auto;
}
.notfound {
  padding: 120px 0 140px;
}

/* ---------- footer ---------- */

.foot {
  padding: 72px 0 32px;
}
.foot > .wrap:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.foot-sign {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand-lg .brand-word {
  font-size: 30px;
}
.foot-maker {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink-3);
}
.foot-claim {
  color: var(--ink-3);
  font-size: 15px;
  max-width: 30em;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.foot-cols nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-cols h2 {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-body);
}
.foot-cols a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15.5px;
}
.foot-cols a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    padding: 64px 40px 32px;
  }
  .orbit {
    transform: scale(0.85);
    margin: -30px auto -40px;
  }
  .sec-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav,
  .top-cta {
    display: none;
  }
  .menu {
    display: block;
  }
  .split,
  .foot > .wrap:first-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .mod-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .why,
  .mini-plans,
  .plans,
  .contact-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans {
    gap: 28px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .top-in {
    height: 64px;
  }
  .menu-panel {
    top: 64px;
  }
  .by {
    padding-left: 10px;
    margin-left: 2px;
  }
  .by-name {
    font-size: 14px;
  }
  .hero {
    padding: 8px 8px 0;
  }
  .hero-in {
    padding: 44px 20px 8px;
    border-radius: 22px;
  }
  .lead {
    font-size: 17px;
  }
  .demo-card {
    gap: 14px;
    padding: 14px 16px 14px 14px;
  }
  .demo-play {
    width: 54px;
    height: 54px;
  }
  .demo-title {
    font-size: 19px;
  }
  .demo-arrow {
    display: none;
  }
  .orbit {
    transform: scale(0.66);
    margin: -80px -60px -90px;
    left: 50%;
    translate: -50% 0;
    margin-left: 0;
  }
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .sec-cards,
  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .sec-block,
  .why li,
  .plan {
    padding: 24px 20px;
  }
  .sat-diagram {
    padding: 20px;
  }
  .final {
    padding: 0 8px 16px;
  }
  .final-in {
    padding: 64px 20px;
    border-radius: 22px;
  }
  .cta-row .btn {
    width: 100%;
  }
  .page-head {
    padding: 56px 0 16px;
  }
  .maker-card {
    padding: 24px 20px;
  }
  .by-xl .by-name {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  /* Two-line lockup: Melanio above, „by smartIDEA“ below – always visible. */
  .top .brand {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    row-gap: 3px;
    align-items: center;
  }
  .top .brand .logo {
    grid-row: span 2;
  }
  .top .brand .brand-word {
    line-height: 1;
    align-self: end;
  }
  .top .brand .by {
    align-self: start;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .top .brand .by-by {
    font-size: 12px;
  }
  .top .brand .by-name {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .orbit .sat {
    animation: none;
    offset-distance: 20%;
  }
  .orbit .s3 {
    offset-distance: 70%;
  }
  .orbit .chip,
  .link::before {
    animation: none;
  }
  .mod,
  .demo-card,
  .btn {
    transition: none;
  }
  .mod:hover,
  .demo-card:hover {
    transform: none;
  }
}

@media print {
  .top,
  .menu,
  .final,
  .orbit {
    display: none;
  }
  .hero-in {
    color: #000;
    background: none;
  }
}

/* ---------- handbook ---------- */

.hb-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.hb-jump a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.hb-jump a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.hb-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  align-items: start;
}
.hb-chapter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 22px 14px;
  scroll-margin-top: 96px;
}
.hb-chapter h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.hb-chapter li + li {
  border-top: 1px solid var(--line);
}
.hb-chapter a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink);
}
.hb-chapter a:hover .hb-title {
  color: var(--accent-ink);
}
.hb-title {
  font-weight: 600;
}
.hb-sum {
  font-size: 15px;
  color: var(--ink-3);
}
.hb-head {
  padding-bottom: 8px;
}
.hb-head h1 {
  font-size: clamp(34px, 4.6vw, 52px);
}
.hb-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-3);
}
.hb-article {
  max-width: 720px;
}
.hb-article h2 {
  font-size: 24px;
}
.hb-article h3 {
  font-size: 19px;
  margin: 26px 0 8px;
}
.hb-article p,
.hb-article ul,
.hb-article ol {
  margin: 0 0 14px;
}
.hb-article ol {
  padding-left: 22px;
}
.hb-article li + li {
  margin-top: 4px;
}
.hb-article li ul {
  margin: 6px 0 0;
}
.hb-article code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-sunken);
  overflow-wrap: anywhere;
}
.hb-article pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-sunken);
}
.hb-article pre code {
  padding: 0;
  background: none;
}
.hb-article .callout {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--orbit);
  border-radius: var(--r-sm);
  background: var(--orbit-soft);
}
.hb-article .callout.tip {
  border-left-color: var(--ok-ink);
}
.hb-article .callout.important {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.hb-article .callout.warning,
.hb-article .callout.caution {
  border-left-color: var(--warn-ink);
  background: var(--warn-soft);
}
.hb-article .callout p:last-child {
  margin-bottom: 0;
}
.hb-article .callout-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}
.hb-article table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 15px;
}
.hb-article th,
.hb-article td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hb-more {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hb-more h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.hb-more li + li {
  margin-top: 6px;
}
.hb-note {
  margin-top: 32px;
  font-size: 15px;
  color: var(--ink-3);
}
