/* ==========================================================
   JK-Unique
   Tokens
   ========================================================== */
:root {
  --bg: #05060B;
  --bg-2: #090B14;
  --surface: rgba(14, 17, 30, 0.72);
  --surface-solid: #0D101C;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #F2F4F8;
  --text-2: #B4BCCC;
  --muted: #7C869A;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --mint: #4ADE9B;
  --rose: #FF6B7A;
  --amber: #FFB547;

  --f-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1200px;
  --section: clamp(96px, 13vw, 168px);

  color-scheme: dark;
}

/* Accent colour per area. Registered so the browser can blend between them. */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #4D7CFF; }
@property --accent-hi { syntax: "<color>"; inherits: true; initial-value: #8EA9FF; }
@property --accent-deep { syntax: "<color>"; inherits: true; initial-value: #1E3FD8; }
/* scroll-linked values are eased by the browser so they glide instead of jump */
@property --tilt { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --progress { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

:root,
[data-tone="blue"] { --accent: #4D7CFF; --accent-hi: #8EA9FF; --accent-deep: #1E3FD8; }
[data-tone="red"] { --accent: #F43F5E; --accent-hi: #FF97AA; --accent-deep: #9F1239; }
[data-tone="green"] { --accent: #12C48B; --accent-hi: #74E8BF; --accent-deep: #047857; }
[data-tone="purple"] { --accent: #7C3AED; --accent-hi: #BBA0FF; --accent-deep: #4C1D95; }
[data-tone] { --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent); }

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  margin: 0;
}

p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top .3s var(--ease-out);
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================
   Animated background
   ========================================================== */
.silk {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh; /* largest viewport: the mobile URL bar does not resize it */
  z-index: -2;
  background:
    radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--accent-deep) 25%, transparent), transparent 70%),
    var(--bg);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Breathing light cone (behind dashboard and contact) */
.cone {
  position: absolute;
  left: 50%;
  top: -18%;
  width: min(1500px, 170vw);
  height: 900px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(42% 46% at 50% 58%, color-mix(in srgb, var(--accent) 75%, transparent), color-mix(in srgb, var(--accent-deep) 35%, transparent) 45%, transparent 72%);
  filter: blur(40px);
  opacity: 0.85;
  animation: breathe 14s var(--ease-io) infinite alternate;
  will-change: transform, opacity;
}
.cone-low {
  top: auto;
  bottom: -30%;
  height: 700px;
  opacity: 0.35;
}
@keyframes breathe {
  0% { transform: translateX(-50%) scale(0.94, 0.9); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(1.04, 1.06); opacity: 0.95; }
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  --pad-y: 14px;
  --pad-x: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 0.9875rem/1.2 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), background-color .3s, border-color .3s, box-shadow .4s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), color-mix(in srgb, var(--accent) 80%, var(--accent-deep)));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 14px 44px -10px color-mix(in srgb, var(--accent) 100%, transparent); }

.btn-outline {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }

.btn-small { --pad-y: 10px; --pad-x: 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ==========================================================
   Navigation
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-inline: 0;
  transition: transform .8s var(--ease-out), padding .8s var(--ease-out), opacity 1.2s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-130%); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  margin-top: 0;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: height .8s var(--ease-out), margin .8s var(--ease-out), max-width .8s var(--ease-out),
    padding .8s var(--ease-out), background-color .6s, border-color .6s, box-shadow .6s;
}
/* once scrolled, the bar floats as a glass capsule */
.nav.is-solid { padding-inline: 12px; }
.nav.is-solid .nav-inner {
  height: 60px;
  margin-top: 12px;
  max-width: 1080px;
  padding-inline: 22px 10px;
  background: rgba(10, 12, 22, 0.84);
  border-color: var(--line-strong);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8), 0 0 40px -18px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* scroll progress */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-hi));
  box-shadow: 0 0 12px var(--accent);
  transition: --p .5s var(--ease-out);
}

.wordmark {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
}
.nav-links a:not(.btn) {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
}
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -9px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 8px var(--accent);
  opacity: 0;
  transform: scale(0);
  transition: opacity .5s, transform .6s var(--ease-out);
}
.nav-links a:not(.btn):hover,
.nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after { opacity: 1; transform: none; }
.nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-icon,
.menu-icon::before {
  display: block;
  width: 18px; height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .4s var(--ease-out);
}
.menu-icon { transform: translateY(-3px); }
.menu-icon::before { content: ""; transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(-90deg); }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 20px; }
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(5, 6, 11, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .6s var(--ease-out), visibility 0s .6s;
  }
  .nav-links.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .6s var(--ease-out);
  }
  .nav-links a:not(.btn) {
    padding: 14px 0;
    font-size: 1.125rem;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav.is-solid .nav-links {
    top: 68px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(10, 12, 22, 0.94);
  }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 120px 120px;
  text-align: center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  color: var(--text-2);
}
.badge-dot,
.live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
}
.badge-dot::after,
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.75rem, 7.4vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .line > span {
  display: inline-block;
  background: linear-gradient(180deg, #FFFFFF 20%, #9AA6C2 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}

.hero-lead {
  max-width: 36em;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--text-2);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Satellite nodes with connector lines */
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-lines path { fill: none; }
.hl { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.hl-pulse {
  stroke: var(--accent-hi);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 12 88;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px var(--accent));
  animation: line-pulse 5s var(--ease-io) infinite;
}
.hl-pulse:nth-of-type(6) { animation-delay: 1.25s; }
.hl-pulse:nth-of-type(7) { animation-delay: 2.5s; }
.hl-pulse:nth-of-type(8) { animation-delay: 3.75s; }
.hero-nodes li.left { padding-right: 8px; }
@keyframes line-pulse {
  0% { stroke-dashoffset: 100; opacity: 0; }
  8% { opacity: 1; }
  45% { opacity: 1; }
  55%, 100% { stroke-dashoffset: -12; opacity: 0; }
}

.hero-nodes li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
  white-space: nowrap;
  transform: translate(-100%, -50%);
  padding-right: 6px;
}
.hero-nodes li.right {
  flex-direction: row-reverse;
  transform: translate(0, -50%);
  padding: 0 0 0 6px;
}
.node-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(13, 16, 28, 0.8);
  color: var(--accent-hi);
  box-shadow: 0 0 24px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}
.node-icon svg,
.card-icon svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1180px) {
  .hero-lines,
  .hero-nodes { display: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 24px; height: 38px;
  margin-left: -12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Hero entrance */
.js .hero-title .line > span { transform: translateY(110%); }
.js .badge,
.js .hero-lead,
.js .hero-actions,
.js .hero-nodes,
.js .hero-lines,
.js .scroll-cue,
.js .nav { opacity: 0; }

.is-loaded .hero-title .line > span {
  transform: none;
  transition: transform 1.4s var(--ease-out);
}
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.is-loaded .badge,
.is-loaded .hero-lead,
.is-loaded .hero-actions,
.is-loaded .hero-nodes,
.is-loaded .hero-lines,
.is-loaded .scroll-cue,
.is-loaded .nav { opacity: 1; }
.is-loaded .badge,
.is-loaded .hero-lead,
.is-loaded .hero-actions,
.is-loaded .hero-nodes,
.is-loaded .hero-lines,
.is-loaded .scroll-cue { transition: opacity 1.4s var(--ease-out); }
.is-loaded .hero-lead { transition-delay: .45s; }
.is-loaded .hero-actions { transition-delay: .6s; }
.is-loaded .hero-lines,
.is-loaded .hero-nodes { transition-delay: .9s; transition-duration: 2s; }
.is-loaded .scroll-cue { transition-delay: 1.4s; }

/* ==========================================================
   Dashboard showcase
   ========================================================== */
.showcase {
  position: relative;
  overflow-x: clip; /* keeps the wide light cone from widening the page */
  padding-bottom: clamp(64px, 8vw, 104px);
  perspective: 1600px;
}
.device-frame {
  --tilt: 1;
  position: relative;
  padding: 10px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(6px);
  transform-origin: 50% 0%;
  transform: rotateX(calc(var(--tilt) * 22deg)) scale(calc(1 - var(--tilt) * 0.08)) translateY(calc(var(--tilt) * 40px));
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 120px -40px color-mix(in srgb, var(--accent) 55%, transparent);
  will-change: transform;
  transition: --tilt 1s var(--ease-out);
}
.device {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #070912;
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.device-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.device-bar i:first-child { background: var(--accent); }
.device-bar span {
  margin-left: auto;
  margin-right: auto;
  padding: 4px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--muted);
  transform: translateX(-20px);
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 480px;
}

.editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.editor-tabs { display: flex; border-bottom: 1px solid var(--line); }
.editor-tabs span {
  padding: 10px 18px;
  font-size: 0.8125rem;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.editor-tabs .is-active { color: var(--text); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 -2px 0 var(--accent); }

.code {
  height: 540px;
  margin: 0;
  padding: 16px 0;
  overflow: hidden;
  font: 400 0.8125rem/1.7 var(--f-mono);
  color: var(--text-2);
  counter-reset: ln;
}
.code .ln { display: block; min-height: 1.7em; padding: 0 18px 0 56px; position: relative; white-space: pre; }
.code .ln::before {
  counter-increment: ln;
  content: counter(ln);
  position: absolute;
  left: 0;
  width: 38px;
  text-align: right;
  color: rgba(255, 255, 255, 0.2);
}
.code .ln.is-current { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.t-tag { color: #8EA9FF; }
.t-attr { color: #C3A6FF; }
.t-str { color: #7EE0B4; }
.t-txt { color: #E8ECF4; }
.t-sel { color: #FFB547; }
.t-prop { color: #8EA9FF; }
.t-val { color: #7EE0B4; }
.t-pun { color: var(--muted); }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--accent-hi);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Live preview: a small light-coloured customer site */
.preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: #EEF1F7;
  color: #18213A;
  font-family: var(--f-body);
  transition: opacity .6s;
}
.preview.is-fading { opacity: 0; }
.pv-part {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.pv-part.is-shown { opacity: 1; transform: none; }

.pv-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  font-size: 0.8125rem;
  box-shadow: 0 6px 18px -12px rgba(24, 33, 58, 0.4);
}
.pv-head b { margin-right: auto; font-family: var(--f-display); font-weight: 600; }
.pv-head span { color: #5A6480; }

.pv-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-height: 190px;
  padding: 26px;
  border: 1.5px dashed #B5BED3;
  border-radius: 0;
  background: transparent;
  transition: background-color .9s var(--ease-out), border-color .9s, border-radius .9s var(--ease-out), color .9s, box-shadow .9s;
}
.preview.has-bg .pv-hero {
  background: #1D2A4D;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 20px 40px -24px rgba(29, 42, 77, 0.9);
}
.preview.has-round .pv-hero { border-radius: 16px; }
.pv-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.pv-text { margin: 0 0 10px; font-size: 0.875rem; color: #5A6480; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), color .9s; }
.preview.has-bg .pv-text { color: rgba(255, 255, 255, 0.78); }
.pv-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: #4D7CFF;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv-cards span {
  padding: 16px 12px;
  border-radius: 10px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 18px -12px rgba(24, 33, 58, 0.4);
}

.showcase-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; min-height: 0; }
  .preview { order: -1; }
  .editor { border-right: 0; border-top: 1px solid var(--line); }
  .code { height: 230px; overflow-y: auto; scrollbar-width: none; }
  .code::-webkit-scrollbar { display: none; }
  .pv-hero { min-height: 150px; }
}
@media (max-width: 720px) {
  .device-frame { padding: 6px; border-radius: 18px; }
  .device { border-radius: 13px; }
  .code { font-size: 0.6875rem; }
  .code .ln { padding: 0 12px 0 40px; }
  .code .ln::before { width: 26px; }
}

/* ==========================================================
   Tech strip
   ========================================================== */
.stack { padding-block: 40px 24px; text-align: center; }
.stack-title { color: var(--muted); font-size: 0.9375rem; margin-bottom: 22px; padding-inline: var(--gutter); }
.stack-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.stack-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.stack:hover .stack-track { animation-play-state: paused; }
.stack-list { display: flex; gap: 64px; padding-inline: 32px; }
.stack-list li {
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.32);
  transition: color .3s;
}
.stack-list li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   Sections
   ========================================================== */
.section { position: relative; padding-block: var(--section); }

h2 {
  background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, var(--accent-hi) 55%, #fff) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head h2 { margin-bottom: 20px; }
.section-head p { color: var(--text-2); margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-text h2 { margin-bottom: 24px; }
.split-text p { color: var(--text-2); max-width: 30em; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 0; }
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 24, 40, 0.75), rgba(10, 12, 22, 0.8));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(22px, 3.2vw, 34px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.note { font-size: 0.8125rem; color: var(--muted); }

.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.66em;
  width: 11px; height: 6px;
  border-left: 1.8px solid var(--accent-hi);
  border-bottom: 1.8px solid var(--accent-hi);
  transform: translateY(-50%) rotate(-45deg);
}
.ticks-large { margin-top: 28px; }
.ticks-large li { padding-block: 12px; margin: 0; border-top: 1px solid var(--line); }
.ticks-large li::before { top: calc(12px + 0.66em); }

/* Reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  filter: blur(10px);
  transition: opacity 1.3s var(--ease-out), transform 1.3s var(--ease-out), filter 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ==========================================================
   Services
   ========================================================== */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.services-intro { position: sticky; top: 120px; }
.services-intro h2 { margin-bottom: 20px; }
.services-intro p { color: var(--text-2); margin-bottom: 28px; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  padding: 30px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 22, 38, 0.8), rgba(9, 11, 20, 0.85));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity .5s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent-hi) 70%, transparent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.card:hover::before,
.card:hover::after { opacity: 1; }
.cards .card:nth-child(2) { margin-top: 48px; }
.cards .card:nth-child(4) { margin-top: 48px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent-hi) 25%, transparent);
  color: var(--accent-hi);
  box-shadow: 0 0 30px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}
.card-icon svg { width: 19px; height: 19px; }
.card h3 { font-size: 1.3125rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.9875rem; margin-bottom: 18px; }
.card .ticks li { font-size: 0.9375rem; }

@media (max-width: 960px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .cards .card:nth-child(2),
  .cards .card:nth-child(4) { margin-top: 0; }
}

/* ==========================================================
   Performance panel
   ========================================================== */
.perf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
}
.switch-btn {
  position: relative;
  z-index: 1;
  padding: 9px 20px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 0.9375rem/1 var(--f-body);
  cursor: pointer;
  transition: color .4s;
}
.switch-btn[aria-pressed="true"] { color: #fff; }
.switch-thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: rgba(255, 107, 122, 0.25);
  border: 1px solid rgba(255, 107, 122, 0.5);
  transition: transform .7s var(--ease-out), background-color .7s, border-color .7s;
}
.perf.is-after .switch-thumb {
  transform: translateX(100%);
  background: rgba(74, 222, 155, 0.2);
  border-color: rgba(74, 222, 155, 0.5);
}

.gauge {
  position: relative;
  width: min(210px, 60%);
  aspect-ratio: 1;
  margin: 0 auto 30px;
}
.gauge::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 122, 0.2), transparent 70%);
  transition: background .9s;
}
.perf.is-after .gauge::before { background: radial-gradient(circle, rgba(74, 222, 155, 0.2), transparent 70%); }
.gauge svg { position: relative; width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 7; }
.gauge-fill {
  fill: none;
  stroke: var(--rose);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 202.57;
  transition: stroke-dashoffset 1.6s var(--ease-out), stroke .9s;
}
.perf.is-after .gauge-fill { stroke: var(--mint); }
.gauge-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.gauge-value {
  font-family: var(--f-display);
  font-size: clamp(3.25rem, 6.4vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--rose);
  transition: color .9s;
}
.perf.is-after .gauge-value { color: var(--mint); }
.gauge-caption { font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }

.metrics li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.m-name { font-size: 0.9375rem; color: var(--text-2); }
.m-value { font-family: var(--f-mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.m-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.m-bar > span {
  display: block;
  height: 100%;
  width: var(--w, 100%);
  border-radius: inherit;
  background: var(--rose);
  transition: width 1.6s var(--ease-out), background-color .9s;
}
.perf.is-after .m-bar > span { background: var(--mint); }

/* ==========================================================
   Status panel
   ========================================================== */
.status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.status-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.status-rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.s-name { font-size: 0.9375rem; }
.s-ms { font-family: var(--f-mono); font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-bars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(60, 1fr);
  align-items: end;
  gap: 2px;
  height: 26px;
}
.s-bars i {
  display: block;
  border-radius: 2px;
  background: var(--mint);
  opacity: .7;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .8s var(--ease-out), opacity .3s;
}
.s-bars i.warn { background: var(--amber); }
.s-bars i:hover { opacity: 1; }
.status.is-in .s-bars i { transform: scaleY(1); }
.status-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ==========================================================
   Automation flow
   ========================================================== */
.flow {
  --cycle: 4.8s;
  display: grid;
  grid-template-columns: 1fr minmax(28px, 0.4fr) 1fr minmax(28px, 0.4fr) 1fr minmax(28px, 0.4fr) 1fr;
  align-items: center;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 22, 38, 0.8), rgba(9, 11, 20, 0.85));
  animation: node-glow var(--cycle) var(--ease-out) infinite;
}
.flow-node .card-icon { margin-bottom: 14px; }
.flow-node:nth-child(3) { animation-delay: 1.2s; }
.flow-node:nth-child(5) { animation-delay: 2.4s; }
.flow-node:nth-child(7) { animation-delay: 3.6s; }
.flow-title { font-family: var(--f-display); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; }
.flow-text { font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }

.flow-link {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}
.flow-link span {
  position: absolute;
  top: 50%; left: 0;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 18px var(--accent);
  opacity: 0;
  animation: pulse-x var(--cycle) var(--ease-io) infinite;
}
.flow-link:nth-child(4) span { animation-delay: 1.2s; }
.flow-link:nth-child(6) span { animation-delay: 2.4s; }

@keyframes pulse-x {
  0% { left: 0; opacity: 0; }
  4%, 22% { opacity: 1; }
  25%, 100% { left: 100%; opacity: 0; }
}
@keyframes pulse-y {
  0% { top: 0; opacity: 0; }
  4%, 22% { opacity: 1; }
  25%, 100% { top: 100%; opacity: 0; }
}
@keyframes node-glow {
  0% { border-color: color-mix(in srgb, var(--accent-hi) 60%, transparent); box-shadow: 0 0 50px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
  30%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 960px) {
  .flow {
    grid-template-columns: 1fr;
    grid-template-rows: auto 36px auto 36px auto 36px auto;
    max-width: 380px;
    margin-inline: auto;
  }
  .flow-link {
    width: 1px; height: 100%;
    margin-inline: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  }
  .flow-link span { left: 50%; top: 0; animation-name: pulse-y; }
}

/* ==========================================================
   Manifesto
   ========================================================== */
.manifesto-section { padding-block: calc(var(--section) * 0.6); }
.manifesto {
  max-width: 24em;
  margin: 0 auto;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.manifesto .w { opacity: 0.16; transition: opacity .5s; }
.manifesto .w.on { opacity: 1; }

/* ==========================================================
   Steps
   ========================================================== */
.steps {
  --progress: 0;
  position: relative;
  transition: --progress .8s var(--ease-out);
  max-width: 760px;
  margin-inline: auto;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 25px; top: 26px; bottom: 26px;
  width: 1px;
  background: var(--line-strong);
}
.steps::after {
  width: 2px;
  left: 24.5px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 0 12px var(--accent);
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 500;
  transition: background-color .6s, border-color .6s, box-shadow .6s;
}
.step.is-active .step-num {
  background: var(--accent);
  border-color: var(--accent-hi);
  box-shadow: 0 0 30px -4px var(--accent);
}
.step h3 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); letter-spacing: -0.03em; line-height: 1.15; padding-top: 8px; margin-bottom: 10px; }
.step p { color: var(--text-2); max-width: 36em; }
.step .step-out { margin: 0; font-size: 0.9375rem; color: var(--accent-hi); }

/* ==========================================================
   Contact
   ========================================================== */
.contact { overflow: hidden; }
.contact .split { align-items: start; }
.contact-mail {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--f-display);
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(var(--accent-hi), var(--accent-hi)) left bottom / 0 1px no-repeat;
  transition: background-size .6s var(--ease-out), color .3s;
}
.contact-mail:hover { background-size: 100% 1px; color: var(--accent-hi); }

.form { display: grid; gap: 18px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; border: 0; }
.topics legend { margin-bottom: 12px; font-size: 0.9375rem; color: var(--muted); }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topics span {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  transition: background-color .3s, border-color .3s, color .3s;
}
.topics label:hover span { border-color: rgba(255, 255, 255, 0.4); }
.topics input:checked + span { background: var(--accent-soft); border-color: var(--accent-hi); color: var(--accent-hi); }
.topics input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-size: 0.9375rem; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: 400 1rem/1.5 var(--f-body);
  resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--rose); }

.form-status { margin: 0; min-height: 1.5em; font-size: 0.9375rem; }
.form-status.is-error { color: var(--rose); }
.form-status.is-ok { color: var(--mint); }
.form-note { margin: -6px 0 0; font-size: 0.8125rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--text-2); }
.form-note a:hover { color: var(--accent-hi); }

/* ==========================================================
   Legal pages (Impressum, Datenschutz)
   ========================================================== */
.legal-page {
  background:
    radial-gradient(70% 45% at 50% 0%, color-mix(in srgb, var(--accent-deep) 45%, transparent), transparent 70%),
    radial-gradient(50% 40% at 90% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.legal-page .nav-inner { justify-content: space-between; }
.legal {
  padding-block: 150px clamp(80px, 10vw, 140px);
}
.legal-inner { max-width: 760px; }
.legal h1 {
  margin-bottom: 12px;
  font-size: clamp(2.125rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  hyphens: manual;
  background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, var(--accent-hi) 55%, #fff) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-lead { color: var(--muted); margin-bottom: 48px; }
.legal h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.legal h3 { margin: 28px 0 10px; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--text); }
.legal p,
.legal li { color: var(--text-2); }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-hi); text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }
.legal code { font-family: var(--f-mono); font-size: 0.875em; color: var(--text); }
.legal .card-block {
  margin: 0 0 8px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 24, 40, 0.7), rgba(10, 12, 22, 0.75));
}
.legal dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; color: var(--text); }
.legal .legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.legal .legal-toc li { margin: 0; }
.legal-toc a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.legal-toc a:hover { border-color: var(--accent-hi); color: var(--text); }
.legal-stand { margin-top: 56px; font-size: 0.875rem; color: var(--muted); }

.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 11, 0.85);
  padding-block: 36px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer .wordmark { color: var(--text); font-size: 1.0625rem; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--text); }

/* ==========================================================
   Touch devices: no background blur on content panels
   (very expensive on phones while scrolling; the nav keeps its glass)
   ========================================================== */
@media (hover: none), (pointer: coarse) {
  .panel,
  .card,
  .btn-outline,
  .badge,
  .device-frame,
  .flow-node,
  .node-icon {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .panel { background: linear-gradient(180deg, rgba(20, 24, 40, 0.92), rgba(10, 12, 22, 0.94)); }
  .btn-outline { background: rgba(14, 17, 30, 0.85); }
  .badge { background: rgba(14, 17, 30, 0.8); }
  .cone { filter: blur(24px); }
}

/* ==========================================================
   Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .stack-track { animation: none; }
  .flow-link span,
  .hl-pulse { display: none; }
  .device-frame { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .manifesto .w { opacity: 1; }
}
