:root {
  --bg: #10131c;
  --bg-soft: #171c28;
  --bg-soft-2: #1d2433;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --text: #f7f8fb;
  --muted: #aab4c8;
  --line: rgba(255, 255, 255, 0.11);
  --primary: #8f6bff;
  --primary-2: #c18cff;
  --accent: #7de0ff;
  --success: #51d19a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --max: 1240px;
  --header-bg: rgba(16, 19, 28, 0.82);
  --grid-size: 46px;
  --hero-bg:
    radial-gradient(
      circle at 50% 20%,
      rgba(143, 107, 255, 0.22),
      transparent 25%
    ),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #121620 0%, #151a25 52%, #11151d 100%);
}

body.light-mode {
  --bg: #f3f4fa;
  --bg-soft: #ffffff;
  --bg-soft-2: #eef0f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #131722;
  --muted: #5a6578;
  --line: rgba(19, 23, 34, 0.1);
  --primary: #7b57ff;
  --primary-2: #b67cff;
  --accent: #2563eb;
  --success: #159f6b;
  --shadow: 0 20px 60px rgba(37, 45, 68, 0.12);
  --header-bg: rgba(255, 255, 255, 0.82);
  --hero-bg:
    radial-gradient(
      circle at 50% 20%,
      rgba(123, 87, 255, 0.15),
      transparent 25%
    ),
    linear-gradient(rgba(19, 23, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 23, 34, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fcfcff 0%, #f3f4fa 52%, #eceef7 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--hero-bg);
  background-size:
    auto,
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size),
    auto;
  line-height: 1.55;
  overflow-x: hidden;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(255, 255, 255, 0.04),
      transparent 18%
    ),
    radial-gradient(
      circle at 18% 18%,
      rgba(143, 107, 255, 0.07),
      transparent 18%
    ),
    radial-gradient(
      circle at 82% 20%,
      rgba(193, 140, 255, 0.07),
      transparent 18%
    );
  animation: ambientFloat 16s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* =========================================================
   KONTAKT MODAL / FORMULAR
========================================================= */

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 19, 28, 0.76);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.contact-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.contact-modal {
  position: fixed;
  width: 760px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 38px 34px 34px;
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(11, 16, 27, 0.97),
    rgba(19, 28, 44, 0.94)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.2);
  transform-origin: top left;
  transition:
    left 0.52s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 0.52s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.52s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease;
}

.contact-overlay.active .contact-modal {
  opacity: 1;
}

body.light-mode .contact-modal {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(240, 243, 252, 0.98)
  );
  border-color: rgba(19, 23, 34, 0.08);
  color: var(--text);
}

.contact-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
  width: 42px;
  height: 42px;
  margin: -18px -14px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.contact-close:hover {
  transform: rotate(90deg) scale(1.04);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--primary);
  color: #ffffff;
}

body.light-mode .contact-close {
  background: rgba(255, 255, 255, 0.92);
  color: #131722;
  border-color: rgba(19, 23, 34, 0.12);
}

body.light-mode .contact-close:hover {
  background: #131722;
  color: #ffffff;
  border-color: #131722;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  clear: both;
}

.contact-form h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.form-intro {
  margin: -6px 0 6px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.contact-form label,
.form-group label {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
}

.contact-form select {
  cursor: pointer;
}

.contact-form select option {
  color: #111827;
  background: #ffffff;
}

body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea {
  background: rgba(255, 255, 255, 0.9);
  color: #131722;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(143, 107, 255, 0.22);
}

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

.required-info {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  cursor: pointer;
  color: var(--muted);
}

.checkbox-label input {
  width: auto;
  min-width: 16px;
  margin-top: 4px;
  accent-color: var(--primary);
}

.privacy-check {
  margin-top: 4px;
}

.contact-form button {
  margin-top: 4px;
  width: 100%;
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.contact-form button:disabled::after {
  display: none;
}

/* =========================================================
   KONTAKTFORMULAR STATUSMELDUNG
========================================================= */

.contact-status {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid transparent;
}

.contact-status.success {
  display: block;
  background: rgba(81, 209, 154, 0.14);
  border-color: rgba(81, 209, 154, 0.35);
  color: #51d19a;
}

.contact-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

body.light-mode .contact-status.success {
  background: rgba(21, 159, 107, 0.12);
  border-color: rgba(21, 159, 107, 0.28);
  color: #127a53;
}

body.light-mode .contact-status.error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.theme-toggle:focus-visible,
.hero-tab:focus-visible,
.contact-close:focus-visible {
  outline: 3px solid rgba(125, 224, 255, 0.6);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #ece8ff);
  color: #171b25;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

body.light-mode .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  backdrop-filter: blur(8px);
}

body.light-mode .btn-secondary {
  background: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   BADGE
========================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  animation: floatBadge 4s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(83, 215, 158, 0.12);
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

body.light-mode .site-header {
  border-bottom-color: rgba(10, 24, 40, 0.08);
}

.site-header.scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  flex-shrink: 0;
}

body.light-mode .brand-logo {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
}

/* =========================================================
   HERO
========================================================= */

.hero {
  padding: 72px 0 24px;
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 107, 255, 0.23),
    transparent 64%
  );
  filter: blur(14px);
  pointer-events: none;
  animation: orbMove 10s ease-in-out infinite;
}

.hero-grid {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-copy {
  text-align: center;
  max-width: 1020px;
  margin: 0 auto;
  padding-top: 16px;
}

.eyebrow {
  color: var(--primary-2);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1 {
  margin: 18px auto;
  font-size: clamp(3.05rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  max-width: 1040px;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: textRise 0.8s ease forwards;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-title-line:nth-child(3) {
  animation-delay: 0.24s;
}

.hero-copy p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 780px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.avatar-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(18, 22, 32, 0.9);
  margin-left: -10px;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.avatar:first-child {
  margin-left: 0;
}

body.light-mode .avatar {
  border-color: #ffffff;
}

.avatar:nth-child(2) {
  background: linear-gradient(135deg, #d6e7ff, #a6c5ff);
}

.avatar:nth-child(3) {
  background: linear-gradient(135deg, #d5ffe6, #84ddb2);
}

.avatar:nth-child(4) {
  background: linear-gradient(135deg, #ffe4d8, #f1ba9f);
}

.hero-proof-text strong {
  display: block;
  color: var(--accent);
  font-size: 1.08rem;
}

.hero-proof-text span {
  color: var(--muted);
  font-size: 0.94rem;
}

/* =========================================================
   HERO TABS
========================================================= */

.hero-tabs {
  margin: 58px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 8px 8px;
  max-width: 1000px;
}

.hero-tab {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #7f8ba3;
  min-width: 92px;
  cursor: pointer;
  border: 0;
  background: transparent;
  font: inherit;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.hero-tab:hover,
.hero-tab.active {
  color: var(--text);
  transform: translateY(-2px);
}

.hero-tab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  place-items: center;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.hero-tab.active .hero-tab-icon,
.hero-tab:hover .hero-tab-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(143, 107, 255, 0.24);
}

.hero-tab span {
  font-size: 0.92rem;
  font-weight: 800;
}

/* =========================================================
   SERVICE PANEL
========================================================= */

.service-panel-wrap {
  margin-top: 28px;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.service-panel {
  display: none;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(11, 16, 27, 0.96),
    rgba(19, 28, 44, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadePanel 0.45s ease;
}

body.light-mode .service-panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(240, 243, 252, 0.98)
  );
  border-color: rgba(19, 23, 34, 0.08);
}

.service-panel.active {
  display: block;
}

.service-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.service-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-panel-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #ffffff;
}

.service-panel-title h3 {
  margin: 0;
  font-size: 1.35rem;
}

.service-panel-title span {
  color: var(--muted);
  font-size: 0.95rem;
}

.live-badge {
  background: rgba(80, 200, 120, 0.15);
  color: #4ade80;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid rgba(80, 200, 120, 0.2);
  white-space: nowrap;
}

.service-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.service-kpi {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  text-align: center;
}

body.light-mode .service-kpi {
  background: rgba(255, 255, 255, 0.8);
}

.service-kpi-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 900;
}

.service-kpi-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

.service-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-weight: 600;
}

body.light-mode .service-feature {
  background: rgba(255, 255, 255, 0.76);
}

.service-feature-check {
  color: var(--success);
  font-weight: 900;
}

.service-copy-box {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

body.light-mode .service-copy-box {
  background: rgba(255, 255, 255, 0.8);
}

.service-copy-box h4 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.service-copy-box p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.service-panel-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   SECTIONS / CARDS
========================================================= */

section {
  padding: 52px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.values,
.stats-grid,
.performance-grid,
.steps,
.jobs,
.contact-grid {
  display: grid;
  gap: 18px;
}

.value-card,
.job-card,
.step,
.contact-box,
.stat-card,
.chart-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition:
    transform 0.3s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.value-card:hover,
.job-card:hover,
.step:hover,
.contact-box:hover,
.stat-card:hover,
.chart-card:hover {
  transform: translateY(-5px);
}

.values {
  grid-template-columns: repeat(3, 1fr);
}

.value-card,
.job-card,
.step,
.contact-box,
.stat-card,
.chart-card {
  padding: 24px;
}

.icon,
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(143, 107, 255, 0.2),
    rgba(193, 140, 255, 0.2)
  );
  border: 1px solid rgba(193, 140, 255, 0.18);
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 900;
}

.value-card h3,
.job-card h3,
.step h3,
.contact-box h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.value-card p,
.job-card p,
.step p,
.contact-box p,
.contact-box li,
.chart-card p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   STATS / CHARTS
========================================================= */

.stats-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.stat-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-value small {
  font-size: 1rem;
  color: var(--primary-2);
  font-weight: 900;
}

.stat-meta {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 34ch;
}

.stat-bar,
.chart-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .stat-bar,
body.light-mode .chart-track {
  background: rgba(123, 87, 255, 0.08);
  border-color: rgba(123, 87, 255, 0.08);
}

.stat-bar span,
.chart-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.chart-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.chart-wrap {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.chart-row {
  display: grid;
  grid-template-columns: 150px 1fr 64px;
  align-items: center;
  gap: 14px;
}

.chart-row strong {
  font-size: 0.95rem;
}

.chart-track {
  height: 14px;
  position: relative;
}

.chart-fill {
  position: absolute;
  inset: 0 auto 0 0;
}

.chart-value {
  justify-self: end;
  font-weight: 900;
  color: var(--text);
}

/* =========================================================
   STEPS / JOBS / CONTACT SECTIONS
========================================================= */

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.step {
  position: relative;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(143, 107, 255, 0.09);
  transition: transform 0.35s ease;
}

.step:hover::after {
  transform: scale(1.3);
}

.jobs {
  grid-template-columns: repeat(3, 1fr);
}

.job-card {
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.job-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.9rem;
}

.list li::before {
  content: "✓";
  color: var(--success);
  margin-right: 10px;
  font-weight: 900;
}

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

.contact-box ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 18px;
}

/* =========================================================
   CTA
========================================================= */

.cta {
  padding: 52px 0 80px;
}

.cta-wrap {
  padding: 34px;
  border-radius: 30px;
  border: 1px solid rgba(193, 140, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(143, 107, 255, 0.14),
    rgba(255, 255, 255, 0.05)
  );
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-120%);
  animation: ctaShine 8s linear infinite;
}

.cta-wrap > * {
  position: relative;
  z-index: 1;
}

.cta-wrap h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.cta-wrap p {
  margin: 0;
  color: #ddd9ff;
  max-width: 62ch;
}

body.light-mode .cta-wrap p {
  color: #304257;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

body.light-mode footer {
  border-top-color: rgba(10, 24, 40, 0.08);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.developer-credit {
  margin-top: 20px;
  font-size: 13px;
  color: #777777;
  text-align: center;
}

.developer-credit a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.developer-credit a:hover {
  color: #111111;
  text-decoration: underline;
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes ambientFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -20px, 0) scale(1.05);
  }
}

@keyframes orbMove {
  0%,
  100% {
    transform: translateX(-50%) translate3d(0, 0, 0);
  }

  50% {
    transform: translateX(-50%) translate3d(0, -16px, 0);
  }
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes textRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaShine {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .contact-grid,
  .values,
  .stats-grid,
  .steps,
  .jobs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 96px;
  }

  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition:
      transform 0.35s ease,
      opacity 0.35s ease,
      box-shadow 0.35s ease,
      background 0.35s ease;
  }

  .site-header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }

  .nav {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 0;
    gap: 14px;
    min-height: auto;
  }

  .brand {
    justify-content: center;
    text-align: center;
    gap: 10px;
    font-size: 0.95rem;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .theme-toggle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 15px;
  }

  .nav-actions .btn {
    width: auto;
    min-height: 50px;
    padding: 0 14px;
    font-size: 0.86rem;
    border-radius: 14px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 4rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .badge {
    font-size: 0.82rem;
    padding: 9px 13px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .hero-proof {
    flex-direction: column;
    gap: 10px;
    border-radius: 22px;
    padding: 14px;
    text-align: center;
  }

  .avatar-stack {
    justify-content: center;
  }

  .hero-tabs {
    gap: 14px;
    margin-top: 42px;
  }

  .hero-tab {
    min-width: 78px;
  }

  .hero-tab-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .hero-tab span {
    font-size: 0.82rem;
  }

  .service-panel-wrap {
    margin-top: 22px;
    padding: 8px;
    border-radius: 24px;
  }

  .service-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .service-panel-head,
  .service-panel-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-panel-title h3 {
    font-size: 1.2rem;
  }

  .service-panel-badge {
    width: 48px;
    height: 48px;
  }

  .service-kpis,
  .service-feature-grid {
    grid-template-columns: 1fr;
  }

  .service-panel-actions {
    display: grid;
    gap: 10px;
  }

  .service-panel-actions .btn {
    width: 100%;
  }

  section,
  .cta {
    padding: 34px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-head h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .section-head p {
    font-size: 0.98rem;
  }

  .contact-grid,
  .values,
  .stats-grid,
  .steps,
  .jobs {
    grid-template-columns: 1fr;
  }

  .value-card,
  .job-card,
  .step,
  .contact-box,
  .stat-card,
  .chart-card {
    padding: 22px;
    border-radius: 20px;
  }

  .job-top {
    flex-direction: column;
  }

  .tag {
    width: fit-content;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .chart-value {
    justify-self: start;
  }

  .cta-wrap {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .cta-wrap h2 {
    font-size: clamp(1.75rem, 8vw, 2.6rem);
  }

  .cta-actions {
    display: grid;
    gap: 10px;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .contact-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 28px 22px 24px;
    border-radius: 22px;
  }

  .contact-close {
    width: 40px;
    height: 40px;
    margin: -12px -8px 10px 12px;
    font-size: 26px;
    border-radius: 13px;
  }

  .contact-form h2 {
    font-size: 1.45rem;
  }

  .form-intro {
    font-size: 0.92rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-group.full {
    grid-column: auto;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 13px 14px;
    font-size: 0.94rem;
    border-radius: 13px;
  }

  .contact-form textarea {
    min-height: 110px;
  }

  .checkbox-label {
    font-size: 0.86rem;
  }

  .required-info {
    font-size: 0.82rem;
  }

  .contact-form button {
    min-height: 52px;
  }

  .contact-status {
    margin-top: 12px;
    padding: 13px 14px;
    border-radius: 13px;
    font-size: 0.88rem;
  }

  .footer-row {
    display: grid;
    gap: 12px;
    text-align: center;
    justify-items: center;
  }

  .developer-credit {
    margin-top: 6px;
  }
}
