:root {
  --logo-start-size: 240px;
  --logo-mint: #a6e384;
  --logo-mint-soft: rgba(166, 227, 132, 0.35);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #eaffea;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse at top, #142220 0%, #08110d 60%, #030806 100%) fixed;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  overflow-x: hidden;
}

body.intro-locked {
  overflow: hidden;
  height: 100vh;
}

#matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(166, 227, 132, 0.55) 0%,
    rgba(166, 227, 132, 0.22) 32%,
    rgba(166, 227, 132, 0.06) 60%,
    rgba(166, 227, 132, 0) 78%
  );
  filter: blur(34px);
  mix-blend-mode: screen;
  z-index: 5;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

#mouse-glow.visible {
  opacity: 1;
}

#intro-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--logo-start-size);
  height: auto;
  z-index: 6;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  transform-origin: 50% 50%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 28px var(--logo-mint-soft));
  transition: filter 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

#intro-logo.calm {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

#intro-logo.interactive {
  pointer-events: auto;
  cursor: pointer;
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#intro-logo.interactive:hover,
#intro-logo.interactive:focus-visible {
  filter:
    drop-shadow(0 0 22px rgba(166, 227, 132, 0.75))
    drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
  outline: none;
}

#intro-logo.charging {
  filter:
    drop-shadow(0 0 36px rgba(166, 227, 132, 1))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.45)) !important;
}

/* ============================================================
   MAIN NAV
   ============================================================ */
#main-nav {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 88px;
  padding: 0 8px;
  gap: 2px;
  background: rgba(15, 26, 22, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(166, 227, 132, 0.18);
  border-radius: 999px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#main-nav.revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-pill {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 0;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c8f0ae 0%, #a6e384 100%);
  box-shadow:
    0 4px 14px rgba(166, 227, 132, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition:
    left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    box-shadow 0.45s ease;
}

#main-nav.revealed .nav-pill {
  opacity: 1;
  transition-delay: 0.22s, 0.22s, 0.22s, 0s;
}

@keyframes pillPulse {
  0% {
    box-shadow:
      0 4px 14px rgba(166, 227, 132, 0.4),
      inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }
  50% {
    box-shadow:
      0 6px 24px rgba(166, 227, 132, 0.75),
      inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  }
  100% {
    box-shadow:
      0 4px 14px rgba(166, 227, 132, 0.4),
      inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }
}

.nav-pill.pulse {
  animation: pillPulse 0.6s ease;
}

.nav-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 26px;
  border: none;
  background: transparent;
  color: rgba(234, 255, 234, 0.82);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease;
}

#main-nav.revealed .nav-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay:
    calc(0.07s * var(--i, 0) + 0.05s),
    calc(0.07s * var(--i, 0) + 0.05s),
    0s;
}

.nav-item:hover {
  color: rgba(234, 255, 234, 1);
}

.nav-item:focus-visible {
  outline: 2px solid rgba(166, 227, 132, 0.7);
  outline-offset: 2px;
}

.nav-item.is-active {
  color: #0d1812;
}

#main-nav.revealed .nav-item:active {
  transform: translateY(0) scale(0.94);
  transition-duration: 0.12s;
}

@media (max-width: 720px) {
  #main-nav {
    top: 16px;
    right: 16px;
    height: 60px;
    padding: 0 6px;
  }
  .nav-pill {
    top: 7px;
    bottom: 7px;
    left: 6px;
  }
  .nav-item {
    padding: 0 16px;
    font-size: 15px;
  }
}

/* ============================================================
   PAGE LAYOUT — sections, container, reveals
   ============================================================ */
#page {
  position: relative;
  z-index: 3;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
}

.section-head {
  text-align: center;
  margin: 0 auto 72px;
  max-width: 760px;
}

.section-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(166, 227, 132, 0.85);
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #f6fff0;
}

.section-sub {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(234, 255, 234, 0.7);
}

.text-mint {
  background: linear-gradient(135deg, #c8f0ae 0%, #a6e384 60%, #7fce5b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
  will-change: opacity, transform;
}

.reveal[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
.reveal[data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.reveal[data-reveal="up"]    { transform: translate3d(0, 32px, 0); }

.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

#hero.revealed {
  opacity: 1;
}

.section-hero {
  text-align: center;
  justify-content: center;
}

.hero-text {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(186, 232, 154, 0.95);
  background: rgba(166, 227, 132, 0.08);
  border: 1px solid rgba(166, 227, 132, 0.22);
  border-radius: 999px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a6e384;
  box-shadow: 0 0 12px rgba(166, 227, 132, 0.9);
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(34px, 6.2vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #f6fff0;
}

.hero-title-grad {
  background: linear-gradient(135deg, #c8f0ae 0%, #a6e384 50%, #6fbe4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(234, 255, 234, 0.75);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Glow button */
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #c8f0ae 0%, #a6e384 60%, #7fce5b 100%);
  color: #08130c;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(166, 227, 132, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.btn-glow svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px rgba(166, 227, 132, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn-glow:hover svg {
  transform: translateX(4px);
}

.btn-glow:active {
  transform: translateY(0);
}

.btn-glow--lg {
  padding: 18px 30px;
  font-size: 16px;
  border-radius: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(234, 255, 234, 0.9);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(166, 227, 132, 0.25);
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  background: rgba(166, 227, 132, 0.08);
  border-color: rgba(166, 227, 132, 0.5);
  color: #eaffea;
}

.hero-card {
  display: flex;
  justify-content: center;
}

/* Scroll hint at the bottom of hero */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(234, 255, 234, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.scroll-hint:hover { color: #c8f0ae; }

.scroll-hint-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(166, 227, 132, 0.7));
  position: relative;
  overflow: hidden;
}

.scroll-hint-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, #a6e384);
  animation: scrollHintGlide 2s ease-in-out infinite;
}

@keyframes scrollHintGlide {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 880px) {
  .scroll-hint { display: none; }
}

.profile-card-wrap {
  position: relative;
  perspective: 700px;
  isolation: isolate;
  pointer-events: auto;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --background-x: 50%;
  --background-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0.5;
  --pointer-from-left: 0.5;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
}

.profile-card-wrap::before {
  content: '';
  position: absolute;
  inset: -36px;
  background: radial-gradient(
    circle at calc(var(--pointer-from-left) * 100%) calc(var(--pointer-from-top) * 100%),
    rgba(186, 232, 154, 0.65) 0%,
    rgba(120, 200, 120, 0.32) 30%,
    transparent 65%
  );
  filter: blur(52px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.profile-card-wrap.active::before {
  opacity: 0.9;
}

.profile-card {
  position: relative;
  width: min(360px, calc(100vw - 64px));
  aspect-ratio: 0.718;
  max-height: calc(100vh - 200px);
  border-radius: 28px;
  overflow: hidden;
  transform: rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(ellipse at top, rgba(46, 110, 70, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, rgba(14, 38, 24, 0.9) 0%, rgba(6, 14, 10, 0.96) 100%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(166, 227, 132, 0.12) inset,
    inset 0 0 80px rgba(166, 227, 132, 0.08);
  cursor: pointer;
}

.profile-card-wrap.active .profile-card {
  transition: transform 0.08s linear;
}

.pc-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background-image:
    /* Diagonal silver streaks for metallic shimmer */
    repeating-linear-gradient(
      -45deg,
      #0e1a14 0%,
      hsl(140, 22%, 70%) 3.8%,
      hsl(140, 32%, 65%) 4.5%,
      hsl(140, 22%, 70%) 5.2%,
      #0e1a14 10%,
      #0e1a14 12%
    ),
    /* Mint vertical shift (the "rainbow" in green only) */
    repeating-linear-gradient(
      0deg,
      hsl(95, 75%, 72%) 0%,
      hsl(120, 80%, 80%) 5%,
      hsl(140, 75%, 65%) 10%,
      hsl(80, 65%, 58%) 15%,
      hsl(110, 80%, 76%) 20%,
      hsl(95, 75%, 72%) 25%
    );
  background-size: 220% 220%, 500% 500%;
  background-position: var(--background-x) var(--background-y), 0% var(--background-y);
  background-blend-mode: color;

  /* Mask: tiled </> pattern — randomised positions, sizes & subtle rotations */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><g font-family='ui-monospace, Menlo, Consolas, monospace' font-weight='800' fill='white'><text x='22' y='58' font-size='38'>&lt;/&gt;</text><text x='148' y='38' font-size='17' opacity='0.55' transform='rotate(-7 158 33)'>&lt;/&gt;</text><text x='235' y='80' font-size='26' opacity='0.7'>&lt;/&gt;</text><text x='95' y='110' font-size='15' opacity='0.5'>&lt;/&gt;</text><text x='185' y='150' font-size='30' opacity='0.82' transform='rotate(6 200 144)'>&lt;/&gt;</text><text x='38' y='168' font-size='22' opacity='0.65'>&lt;/&gt;</text><text x='258' y='178' font-size='17' opacity='0.5'>&lt;/&gt;</text><text x='128' y='205' font-size='28' opacity='0.78'>&lt;/&gt;</text><text x='12' y='240' font-size='19' opacity='0.55'>&lt;/&gt;</text><text x='220' y='248' font-size='22' opacity='0.7' transform='rotate(-4 232 242)'>&lt;/&gt;</text><text x='75' y='268' font-size='24' opacity='0.7'>&lt;/&gt;</text><text x='165' y='288' font-size='15' opacity='0.45'>&lt;/&gt;</text><text x='265' y='292' font-size='18' opacity='0.55'>&lt;/&gt;</text></g></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><g font-family='ui-monospace, Menlo, Consolas, monospace' font-weight='800' fill='white'><text x='22' y='58' font-size='38'>&lt;/&gt;</text><text x='148' y='38' font-size='17' opacity='0.55' transform='rotate(-7 158 33)'>&lt;/&gt;</text><text x='235' y='80' font-size='26' opacity='0.7'>&lt;/&gt;</text><text x='95' y='110' font-size='15' opacity='0.5'>&lt;/&gt;</text><text x='185' y='150' font-size='30' opacity='0.82' transform='rotate(6 200 144)'>&lt;/&gt;</text><text x='38' y='168' font-size='22' opacity='0.65'>&lt;/&gt;</text><text x='258' y='178' font-size='17' opacity='0.5'>&lt;/&gt;</text><text x='128' y='205' font-size='28' opacity='0.78'>&lt;/&gt;</text><text x='12' y='240' font-size='19' opacity='0.55'>&lt;/&gt;</text><text x='220' y='248' font-size='22' opacity='0.7' transform='rotate(-4 232 242)'>&lt;/&gt;</text><text x='75' y='268' font-size='24' opacity='0.7'>&lt;/&gt;</text><text x='165' y='288' font-size='15' opacity='0.45'>&lt;/&gt;</text><text x='265' y='292' font-size='18' opacity='0.55'>&lt;/&gt;</text></g></svg>");
  -webkit-mask-size: 300px 300px;
  mask-size: 300px 300px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;

  mix-blend-mode: color-dodge;
  filter: brightness(0.78) contrast(1.4) saturate(1.25);
  animation: pcHoloShift 16s linear infinite;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

@keyframes pcHoloShift {
  0%   { background-position: 0% 0%, 0% 0%; }
  100% { background-position: 100% 100%, 0% 500%; }
}

.profile-card-wrap.active .pc-shine {
  animation-play-state: paused;
  filter: brightness(1) contrast(1.55) saturate(1.6);
}

.pc-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    farthest-corner circle at var(--pointer-x) var(--pointer-y),
    hsla(248, 25%, 90%, 0.45) 12%,
    hsla(207, 40%, 25%, 0.65) 90%
  );
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.profile-card-wrap.active .pc-glare {
  opacity: 1;
}

.pc-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pc-avatar {
  position: absolute;
  bottom: -10%;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: auto;
  height: 96%;
  max-width: 130%;
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
  transform: translate3d(
    calc((var(--pointer-from-left) - 0.5) * 14px),
    calc((var(--pointer-from-top) - 0.5) * 6px),
    0
  );
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.profile-card-wrap.active .pc-avatar {
  transition: transform 0.1s linear;
}

.pc-details {
  position: absolute;
  top: 28px;
  left: 22px;
  right: 22px;
  z-index: 3;
  text-align: center;
  transform: translate3d(
    calc((var(--pointer-from-left) - 0.5) * -6px),
    calc((var(--pointer-from-top) - 0.5) * -3px),
    0
  );
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-card-wrap.active .pc-details {
  transition: transform 0.1s linear;
}

.pc-name {
  margin: 0;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.05;
  background: linear-gradient(to bottom, #ffffff 0%, #c8d8e8 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.pc-title {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(186, 232, 154, 0.85);
}

@media (max-width: 540px) {
  .profile-card {
    width: min(310px, calc(100vw - 32px));
  }
  .pc-name {
    font-size: 22px;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.section-about {
  padding-top: 100px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo-frame {
  position: relative;
  width: min(320px, 90%);
  aspect-ratio: 0.8;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(46, 110, 70, 0.3) 0%, rgba(8, 18, 12, 0.6) 100%);
  border: 1px solid rgba(166, 227, 132, 0.22);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 60px rgba(166, 227, 132, 0.06);
}

.about-photo-frame img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.about-photo-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(166, 227, 132, 0.35) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.about-text p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(234, 255, 234, 0.78);
}

.about-text strong {
  color: #f6fff0;
  font-weight: 700;
}

.about-stats {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-stats li {
  padding: 18px 14px;
  border-radius: 16px;
  background: rgba(166, 227, 132, 0.04);
  border: 1px solid rgba(166, 227, 132, 0.14);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #c8f0ae;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 255, 234, 0.55);
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   LEISTUNGEN / SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(28, 50, 38, 0.55) 0%, rgba(10, 22, 16, 0.75) 100%);
  border: 1px solid rgba(166, 227, 132, 0.14);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  --tx: 0deg;
  --ty: 0deg;
  --mx: 50%;
  --my: 50%;
}

.service-card:hover {
  transform: perspective(900px) rotateX(var(--ty)) rotateY(var(--tx)) translateZ(0);
  border-color: rgba(166, 227, 132, 0.4);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(166, 227, 132, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.service-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--mx) var(--my),
    rgba(166, 227, 132, 0.18) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover .service-shine {
  opacity: 1;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 22px;
  color: #c8f0ae;
  background: rgba(166, 227, 132, 0.1);
  border: 1px solid rgba(166, 227, 132, 0.25);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #f6fff0;
}

.service-text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(234, 255, 234, 0.72);
}

.service-example {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(166, 227, 132, 0.18);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(234, 255, 234, 0.55);
}

.service-example strong {
  color: #c8f0ae;
  font-weight: 700;
}

.service-card--feature {
  background:
    linear-gradient(160deg, rgba(46, 110, 70, 0.5) 0%, rgba(10, 25, 18, 0.85) 100%);
  border-color: rgba(166, 227, 132, 0.35);
}

.service-card--feature .service-icon {
  background: rgba(166, 227, 132, 0.18);
  border-color: rgba(166, 227, 132, 0.45);
}

.service-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #08130c;
  background: linear-gradient(135deg, #c8f0ae, #a6e384);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(166, 227, 132, 0.35);
  z-index: 2;
}

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

.services-cta {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .services-cta { margin-top: 32px; }
}

/* ============================================================
   CTA
   ============================================================ */
.section-cta {
  padding: 80px 0 100px;
}

.cta-card {
  position: relative;
  padding: 60px 36px;
  text-align: center;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at top, rgba(46, 110, 70, 0.35) 0%, transparent 60%),
    linear-gradient(160deg, rgba(20, 50, 32, 0.75) 0%, rgba(8, 18, 12, 0.95) 100%);
  border: 1px solid rgba(166, 227, 132, 0.22);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 80px rgba(166, 227, 132, 0.05);
  overflow: hidden;
}

.cta-card::before,
.cta-card::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-card::before {
  top: -120px;
  left: -80px;
  background: rgba(166, 227, 132, 0.25);
}

.cta-card::after {
  bottom: -140px;
  right: -100px;
  background: rgba(113, 196, 255, 0.18);
}

.cta-title {
  position: relative;
  margin: 0 0 18px;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #f6fff0;
}

.cta-sub {
  position: relative;
  margin: 0 auto 34px;
  max-width: 580px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(234, 255, 234, 0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */
.section-footer {
  padding: 40px 0 36px;
  border-top: 1px solid rgba(166, 227, 132, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.footer-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c8f0ae;
}

.footer-nav {
  display: flex;
  gap: 22px;
}

.footer-nav a {
  color: rgba(234, 255, 234, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #c8f0ae; }

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(234, 255, 234, 0.45);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   STATIC PAGES — Kontakt, Impressum, Datenschutz
   ============================================================ */
.section-page {
  padding: 180px 0 80px;
  min-height: calc(100vh - 120px);
}

.page-head {
  margin: 0 auto 56px;
  max-width: 760px;
  text-align: center;
}

.page-head .section-title {
  font-size: clamp(34px, 6vw, 60px);
}

/* ---- Kontakt ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}

.contact-info {
  padding: 32px 28px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(28, 50, 38, 0.55) 0%, rgba(10, 22, 16, 0.75) 100%);
  border: 1px solid rgba(166, 227, 132, 0.18);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

.contact-info h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(186, 232, 154, 0.85);
}

.contact-info p,
.contact-info a {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 600;
  color: #f6fff0;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: #c8f0ae;
}

.contact-info .contact-availability {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed rgba(166, 227, 132, 0.18);
  font-size: 13px;
  font-weight: 500;
  color: rgba(234, 255, 234, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-availability .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a6e384;
  box-shadow: 0 0 12px rgba(166, 227, 132, 0.9);
  animation: dotPulse 2.4s ease-in-out infinite;
}

.contact-form {
  padding: 32px 28px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(28, 50, 38, 0.55) 0%, rgba(10, 22, 16, 0.75) 100%);
  border: 1px solid rgba(166, 227, 132, 0.18);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(186, 232, 154, 0.8);
}

.form-field input,
.form-field textarea {
  padding: 13px 14px;
  background: rgba(8, 18, 12, 0.6);
  border: 1px solid rgba(166, 227, 132, 0.18);
  border-radius: 12px;
  color: #f6fff0;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(166, 227, 132, 0.6);
  box-shadow: 0 0 0 4px rgba(166, 227, 132, 0.12);
}

.form-submit {
  margin-top: 8px;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Legal pages (Impressum & Datenschutz) ---- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 32px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(20, 32, 26, 0.6) 0%, rgba(10, 22, 16, 0.85) 100%);
  border: 1px solid rgba(166, 227, 132, 0.14);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #c8f0ae;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(234, 255, 234, 0.78);
}

.legal-content a {
  color: #c8f0ae;
  text-decoration: none;
  border-bottom: 1px dashed rgba(166, 227, 132, 0.4);
}

.legal-content a:hover { border-bottom-style: solid; }

.legal-content code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(166, 227, 132, 0.1);
  border: 1px solid rgba(166, 227, 132, 0.22);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: #d6f1bf;
}

.legal-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-placeholder {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(166, 227, 132, 0.08);
  border: 1px dashed rgba(166, 227, 132, 0.3);
  font-size: 14px;
  color: rgba(234, 255, 234, 0.7);
}

/* ============================================================
   LEISTUNGEN PAGE — detailed services with per-service animation
   ============================================================ */
.leistungen-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
}

.leistung {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
  padding: 36px 36px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(28, 50, 38, 0.45) 0%, rgba(10, 22, 16, 0.7) 100%);
  border: 1px solid rgba(166, 227, 132, 0.14);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.leistung::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at 80% 0%,
    rgba(166, 227, 132, 0.12) 0%,
    transparent 55%
  );
}

.leistung--reverse {
  grid-template-columns: 1.25fr 1fr;
}

.leistung--reverse .leistung-anim {
  order: 2;
}

.leistung-anim {
  position: relative;
  width: 100%;
  aspect-ratio: 1.05;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(46, 110, 70, 0.45) 0%, transparent 65%),
    linear-gradient(180deg, rgba(8, 18, 12, 0.85) 0%, rgba(4, 12, 8, 0.95) 100%);
  border: 1px solid rgba(166, 227, 132, 0.2);
  box-shadow: inset 0 0 50px rgba(166, 227, 132, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leistung-text h2 {
  margin: 6px 0 16px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f6fff0;
}

.leistung-text > p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(234, 255, 234, 0.78);
}

.leistung-tag {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(186, 232, 154, 0.85);
}

.leistung-points {
  margin: 18px 0 18px;
  padding: 0;
  list-style: none;
}

.leistung-points li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(234, 255, 234, 0.8);
}

.leistung-points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a6e384;
  box-shadow: 0 0 10px rgba(166, 227, 132, 0.55);
}

.leistung-example {
  margin: 16px 0 0 !important;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(166, 227, 132, 0.06);
  border-left: 2px solid rgba(166, 227, 132, 0.5);
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: rgba(234, 255, 234, 0.78);
}

@media (max-width: 880px) {
  .leistung,
  .leistung--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px;
  }
  .leistung--reverse .leistung-anim {
    order: 0;
  }
}

/* ---- 1) Gears animation -------------------------------- */
.leistung-anim--gears {
  --gear-color: rgba(166, 227, 132, 0.85);
}

.gear {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(28, 60, 40, 0.9) 55%, rgba(10, 22, 16, 0.9) 100%);
  border: 2px solid var(--gear-color);
  box-shadow:
    0 0 24px rgba(166, 227, 132, 0.25),
    inset 0 0 18px rgba(166, 227, 132, 0.18);
}

.gear-lg {
  width: 150px;
  height: 150px;
  top: 28px;
  left: 36px;
  animation: gearSpin 9s linear infinite;
}

.gear-sm {
  width: 88px;
  height: 88px;
  bottom: 30px;
  right: 36px;
  animation: gearSpin 6s linear infinite reverse;
}

.gear .gear-tooth {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--gear-color);
  border-radius: 3px;
  transform-origin: 50% calc(50% + 75px);
}

.gear-sm .gear-tooth {
  top: -8px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  transform-origin: 50% calc(50% + 44px);
}

.gear-lg .gear-tooth:nth-child(1) { transform: rotate(0deg); }
.gear-lg .gear-tooth:nth-child(2) { transform: rotate(45deg); }
.gear-lg .gear-tooth:nth-child(3) { transform: rotate(90deg); }
.gear-lg .gear-tooth:nth-child(4) { transform: rotate(135deg); }
.gear-lg .gear-tooth:nth-child(5) { transform: rotate(180deg); }
.gear-lg .gear-tooth:nth-child(6) { transform: rotate(225deg); }
.gear-lg .gear-tooth:nth-child(7) { transform: rotate(270deg); }
.gear-lg .gear-tooth:nth-child(8) { transform: rotate(315deg); }

.gear-sm .gear-tooth:nth-child(1) { transform: rotate(0deg); }
.gear-sm .gear-tooth:nth-child(2) { transform: rotate(60deg); }
.gear-sm .gear-tooth:nth-child(3) { transform: rotate(120deg); }
.gear-sm .gear-tooth:nth-child(4) { transform: rotate(180deg); }
.gear-sm .gear-tooth:nth-child(5) { transform: rotate(240deg); }
.gear-sm .gear-tooth:nth-child(6) { transform: rotate(300deg); }

.gear .gear-hub {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: rgba(166, 227, 132, 0.85);
  box-shadow: 0 0 12px rgba(166, 227, 132, 0.7);
}

@keyframes gearSpin {
  to { transform: rotate(360deg); }
}

/* ---- 2) Terminal animation ----------------------------- */
.terminal {
  width: 78%;
  border-radius: 12px;
  background: rgba(6, 14, 10, 0.95);
  border: 1px solid rgba(166, 227, 132, 0.25);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(166, 227, 132, 0.05);
  overflow: hidden;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(20, 34, 26, 0.85);
  border-bottom: 1px solid rgba(166, 227, 132, 0.14);
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(166, 227, 132, 0.35);
}

.terminal-bar span:first-child { background: #ff6f6f; }
.terminal-bar span:nth-child(2) { background: #ffce66; }
.terminal-bar span:nth-child(3) { background: #a6e384; }

.terminal-body {
  padding: 14px 14px 16px;
}

.t-line {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #d6f1bf;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: termType 1.2s steps(28, end) forwards;
  opacity: 0;
}

.t-line:nth-child(1) { animation-delay: 0.4s; }
.t-line:nth-child(2) { animation-delay: 1.8s; }
.t-line:nth-child(3) { animation-delay: 3.2s; }

.t-prompt {
  color: #a6e384;
  margin-right: 6px;
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 4px;
  background: #a6e384;
  vertical-align: -2px;
  animation: termBlink 1s steps(2) infinite;
}

@keyframes termType {
  from { width: 0; opacity: 1; }
  to   { width: 100%; opacity: 1; }
}

@keyframes termBlink {
  50% { opacity: 0; }
}

/* ---- 3) ERP wire / packets ----------------------------- */
.leistung-anim--erp {
  flex-direction: row;
  gap: 8px;
}

.erp-node {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(28, 60, 40, 0.9) 0%, rgba(10, 22, 16, 0.95) 100%);
  border: 1.5px solid rgba(166, 227, 132, 0.45);
  box-shadow:
    0 0 22px rgba(166, 227, 132, 0.18),
    inset 0 0 14px rgba(166, 227, 132, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #c8f0ae;
  text-transform: uppercase;
  flex-shrink: 0;
}

.erp-wire {
  position: relative;
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(166, 227, 132, 0.15) 0%,
    rgba(166, 227, 132, 0.45) 50%,
    rgba(166, 227, 132, 0.15) 100%);
  border-radius: 1px;
  max-width: 130px;
}

.erp-packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #a6e384;
  box-shadow: 0 0 14px rgba(166, 227, 132, 0.85);
  animation: erpPacket 2.4s ease-in-out infinite;
}

.erp-packet--1 { animation-delay: 0s; }
.erp-packet--2 { animation-delay: 0.8s; background: #c8f0ae; }
.erp-packet--3 { animation-delay: 1.6s; }

@keyframes erpPacket {
  0%   { left: 0%;   transform: scale(0.6); opacity: 0; }
  15%  { opacity: 1; transform: scale(1); }
  85%  { opacity: 1; transform: scale(1); }
  100% { left: 100%; transform: scale(0.6); opacity: 0; }
}

/* ---- 4) Loop animation --------------------------------- */
.loop-svg {
  width: 75%;
  height: 75%;
  overflow: visible;
}

.loop-track {
  fill: none;
  stroke: rgba(166, 227, 132, 0.15);
  stroke-width: 4;
}

.loop-arc {
  fill: none;
  stroke: #a6e384;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 70 207;
  transform-origin: 60px 60px;
  animation: loopSpin 3.6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(166, 227, 132, 0.6));
}

.loop-icons {
  transform-origin: 60px 60px;
  animation: loopSpin 14s linear infinite reverse;
}

.loop-dot {
  fill: rgba(166, 227, 132, 0.85);
  filter: drop-shadow(0 0 4px rgba(166, 227, 132, 0.7));
}

@keyframes loopSpin {
  to { transform: rotate(360deg); }
}

/* ---- 5) Website / browser frame ------------------------ */
.web-frame {
  width: 80%;
  border-radius: 12px;
  background: rgba(6, 14, 10, 0.95);
  border: 1px solid rgba(166, 227, 132, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.web-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(20, 34, 26, 0.85);
  border-bottom: 1px solid rgba(166, 227, 132, 0.14);
}

.web-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(166, 227, 132, 0.35);
}

.web-bar span:first-child { background: #ff6f6f; }
.web-bar span:nth-child(2) { background: #ffce66; }
.web-bar span:nth-child(3) { background: #a6e384; }

.web-canvas {
  position: relative;
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.web-block {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(166, 227, 132, 0.32) 0%,
    rgba(166, 227, 132, 0.18) 100%);
}

.web-block--head {
  width: 60%;
  height: 14px;
  background: linear-gradient(90deg, #c8f0ae 0%, #a6e384 100%);
  box-shadow: 0 0 10px rgba(166, 227, 132, 0.4);
}

.web-block--row {
  width: 100%;
}

.web-block--short {
  width: 75%;
}

.web-block--cta {
  width: 38%;
  height: 18px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c8f0ae 0%, #a6e384 100%);
  box-shadow: 0 0 14px rgba(166, 227, 132, 0.5);
}

.web-shimmer {
  position: absolute;
  top: 0;
  left: -40%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%);
  transform: skewX(-18deg);
  animation: webShimmer 3.4s ease-in-out infinite;
}

@keyframes webShimmer {
  0%   { left: -40%; }
  60%  { left: 110%; }
  100% { left: 110%; }
}

/* ---- CTA block at bottom of leistungen page ------------ */
.leistungen-cta {
  margin: 80px auto 0;
  max-width: 720px;
  padding: 40px 32px;
  text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top, rgba(46, 110, 70, 0.35) 0%, transparent 60%),
    linear-gradient(160deg, rgba(28, 50, 38, 0.55) 0%, rgba(10, 22, 16, 0.78) 100%);
  border: 1px solid rgba(166, 227, 132, 0.2);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

.leistungen-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: #f6fff0;
}

.leistungen-cta p {
  margin: 0 0 22px;
  font-size: 15px;
  color: rgba(234, 255, 234, 0.75);
}

/* ============================================================
   LANGUAGE SWITCH (fixed bottom-right)
   ============================================================ */
#lang-switch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 7;
  display: inline-flex;
  align-items: stretch;
  padding: 4px;
  gap: 2px;
  background: rgba(15, 26, 22, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(166, 227, 132, 0.22);
  border-radius: 999px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: inherit;
}

#lang-switch button {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(234, 255, 234, 0.72);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.35s ease, transform 0.15s ease;
}

#lang-switch button:hover {
  color: #f6fff0;
}

#lang-switch button:active {
  transform: scale(0.94);
}

#lang-switch button.is-active {
  color: #0d1812;
  background: linear-gradient(135deg, #c8f0ae 0%, #a6e384 100%);
  box-shadow:
    0 4px 12px rgba(166, 227, 132, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#lang-switch button:focus-visible {
  outline: 2px solid rgba(166, 227, 132, 0.7);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  #lang-switch {
    right: 14px;
    bottom: 14px;
    padding: 3px;
  }
  #lang-switch button {
    font-size: 11px;
    padding: 7px 12px;
  }
}

/* ============================================================
   MOBILE OPTIMISATIONS — consolidated tablet & phone tuning
   (per-component breakpoints above stay; this block tightens
    the global rhythm and fixes specific tight-fit issues)
   ============================================================ */

/* ---- Tablet (≤880) -------------------------------------- */
@media (max-width: 880px) {
  .section          { padding: 80px 0; }
  .section-hero     { padding-top: 110px; padding-bottom: 60px; }
  .section-cta      { padding: 60px 0 80px; }
  .section-page     { padding: 130px 0 60px; }
  .section-about    { padding-top: 60px; }
  .section-head     { margin-bottom: 48px; }
  .container        { padding: 0 24px; }
}

/* ---- Phone (≤640) --------------------------------------- */
@media (max-width: 640px) {
  .section          { padding: 60px 0; }
  .section-hero     { padding-top: 96px; padding-bottom: 40px; min-height: 88vh; }
  .section-cta      { padding: 40px 0 60px; }
  .section-page     { padding: 110px 0 50px; }
  .section-head     { margin-bottom: 36px; }
  .container        { padding: 0 20px; }

  /* Hero */
  .hero-text        { padding: 0 20px; }
  .hero-eyebrow     { font-size: 11px; margin-bottom: 18px; padding: 6px 12px 6px 10px; }
  .hero-title       { margin-bottom: 18px; }
  .hero-sub         { font-size: 15px; margin-bottom: 24px; }
  .hero-cta         { gap: 10px; }
  .hero-cta .btn-glow,
  .hero-cta .btn-ghost { padding: 12px 18px; font-size: 14px; }

  /* About / stats */
  .about-grid       { gap: 32px; }
  .about-text p     { font-size: 15px; line-height: 1.65; }
  .about-stats      { margin-top: 24px; gap: 12px; }
  .about-stats li   { padding: 14px 8px; }
  .stat-num         { font-size: 26px; }
  .stat-label       { font-size: 10px; letter-spacing: 0.12em; }

  /* Service overview cards */
  .service-card     { padding: 26px 22px 22px; border-radius: 18px; }
  .service-title    { font-size: 18px; }
  .service-text     { font-size: 14.5px; }
  .service-example  { font-size: 13px; }
  .services-grid    { gap: 16px; }

  /* CTA */
  .cta-card         { padding: 44px 22px; border-radius: 22px; }
  .cta-title        { margin-bottom: 14px; }
  .cta-sub          { margin-bottom: 24px; font-size: 15px; }

  /* Page-head (Kontakt / Impressum / Datenschutz / Leistungen) */
  .page-head        { margin-bottom: 40px; }

  /* Legal content */
  .legal-content    { padding: 26px 20px; border-radius: 18px; }
  .legal-content h2 { font-size: 16px; margin-top: 26px; }
  .legal-content p,
  .legal-content li { font-size: 14px; line-height: 1.65; }

  /* Kontakt */
  .contact-info,
  .contact-form     { padding: 24px 20px; border-radius: 18px; }
  .contact-info h3  { font-size: 12px; }
  .contact-info p,
  .contact-info a   { font-size: 16px; margin-bottom: 18px; }
  .form-field input,
  .form-field textarea { padding: 12px 12px; font-size: 14px; }

  /* Leistungen detail blocks */
  .leistungen-list  { gap: 36px; }
  .leistung,
  .leistung--reverse { padding: 24px 18px; border-radius: 20px; }
  .leistung-anim    { max-width: 280px; }
  .leistung-text h2 { font-size: 21px; }
  .leistung-text > p { font-size: 14.5px; }
  .leistung-points li { font-size: 14px; padding: 5px 0 5px 22px; }
  .leistung-example { font-size: 13.5px !important; padding: 12px 14px; }
  .leistungen-cta   { margin-top: 50px; padding: 32px 22px; border-radius: 20px; }
  .leistungen-cta h2 { font-size: 22px; }

  /* Animation scale-down so they don't dominate the card */
  .gear-lg          { width: 120px; height: 120px; top: 22px; left: 26px; }
  .gear-lg .gear-tooth { transform-origin: 50% calc(50% + 60px); width: 12px; height: 12px; margin-left: -6px; }
  .gear-sm          { width: 70px; height: 70px; bottom: 24px; right: 26px; }
  .gear-sm .gear-tooth { transform-origin: 50% calc(50% + 35px); width: 9px; height: 9px; margin-left: -4.5px; }
  .erp-node         { width: 60px; height: 60px; font-size: 11px; border-radius: 12px; }
  .erp-wire         { max-width: 90px; }

  /* Footer */
  .footer-inner     { gap: 18px; }
  .footer-nav       { gap: 18px; }
  .footer-name      { font-size: 14px; }
}

/* ---- Small phone (≤480) — tighten nav so it fits ------- */
@media (max-width: 480px) {
  #main-nav         { height: 50px; padding: 0 4px; }
  .nav-pill         { top: 6px; bottom: 6px; left: 4px; }
  .nav-item         { padding: 0 11px; font-size: 13px; letter-spacing: 0; }

  /* Stats: stack to a single column with inline number+label
     so the cards don't get squashed at <360 viewports. */
  .about-stats      { grid-template-columns: 1fr; gap: 10px; }
  .about-stats li   { padding: 14px 18px; display: flex; align-items: baseline; justify-content: center; gap: 14px; }
  .stat-num         { display: inline; font-size: 22px; line-height: 1; }
  .stat-label       { display: inline; margin-top: 0; }

  /* Reduce hero a bit more */
  .hero-eyebrow     { font-size: 10px; padding: 5px 10px 5px 8px; letter-spacing: 0.18em; }
  .hero-cta         { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-glow,
  .hero-cta .btn-ghost { justify-content: center; }
}

/* ---- Very small phone (≤380) — last-resort squeeze ----- */
@media (max-width: 380px) {
  #main-nav         { padding: 0 3px; }
  .nav-item         { padding: 0 9px; font-size: 12px; }
  .hero-title       { font-size: 28px; }
  .section-title    { font-size: 26px; }
  .container,
  .hero-text        { padding: 0 16px; }
  .leistung-anim    { max-width: 240px; }
}

/* ---- Hide hover-only effects on touch devices ---------- */
@media (hover: none) {
  /* Replace hover-driven shines with always-on subtle glow so
     they're visible on touch where there is no hover. */
  .service-card .service-shine { opacity: 0.35; }
  .btn-glow:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #matrix-canvas {
    transition-duration: 0.4s;
  }
  #intro-logo {
    transition-duration: 0.4s;
  }
  #main-nav,
  #main-nav .nav-item,
  .nav-pill {
    transition-duration: 0.2s !important;
  }
  .gear,
  .erp-packet,
  .loop-arc,
  .loop-icons,
  .web-shimmer,
  .t-line,
  .t-cursor {
    animation: none !important;
  }
  .t-line {
    width: 100%;
    opacity: 1;
  }
}
