/* ═══════════════════════════════════════════
   FONTS — Metropolis (OFL, self-hosted)
═══════════════════════════════════════════ */
@font-face { font-family: 'Metropolis'; src: url('../fonts/metropolis/Metropolis-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Metropolis'; src: url('../fonts/metropolis/Metropolis-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Metropolis'; src: url('../fonts/metropolis/Metropolis-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --bg: #15282c;
  --bg-elevated: #132428;
  --bg-card: rgba(255,255,255,0.04);

  --lime: #acbf06;
  --lime-dim: #94a505;
  --teal: #2a5058;
  --teal-light: #3a7078;
  --teal-deep: #1e3a41;

  --text: #f0f0f2;
  --text-muted: rgba(240,240,242,0.72);
  --text-faint: rgba(240,240,242,0.55);

  /* semantic surfaces / overlays */
  --border-subtle: rgba(255,255,255,0.06);
  --border-soft: rgba(255,255,255,0.08);
  --overlay-deep: rgba(12,26,29,0.92);
  --overlay-scrim: rgba(12,26,29,0.85);

  --font: 'Metropolis', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0.75rem;
  --radius-s: 0.375rem;
  --max-w: 1400px;
  --px: 4rem;
  --s-section: clamp(5rem, 10vw, 9rem);
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--teal) var(--bg); }
body { font-family: var(--font); font-weight: 400; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a[href] { cursor: pointer; }

/* focus-visible: consistent keyboard affordance without hover noise */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.nav-links a:focus-visible,
.nav.scrolled .nav-links a:focus-visible { outline-offset: 6px; }
.btn:focus-visible,
.btn-spec:focus-visible,
.nav-cta:focus-visible,
.intro-fn-card:focus-visible,
.to-top:focus-visible { outline-offset: 3px; }
.nav-hamburger:focus-visible span { background: var(--lime); }

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 2000;
  background: var(--lime); color: var(--bg); padding: 0.75rem 1rem;
  border-radius: var(--radius-s); font-weight: 700; font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--teal); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-bubble] { opacity: 1 !important; transform: none !important; }
  .roadmap::before { transform: scaleY(1) !important; }
  .roadmap-item { opacity: 1 !important; transform: none !important; }
  .gauge-ring { --gauge-value: 88% !important; }
  .gauge-bolt { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1002;
  padding: 1rem var(--px);
  margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.5s var(--ease);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav.scrolled {
  padding: 1rem var(--px);
  margin-top: 0;
  background: rgba(172,191,6,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-logo img { height: 38px; width: auto; filter: brightness(0) invert(1); transition: all 0.4s ease; }
.nav.scrolled .nav-logo img { filter: none; height: 28px; }

.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: #fff; transition: width 0.3s var(--ease);
}
.nav.scrolled .nav-links a::after { background: var(--teal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--teal-deep); }
.nav.scrolled .nav-links a:hover { color: #0f2226; }

.nav-cta {
  padding: 0.55rem 1.3rem; background: var(--lime); color: var(--bg) !important;
  font-weight: 700; border-radius: var(--radius-s); transition: all 0.3s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--lime-dim) !important; transform: translateY(-1px); }
.nav.scrolled .nav-cta { background: var(--teal) !important; color: #fff !important; }
.nav.scrolled .nav-cta:hover { background: var(--teal-deep) !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 7px; cursor: pointer;
  z-index: 1001; background: transparent; border: none;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-hamburger span {
  display: block; width: 32px; height: 3px; background: #fff;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), opacity 0.3s ease, width 0.3s var(--ease);
  transform-origin: center;
}
.nav.scrolled .nav-hamburger span { background: var(--teal-deep); }
.nav-hamburger.open span,
.nav.scrolled .nav-hamburger.open span { background: var(--lime); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-image-bg { position: absolute; inset: 0; z-index: 0; }
.hero-image-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.hero-image-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(12,26,29,0.5) 0%, transparent 40%),
              linear-gradient(to top, rgba(12,26,29,0.3) 0%, transparent 20%);
}

.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 8rem var(--px) 6rem; padding-left: 30vw;
  display: flex; justify-content: flex-end;
}
.hero-text {
  max-width: 440px; position: relative;
  padding: 3rem 3rem 2.5rem;
}
.hero-text::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(42,80,88,0.9);
  border-radius: 0 0 0 1.5rem;
  mix-blend-mode: multiply;
  z-index: -1;
}
.hero-text::after {
  content: ''; position: absolute; bottom: -2rem; right: 0;
  width: 0; height: 0;
  border-right: 2.5rem solid rgba(42,80,88,0.9);
  border-bottom: 2rem solid transparent;
  mix-blend-mode: multiply;
  z-index: -1;
}
.hero-text > * { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 1rem;
  opacity: 0; transform: translateY(16px); animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}
.hero-claim {
  font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.005em; color: #fff; margin-bottom: 1.2rem;
  opacity: 0; transform: translateY(30px); animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}
.hero-claim .hl { color: var(--lime); }
.hero-intro {
  font-size: 0.92rem; color: #fff; line-height: 1.65; margin-bottom: 1rem; max-width: 400px;
  opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s var(--ease) 0.55s forwards;
}
.hero-features {
  list-style: none; padding: 0; margin: 0 0 1.25rem; max-width: 400px;
  opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s var(--ease) 0.55s forwards;
}
.hero-features li {
  font-size: 0.9rem; color: #fff; line-height: 1.55;
  padding: 0.45rem 0 0.45rem 1rem; position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hero-features li:last-child { border-bottom: none; }
.hero-features li::before {
  content: ''; position: absolute; left: 0.25rem; top: 0.95rem;
  width: 4px; height: 4px; border-radius: 50%; background: var(--lime);
}
.hero-features strong { font-weight: 700; color: #fff; }
.hero-actions {
  display: flex; gap: 0.75rem; align-items: center; position: relative; z-index: 1; margin-top: 1rem;
  opacity: 0; transform: translateY(16px); animation: fadeUp 0.7s var(--ease) 0.7s forwards;
}
.hero-actions .btn { padding: 1.1rem 2.5rem; font-size: 0.85rem; line-height: 1.3; }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem; z-index: 3;
  opacity: 0; transform: translateX(-50%) translateY(16px);
  animation: scrollIndicatorIn 0.7s var(--ease) 1.2s forwards;
}
@keyframes scrollIndicatorIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.scroll-indicator span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.scroll-line {
  width: 1px; height: 44px; background: rgba(255,255,255,0.3); overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: ''; position: absolute; left: 0; top: -100%;
  width: 100%; height: 50%; background: var(--lime);
  animation: scrollTrail 2.2s var(--ease) infinite;
}

.to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-deep); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s ease;
}
.to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { background: var(--teal); }
.to-top.visible:active { transform: translateY(0) scale(0.92); transition-duration: 0.1s; }
.to-top svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer; border: none;
  border-radius: var(--radius-s); transition: all 0.3s var(--ease);
}
.btn-primary {
  padding: 0.9rem 2rem; background: var(--lime); color: var(--bg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(172,191,6,0.2); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }
.btn-outline {
  padding: 0.9rem 2rem; background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════
   SECTION PRIMITIVES
═══════════════════════════════════════════ */
.section-pad { padding: var(--s-section) var(--px); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.9rem;
  display: inline-flex; align-items: center; gap: 0;
  background: var(--lime); padding: 0.3rem 0.9rem 0.3rem 0.8rem;
  border-radius: 0 0 0 var(--radius-s);
  position: relative;
  color: var(--bg);
}
.section-label::after {
  content: ''; position: absolute; bottom: -6px; right: 0;
  width: 0; height: 0;
  border-right: 8px solid var(--lime);
  border-bottom: 6px solid transparent;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.005em; color: var(--text); margin-bottom: 1.5rem;
  max-width: 22ch;
}
.section-title .accent { color: var(--lime); }

.section-subtitle { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; max-width: 600px; }
.intro-lead {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 1100px; margin-top: 1.5rem;
}
.intro-lead p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.65; margin: 0; max-width: 48ch; }
@media (max-width: 768px) {
  .intro-lead { grid-template-columns: 1fr; gap: 1rem; }
}

/* ═══════════════════════════════════════════
   DIVIDER — full-bleed line
═══════════════════════════════════════════ */
.divider { border: none; border-top: 1px solid var(--border-subtle); margin: 0; }

/* ═══════════════════════════════════════════
   INTRO — 5 function cards
═══════════════════════════════════════════ */
.intro-functions {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 3.5rem;
}
.intro-fn-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem; border-radius: var(--radius); text-align: center;
  display: block; color: inherit; text-decoration: none; cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.intro-fn-card:hover { border-color: rgba(172,191,6,0.4); transform: translateY(-2px); }
.intro-fn-icon {
  width: 44px; height: 44px; margin: 0 auto 1.2rem;
  background: rgba(172,191,6,0.1); border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
}
.intro-fn-icon svg {
  width: 22px; height: 22px; color: var(--lime); stroke-width: 1.5;
  transition: transform 0.3s var(--ease);
}
.intro-fn-card:hover .intro-fn-icon { background: rgba(172,191,6,0.16); }
.intro-fn-card:hover .intro-fn-icon svg { transform: translateY(-1px); }
.intro-fn-card h3 {
  font-size: 0.74rem; font-weight: 700; color: var(--lime);
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
}
.intro-fn-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; }

/* ═══════════════════════════════════════════
   SYSTEM GRAPHIC
═══════════════════════════════════════════ */
.system-graphic-container {
  position: relative; max-width: 1080px; margin: 3rem auto 0;
  aspect-ratio: 1134.08 / 595.37;
  background: url('../img/tovion-systemgrafik-hintergrund.webp') center/100% 100% no-repeat;
  border-radius: var(--radius);
  transform: translateX(5%);
}
.system-graphic-container img,
.system-graphic-container object,
.system-graphic-container svg {
  display: block; position: absolute; inset: 0;
  width: 100%; height: 100%; border-radius: var(--radius);
}
.system-graphic-container svg [id$="_igel_top"],
.system-graphic-container svg [id$="_igel_bottom"],
.system-graphic-container svg [id$="_igel_left"],
.system-graphic-container svg [id$="_igel_right"] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.system-graphic-container svg [id$="_igel_top"]    { transform: translateY(-60px); }
.system-graphic-container svg [id$="_igel_bottom"] { transform: translateY(60px); }
.system-graphic-container svg [id$="_igel_left"]   { transform: translateX(-60px); }
.system-graphic-container svg [id$="_igel_right"]  { transform: translateX(60px); }
.system-graphic-container.igel-in svg [id$="_igel_top"],
.system-graphic-container.igel-in svg [id$="_igel_bottom"],
.system-graphic-container.igel-in svg [id$="_igel_left"],
.system-graphic-container.igel-in svg [id$="_igel_right"] {
  opacity: 1; transform: translate(0, 0);
}
.system-graphic-container.igel-in svg #a_igel_top    { transition-delay: 0.00s; }
.system-graphic-container.igel-in svg #b_igel_top    { transition-delay: 0.22s; }
.system-graphic-container.igel-in svg #c_igel_right  { transition-delay: 0.44s; }
.system-graphic-container.igel-in svg #d_igel_right  { transition-delay: 0.66s; }
.system-graphic-container.igel-in svg #e_igel_bottom { transition-delay: 0.88s; }
.system-graphic-container.igel-in svg #f_igel_bottom { transition-delay: 1.10s; }
.system-graphic-container.igel-in svg #g_igel_bottom { transition-delay: 1.32s; }
.system-graphic-container.igel-in svg #h_igel_left   { transition-delay: 1.54s; }
.system-graphic-container.igel-in svg #i_igel_left   { transition-delay: 1.76s; }

/* Igel hover: swap text + line colour */
.system-graphic-container svg [id$="_igel_top"] .cls-1,
.system-graphic-container svg [id$="_igel_bottom"] .cls-1,
.system-graphic-container svg [id$="_igel_left"] .cls-1,
.system-graphic-container svg [id$="_igel_right"] .cls-1,
.system-graphic-container svg [id$="_igel_top"] .cls-2,
.system-graphic-container svg [id$="_igel_bottom"] .cls-2,
.system-graphic-container svg [id$="_igel_left"] .cls-2,
.system-graphic-container svg [id$="_igel_right"] .cls-2 {
  transition: fill 0.25s ease, stroke 0.25s ease;
}
.system-graphic-container svg [id$="_igel_top"]:hover .cls-1,
.system-graphic-container svg [id$="_igel_bottom"]:hover .cls-1,
.system-graphic-container svg [id$="_igel_left"]:hover .cls-1,
.system-graphic-container svg [id$="_igel_right"]:hover .cls-1 {
  fill: #fff;
}
.system-graphic-container svg [id$="_igel_top"]:hover .cls-2,
.system-graphic-container svg [id$="_igel_bottom"]:hover .cls-2,
.system-graphic-container svg [id$="_igel_left"]:hover .cls-2,
.system-graphic-container svg [id$="_igel_right"]:hover .cls-2 {
  stroke: #fff;
}
.system-label {
  position: absolute; display: flex; align-items: flex-start; gap: 0.5rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.system-label.visible { opacity: 1; transform: translateY(0); }
.system-label .label-line { width: 24px; height: 2px; background: var(--lime); margin-top: 0.5em; flex-shrink: 0; }
.system-label .label-text {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
  background: var(--overlay-scrim); padding: 0.25rem 0.6rem; border-radius: var(--radius-s);
}
.label-antriebssteuerung { top: 62%; left: 2%; }
.label-sensorik { top: 75%; left: 2%; }
.label-hochvoltbatterie { bottom: 8%; left: 35%; }
.label-radnabenmotoren { bottom: 8%; right: 22%; }
.label-leistungselektronik { bottom: 18%; right: 5%; }
.label-wechselrichter { top: 18%; left: 32%; }
.label-pv { top: 8%; left: 45%; }
.label-v2x { top: 35%; left: 2%; }
.label-ladedose { top: 42%; right: 8%; }

/* ═══════════════════════════════════════════
   COMPONENT SECTIONS
═══════════════════════════════════════════ */
.component-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.component-inner.reversed { direction: rtl; }
.component-inner.reversed > * { direction: ltr; }

.component-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.005em; color: var(--text); margin-bottom: 1.5rem;
  max-width: 18ch;
}
.component-text h2 .accent { color: var(--lime); }
.component-lead { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; max-width: 58ch; }

.component-visual {
  background: var(--bg-elevated); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
}
.component-visual img,
.component-visual video { width: 100%; height: 100%; object-fit: cover; display: block; }
.component-visual.placeholder span {
  font-size: 0.72rem; color: var(--text-faint); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* key specs */
.key-specs {
  display: flex; gap: 2.5rem; margin: 1.5rem 0; padding: 1.25rem 0;
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.key-spec { display: flex; flex-direction: column; gap: 0.25rem; }
.key-spec-value { font-size: 2.4rem; font-weight: 700; color: var(--lime); line-height: 1.2; }
.key-spec-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.component-text .detail { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.75rem; max-width: 58ch; }
.component-text .detail p + p { margin-top: 0.75rem; }
.component-text .detail h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin: 1rem 0 0.6rem; }

/* ═══════════════════════════════════════════
   SMART GRID — V2L / V2H / V2G
═══════════════════════════════════════════ */
.smartgrid-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.mode-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 2.25rem 1.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.mode-card:hover { border-color: rgba(172,191,6,0.28); background: rgba(255,255,255,0.06); }
.mode-abbrev {
  font-size: 2.2rem; font-weight: 700; color: var(--lime);
  letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.mode-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.mode-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════════
   SPECS
═══════════════════════════════════════════ */
.specs-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: center;
}
.specs-visual {
  position: relative; background: var(--bg-elevated); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border-subtle);
}
.specs-visual img { width: 100%; height: 100%; object-fit: cover; }
.specs-gauge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: var(--overlay-deep); backdrop-filter: blur(12px);
  padding: 1rem 1.5rem; border-radius: var(--radius-s);
  display: flex; align-items: center; gap: 0.75rem;
}
@property --gauge-value {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
.gauge-ring {
  width: 48px; height: 48px; border-radius: 50%;
  --gauge-value: 0%;
  background: conic-gradient(var(--lime) 0 var(--gauge-value), rgba(255,255,255,0.08) var(--gauge-value) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: --gauge-value 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-ring.filled { --gauge-value: 88%; }
.gauge-ring-inner {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
}
.gauge-bolt {
  width: 13px; height: 13px;
  opacity: 0.15; transform: scale(0.85);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-ring.filled .gauge-bolt { opacity: 1; transform: scale(1); }
.gauge-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.specs-data h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; margin-bottom: 2rem; }
.spec-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.spec-row + .spec-row { border-top: 1px solid var(--border-subtle); }
.spec-row-label { font-size: 0.9rem; color: var(--text-muted); }
.spec-row-value { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.specs-cta { margin-top: 2rem; }
.btn-spec {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; background: var(--lime); color: var(--bg);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  border-radius: var(--radius-s); transition: all 0.3s ease;
}
.btn-spec:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(172,191,6,0.2); }
.btn-spec:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }
.btn-spec svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════
   USE CASES
═══════════════════════════════════════════ */
.usecases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
.usecase-card {
  position: relative; overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem; border-radius: var(--radius); color: #fff;
}
.usecase-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background-color: var(--bg-elevated);
  display: block;
  transition: transform 0.8s var(--ease);
}
.usecase-card:hover .usecase-bg { transform: scale(1.03); }
.usecase-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(12,26,29,0.95) 0%, rgba(12,26,29,0.8) 45%, rgba(12,26,29,0.35) 100%);
}
.usecase-content { position: relative; z-index: 2; }
.usecase-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.usecase-card p { font-size: 1rem; color: rgba(255,255,255,0.9); line-height: 1.6; font-weight: 500; }

/* ═══════════════════════════════════════════
   DEVELOPMENT
═══════════════════════════════════════════ */
.dev-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 5rem; align-items: center;
}
.dev-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--bg); background: var(--lime);
  padding: 0.35rem 0.9rem; border-radius: var(--radius-s); margin-bottom: 0.75rem;
}
.dev-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.75rem; max-width: 58ch; }
.foerder { margin-top: 2.5rem; max-width: 520px; }
.foerder-logo {
  display: inline-block; background: #ffffff;
  padding: 1.25rem 1.5rem; border-radius: var(--radius-s);
}
.foerder-logo img { display: block; height: 120px; width: auto; }
.foerder p { font-size: 0.78rem; color: var(--text-faint); margin-top: 1.25rem; line-height: 1.6; max-width: 54ch; }

.roadmap { position: relative; display: flex; flex-direction: column; gap: 1.75rem; padding-left: 1.75rem; --roadmap-progress: 50%; }
.roadmap::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--lime) 0%, var(--lime) var(--roadmap-progress), rgba(255,255,255,0.12) var(--roadmap-progress), rgba(255,255,255,0.12) 100%);
  transform-origin: top; transform: scaleY(0);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.roadmap.is-drawn::before { transform: scaleY(1); }
.roadmap-item { position: relative; display: block; opacity: 0; transform: translateX(-6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.roadmap.is-drawn .roadmap-item { opacity: 1; transform: none; }
.roadmap.is-drawn .roadmap-item:nth-child(1) { transition-delay: 0.35s; }
.roadmap.is-drawn .roadmap-item:nth-child(2) { transition-delay: 0.60s; }
.roadmap.is-drawn .roadmap-item:nth-child(3) { transition-delay: 0.85s; }
.roadmap.is-drawn .roadmap-item:nth-child(4) { transition-delay: 1.10s; }
.roadmap-item::before {
  content: ''; position: absolute; left: -1.75rem; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 4px rgba(172,191,6,0.12);
}
.roadmap-item.is-future::before {
  background: transparent; border: 1px solid var(--lime); box-shadow: none;
}
.roadmap-item.is-pending::before {
  background: rgba(255,255,255,0.18); box-shadow: none;
}
.roadmap-item strong {
  display: block; color: var(--text); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.02em; margin-bottom: 0.4rem;
}
.roadmap-item span {
  display: block; font-size: 0.98rem; color: var(--text-muted); line-height: 1.6;
}
.dev-aside { display: flex; flex-direction: column; gap: 2.5rem; }

/* ═══════════════════════════════════════════
   CTA / CONTACT
═══════════════════════════════════════════ */
.cta-inner { max-width: var(--max-w); margin: 0 auto; text-align: left; }
.cta-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 3rem; }
.btn-cta-mail { padding: 1.1rem 2.5rem; font-size: 0.85rem; margin-top: 2.5rem; }
.cta-address {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-top: 2.5rem;
  font-style: normal; font-size: 1rem; line-height: 1.6;
  color: var(--text-muted);
}
.cta-address strong { color: var(--text); font-weight: 700; }
.cta-address a { color: inherit; transition: color 0.25s ease; }
.cta-address a:hover { color: var(--lime); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { background: var(--bg) url('../img/tovion-pattern.svg') repeat; background-size: 25%; color: var(--text-muted); padding: 5rem var(--px) 2rem; border-top: 1px solid var(--border-subtle); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-subtle); }
.footer-brand p { font-size: 1rem; line-height: 1.7; margin-top: 1rem; }
.footer-brand img {
  height: 22px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(68%) saturate(451%) hue-rotate(22deg) brightness(93%) contrast(98%);
}
.footer-col h3 { color: var(--lime); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--text-faint); font-size: 1rem; transition: color 0.25s ease, transform 0.25s var(--ease); }
.footer-col a:hover { color: #fff; transform: translateX(2px); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: 0.72rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-faint); transition: color 0.3s ease; }
.footer-legal a:hover { color: var(--lime); }
.footer-foerder { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); font-size: 0.68rem; color: var(--text-faint); max-width: var(--max-w); margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════
   REVEAL — motion-powered, class as fallback
═══════════════════════════════════════════ */
.js-ready [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-ready [data-reveal].visible { opacity: 1; transform: none; }
.js-ready [data-bubble] { opacity: 0; transform: translateX(-20px) scale(0.85); transform-origin: left center; }
.js-ready [data-bubble].visible { opacity: 1; transform: none; }
.js-ready .intro-fn-card,
.js-ready .mode-card,
.js-ready .usecase-card { opacity: 0; }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes scrollTrail {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1170px) {
  .nav-logo img { height: 28px; }
  .nav.scrolled .nav-logo img { height: 28px; }
}
@media (max-width: 1080px) {
  :root { --px: 3rem; }
  .nav-links a { font-size: calc(0.95rem - 1px); }
  .nav-links { gap: 1.8rem; }
}
@media (max-width: 1024px) {
  .hero-content { padding-left: 3rem; }
  .intro-functions { grid-template-columns: repeat(3, 1fr); }
  .component-inner, .component-inner.reversed { grid-template-columns: 1fr; direction: ltr; }
  .specs-inner { grid-template-columns: 1fr; }
  .smartgrid-modes { grid-template-columns: 1fr; }
  .dev-inner { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh; height: 100dvh;
    z-index: 1000;
    background: rgba(21,40,44,0.97);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    justify-content: center; align-items: center;
    gap: 2rem; padding: 5rem 2rem 7rem;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    animation: overlayIn 0.4s var(--ease);
  }
  .nav-links.open a::after { display: none !important; }
  .nav-links.open li {
    width: 100%; text-align: center;
    opacity: 0; transform: translateY(12px);
    animation: menuLinkIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .nav-links.open li:nth-child(1) { animation-delay: 0.12s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.18s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.24s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.30s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.36s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.42s; }
  .nav-links.open a {
    display: inline-block;
    color: var(--lime) !important; font-size: 1.6rem !important;
    letter-spacing: 0.08em !important;
    padding: 0.4rem 0.8rem;
  }
  @keyframes menuLinkIn {
    to { opacity: 1; transform: none; }
  }
  .nav-links.open a:hover,
  .nav-links.open a.active { color: #fff !important; }
  .nav-links.open .nav-cta {
    background: transparent !important;
    color: var(--lime) !important;
    padding: 0 !important;
    border-radius: 0;
    letter-spacing: 0.08em !important;
  }
  .nav-links.open .nav-cta:hover {
    background: transparent !important;
    color: var(--lime) !important;
    transform: none;
  }
  @keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
@media (max-width: 768px) {
  :root { --px: 1.5rem; }
  .nav { padding: 1rem var(--px); }
  .nav.scrolled { padding: 0.75rem var(--px); }

  .hero { min-height: auto; display: block; }
  .hero-image-bg { position: relative; inset: auto; height: 42vh; min-height: 280px; }
  .hero-image-bg img { object-position: center center; }
  .hero-image-bg::after {
    background:
      linear-gradient(to bottom, rgba(12,26,29,0.65) 0%, rgba(12,26,29,0.25) 30%, transparent 55%),
      linear-gradient(to bottom, rgba(12,26,29,0.15) 0%, rgba(12,26,29,0.55) 100%);
  }
  .hero-content { padding: 0 var(--px) 3rem; margin-top: -4rem; justify-content: center; }
  .hero-text { padding: 2rem; max-width: 100%; }
  .hero-text::after { display: none; }
  .hero-text::before { border-radius: 1rem; }
  .scroll-indicator { display: none; }
  .section-pad { padding: 5rem var(--px); }
  .intro-functions { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: 1fr; }
  .system-graphic-container { max-width: none; width: 100%; transform: none; margin: 3rem 0 0; }

  .footer { background-size: 50%; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .intro-functions { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
