/* ============================================================
   currentmedia — Corporate Website Styles
   Design Direction: "Digital Precision" — clean, geometric,
   tech-forward with luminous accents on deep surfaces.
   ============================================================ */

/* manrope-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/manrope-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/manrope-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/manrope-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/manrope-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/manrope-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/manrope-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* syne-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/syne-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* syne-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Syne';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/syne-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* syne-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/syne-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* syne-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/syne-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* syne-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/syne-v24-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ── CSS Variables ── */
:root {
  /* Brand */
  --blue-primary: #2E7DDB;
  --blue-vivid: #3B9AFF;
  --cyan-accent: #00D4FF;
  --gradient-brand: linear-gradient(135deg, #2E7DDB 0%, #00D4FF 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(46,125,219,0.15) 0%, rgba(0,212,255,0.08) 100%);

  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-base: 0.3s var(--ease-out-quart);
  --transition-slow: 0.6s var(--ease-out-expo);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* Spacing */
  --section-pad: clamp(5rem, 12vh, 9rem);
  --container-width: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
}

/* ── Dark Theme (default) ── */
[data-theme="dark"] {
  --bg-primary: #070B14;
  --bg-secondary: #0D1321;
  --bg-card: #111827;
  --bg-card-hover: #1A2332;
  --bg-nav: rgba(7, 11, 20, 0.85);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: rgba(148, 163, 184, 0.1);
  --border-hover: rgba(148, 163, 184, 0.2);
  --glow-color: rgba(46, 125, 219, 0.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --logo-display-light: block;
  --logo-display-dark: none;
  --overlay-pattern: radial-gradient(circle at 1px 1px, rgba(148,163,184,0.06) 1px, transparent 0);
}

/* ── Light Theme ── */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-nav: rgba(248, 250, 252, 0.9);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  --glow-color: rgba(46, 125, 219, 0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  --logo-display-light: none;
  --logo-display-dark: block;
  --overlay-pattern: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.04) 1px, transparent 0);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body), serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-out-expo), color 0.5s var(--ease-out-expo);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-out-expo);
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.nav__logo img {
  height: 24px;
  width: auto;
  transition: opacity var(--transition-base);
}

.nav__logo .logo-light { display: var(--logo-display-light); }
.nav__logo .logo-dark { display: var(--logo-display-dark); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-base);
  position: relative;
  letter-spacing: 0.01em;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all var(--transition-base);
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  border-color: var(--blue-primary);
  color: var(--blue-vivid);
  background: var(--glow-color);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease-out-expo);
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* Mobile Menu */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__burger.active span:nth-child(2) {
  opacity: 0;
}
.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated grid */
.hero__grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(46,125,219,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,125,219,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center center;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--blue-primary);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 350px;
  height: 350px;
  background: var(--cyan-accent);
  bottom: -5%;
  left: 10%;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: 250px;
  height: 250px;
  background: #7C3AED;
  top: 40%;
  left: 50%;
  animation-delay: -8s;
  opacity: 0.2;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 72px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(46,125,219,0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-vivid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-family: var(--font-display), serif;
  font-size: clamp(1.96rem, 4.9vw, 3.85rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__title .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46,125,219,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46,125,219,0.4);
}

.btn--outline {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--blue-primary);
  background: var(--glow-color);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--blue-primary);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* ── Section Base ── */
.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.section--alt {
  background: var(--bg-secondary);
}

.section__header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-vivid);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.section__label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
}

.section__title {
  font-family: var(--font-display), serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Parallax Service Sections ── */
.parallax-wrapper {
  position: relative;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.parallax-bg__element {
  position: absolute;
  will-change: transform;
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2.25rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-slow);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

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

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(46,125,219,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--blue-vivid);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: var(--font-display), serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-card__text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.service-card__tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--gradient-brand-subtle);
  color: var(--blue-vivid);
  font-weight: 500;
  border: 1px solid rgba(46,125,219,0.1);
}

/* ── Feature Section (side-by-side layout) ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.feature-visual__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Terminal mockup */
.terminal {
  width: 100%;
  background: #0D1117;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  font-size: 0.78rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #161B22;
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red { background: #FF5F57; }
.terminal__dot--yellow { background: #FEBC2E; }
.terminal__dot--green { background: #28C840; }

.terminal__body {
  padding: 16px;
  line-height: 1.8;
  color: #C9D1D9;
}

.terminal__line {
  opacity: 0;
  animation: typeLine 0.3s forwards;
}

.terminal__prompt { color: #58A6FF; }
.terminal__cmd { color: #79C0FF; }
.terminal__flag { color: #D2A8FF; }
.terminal__comment { color: #8B949E; }
.terminal__success { color: #3FB950; }
.terminal__path { color: #FFA657; }

/* Kubernetes visual */
.k8s-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}

.k8s-pod {
  padding: 1.4rem 1rem;
  border-radius: 14px;
  background: rgba(46,125,219,0.06);
  border: 1px solid rgba(46,125,219,0.12);
  text-align: center;
  transition: all var(--transition-base);
  animation: podPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.k8s-pod::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(46,125,219,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.k8s-pod:hover::before {
  opacity: 1;
}

.k8s-pod:hover {
  border-color: rgba(46,125,219,0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(46,125,219,0.15);
}

.k8s-pod:nth-child(2) { animation-delay: -1s; }
.k8s-pod:nth-child(3) { animation-delay: -2s; }
.k8s-pod:nth-child(4) { animation-delay: -0.5s; }
.k8s-pod:nth-child(5) { animation-delay: -1.5s; }
.k8s-pod:nth-child(6) { animation-delay: -2.5s; }

.k8s-pod__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(46,125,219,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-vivid);
  position: relative;
  z-index: 1;
}

.k8s-pod__icon svg {
  width: 24px;
  height: 24px;
}

.k8s-pod__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}

.k8s-pod__status-row {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.k8s-pod__status {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3FB950;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(63,185,80,0.4);
}

@keyframes podPulse {
  0%, 100% { transform: scale(1); border-color: rgba(46,125,219,0.15); }
  50% { transform: scale(1.02); border-color: rgba(46,125,219,0.3); }
}

/* ── Parallax Floating Elements ── */
.float-element {
  position: absolute;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

.float-element--circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  opacity: 0.3;
}

.float-element--dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  opacity: 0.4;
}

.float-element--line {
  width: 120px;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.2;
}

.float-element--cross {
  width: 20px;
  height: 20px;
  position: relative;
  opacity: 0.15;
}

.float-element--cross::before,
.float-element--cross::after {
  content: '';
  position: absolute;
  background: var(--blue-vivid);
}

.float-element--cross::before {
  width: 100%;
  height: 1px;
  top: 50%;
}

.float-element--cross::after {
  width: 1px;
  height: 100%;
  left: 50%;
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 4rem 0;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display), serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ── Contact / Callback Form ── */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info__title {
  font-family: var(--font-display), serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info__text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-info__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-feature__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(46,125,219,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-vivid);
}

.contact-feature__icon svg {
  width: 18px;
  height: 18px;
}

.contact-feature__text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-feature__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form */
.form-card {
  padding: 2.5rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.form-card__title {
  font-family: var(--font-display), serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-card__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: #EF4444;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body), serif;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px var(--glow-color);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible {
  display: block;
}

/* Checkbox */
.form-group--checkbox {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.checkbox-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s var(--ease-out-expo);
  margin-top: -2px;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
  transform: rotate(-45deg) scale(1);
}

.checkbox-label input:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 3px var(--glow-color);
}

.checkbox-custom.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.checkbox-text a {
  color: var(--blue-vivid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-text a:hover {
  color: var(--cyan-accent);
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-message--success {
  display: block;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: #10B981;
}

.form-message--error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #EF4444;
}

/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo img {
  height: 24px;
  width: auto;
}

.footer__logo .logo-light { display: var(--logo-display-light); }
.footer__logo .logo-dark { display: var(--logo-display-dark); }

.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--blue-vivid);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-row--reverse {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__link {
    font-size: 1.2rem;
  }

  .nav__burger {
    display: flex;
  }

  .nav__links .theme-toggle {
    display: none;
  }

  .theme-toggle-mobile {
    display: flex !important;
  }

  .hero__content {
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .k8s-visual {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}

/* ── Sub-Pages (Impressum, Datenschutz) ── */
.subpage {
  padding-top: calc(72px + 4rem);
  padding-bottom: 4rem;
  min-height: 100vh;
}

.subpage__title {
  font-family: var(--font-display), serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.subpage__content {
  max-width: 800px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.subpage__content h2 {
  font-family: var(--font-display), serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.subpage__content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.subpage__content p {
  margin-bottom: 1rem;
}

.subpage__content a {
  color: var(--blue-vivid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subpage__content a:hover {
  color: var(--cyan-accent);
}

/* ── Dot Pattern Overlay ── */
.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: var(--overlay-pattern);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ── Loading animation for terminal lines ── */
@keyframes typeLine {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Noise texture overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* Wrapper/Label der Datenschutz-Checkbox */
.privacy-consent {
  display: flex !important;
}
