/* ==========================================================
   ThreeCode – New Website Stylesheet
   Design: Dark Mode · Azure & Mint Hex Interlock Brand Kit
   ========================================================== */

@import url('tokens.css?v=20261024');

/* ----------------------------------------------------------
   1. Custom Properties
   ---------------------------------------------------------- */
:root {
  /* Azure & mint interactive palette */
  --color-primary:       var(--tc-color-accent);
  --color-primary-dark:  #10B981;
  --color-primary-light: #6EE7B7;
  --color-violet:        var(--tc-color-accent);
  --color-violet-dark:   #10B981;
  --color-violet-light:  #6EE7B7;
  --color-accent:        var(--tc-color-secondary);

  --color-dark:      var(--tc-color-primary);
  --color-dark-800:  var(--tc-color-surface-raised);
  --color-dark-700:  var(--tc-color-border-dark);
  --color-dark-600:  #94A3B8;

  --color-heading:   var(--tc-color-white);
  --color-text:      var(--tc-color-text-primary-dark-bg);
  --color-text-muted: var(--tc-color-text-secondary);
  --color-text-light: var(--tc-color-text-muted);

  --color-bg:        var(--tc-color-primary);
  --color-bg-alt:    var(--tc-color-surface-raised);
  --color-bg-card:   var(--tc-color-surface-raised);
  --color-border:    var(--tc-color-border-dark);

  /* Typography */
  --font-body: var(--tc-font-family);
  --font-display: var(--tc-font-family);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-brand: 0 4px 24px rgb(96 165 250 / 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1280px;
  --nav-height: 72px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--tc-color-primary) 0%, var(--tc-color-surface-raised) 45%, #064e3b 100%);
  --gradient-dark: linear-gradient(135deg, var(--tc-color-primary) 0%, var(--tc-color-surface-raised) 100%);
  --gradient-hero: linear-gradient(135deg, #0a1020 0%, var(--tc-color-primary) 40%, #0f3d56 100%);
  --gradient-accent: linear-gradient(135deg, var(--tc-color-secondary) 0%, var(--tc-color-accent) 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-family: var(--font-display); }

/* ----------------------------------------------------------
   3. Utilities
   ---------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--space-5xl);
}

.section--sm {
  padding-block: var(--space-4xl);
}

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

.section--dark {
  background: #0a1020;
  color: #fff;
}

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

.text-center  { text-align: center; }
.text-primary { color: var(--color-accent); }
.text-accent  { color: var(--color-accent); }

/* Section Header */
.section-header {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgb(96 165 250 / 0.1);
  border: 1px solid rgb(96 165 250 / 0.25);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-title span { color: var(--color-accent); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Dark section overrides */
.section--dark .section-title { color: #fff; }
.section--dark .section-subtitle { color: var(--color-text-light); }
.section--dark .section-badge {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.15);
  color: var(--color-accent);
}

/* ----------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn i { font-size: 0.875em; }

.btn--primary {
  background: var(--color-primary);
  color: var(--tc-color-primary);
  box-shadow: 0 4px 24px rgb(52 211 153 / 0.3);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgb(52 211 153 / 0.45);
}

.btn--secondary {
  background: var(--color-bg-card);
  color: var(--color-accent);
  border-color: var(--color-border);
  box-shadow: none;
}
.btn--secondary:hover {
  border-color: var(--color-accent);
  background: rgb(96 165 250 / 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  border-color: rgb(255 255 255 / 0.2);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgb(255 255 255 / 0.15);
  border-color: rgb(255 255 255 / 0.4);
  transform: translateY(-2px);
}

.btn--outline-primary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--outline-primary:hover {
  background: var(--color-accent);
  color: var(--tc-color-primary);
  transform: translateY(-2px);
}

.btn--lg {
  font-size: 1.0625rem;
  padding: 1rem 2.25rem;
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* ----------------------------------------------------------
   5. Navigation / Header
   ---------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  /* No backdrop-filter here — it would create a containing block that
     traps position:fixed children (nav__mobile). Use ::before instead. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15 23 42 / 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
}

.header.scrolled {
  border-bottom-color: rgb(96 165 250 / 0.15);
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.3);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo img {
  height: 54px;
  width: auto;
}

.nav__logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.nav__logo-text span { color: var(--color-accent); }

/* Main menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav__item {
  position: relative;
}

/* Invisible bridge that fills the gap between the nav link and the dropdown,
   preventing the menu from closing when the mouse travels through the gap. */
.nav__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 18px; /* slightly taller than the 12px gap */
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav__link i.chevron {
  font-size: 0.6rem;
  transition: transform var(--transition-fast);
}

.nav__item:hover > .nav__link,
.nav__link.active {
  color: var(--color-accent);
  background: rgb(96 165 250 / 0.1);
}

.nav__item:hover > .nav__link i.chevron {
  transform: rotate(180deg);
}

/* Mega Menu & Dropdown */
.mega-menu,
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  z-index: 200;
}

.nav__item:hover > .mega-menu,
.nav__item:hover > .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Mega Menu Layout */
.mega-menu {
  width: 680px;
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.mega-menu__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mega-menu__item:hover {
  background: var(--color-bg-alt);
}

.mega-menu__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.product-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-dark-800) 0%, var(--color-dark) 100%);
}

.product-brand-logo img {
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
}

.page-hero__product-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.04) 0%, rgb(255 255 255 / 0.02) 100%);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.page-hero__product-logo img {
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
}

.mobile-nav__product-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.mega-menu__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgb(96 165 250 / 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
  transition: background var(--transition-fast);
}

.mega-menu__item:hover .mega-menu__icon {
  background: rgb(96 165 250 / 0.2);
}

.mega-menu__item:hover .mega-menu__icon i {
  color: var(--color-accent);
}

.mega-menu__text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 3px;
}

.mega-menu__text p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Simple Dropdown */
.dropdown-menu {
  left: 0;
  transform: translateX(0) translateY(-8px);
  width: 220px;
  padding: var(--space-sm);
}

.nav__item:hover > .dropdown-menu {
  transform: translateX(0) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.dropdown-menu a:hover {
  color: var(--color-accent);
  background: rgb(96 165 250 / 0.08);
}

.dropdown-menu a i { font-size: 0.9rem; width: 18px; text-align: center; color: var(--color-accent); }

/* Nav Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Mobile Navigation – hidden on desktop by default */
.nav__mobile {
  display: none;
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.nav__toggle:hover { background: var(--color-bg-alt); }

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Page offset for fixed header */
.page-content {
  padding-top: var(--nav-height);
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgb(96 165 250 / 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgb(52 211 153 / 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
  padding-block: var(--space-5xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.15);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(4px);
}

.hero__badge span { color: rgb(255 255 255 / 0.7); }

.hero__title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

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

.hero__subtitle {
  font-size: 1.125rem;
  color: rgb(255 255 255 / 0.65);
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
}

.hero__stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero Visual */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.hero__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  border: 1px solid rgb(255 255 255 / 0.1);
  overflow: hidden;
  position: relative;
  background: rgb(255 255 255 / 0.04);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  color: rgb(255 255 255 / 0.3);
  font-size: 0.875rem;
}

.hero__image-placeholder i { font-size: 3rem; }

/* Image placeholder (generic) */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-dark-800));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  text-align: center;
  padding: var(--space-lg);
}

.img-placeholder i { font-size: 2.5rem; opacity: 0.5; }
.img-placeholder span { font-weight: 500; opacity: 0.8; }
.img-placeholder small { opacity: 0.6; }

/* Dark img placeholder */
.img-placeholder--dark {
  background: rgb(255 255 255 / 0.05);
  color: rgb(255 255 255 / 0.4);
}

/* Floating cards on hero */
.hero__float-card {
  position: absolute;
  background: rgba(30 41 59 / 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(96 165 250 / 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  animation: floatCard 6s ease-in-out infinite;
}

.hero__float-card--1 { bottom: 10%; left: -5%; animation-delay: 0s; }
.hero__float-card--2 { top: 10%; right: -5%; animation-delay: 2s; }

.hero__float-card i { color: var(--color-accent); font-size: 1.25rem; }
.hero__float-card-text strong { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--color-heading); }
.hero__float-card-text span { font-size: 0.7rem; color: var(--color-text-muted); }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ----------------------------------------------------------
   7. Stats Bar
   ---------------------------------------------------------- */
.stats-bar {
  background: var(--color-bg-alt);
  padding-block: var(--space-2xl);
  border-top: 1px solid rgb(96 165 250 / 0.15);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stats-bar__item {
  padding: var(--space-md);
  border-right: 1px solid rgb(255 255 255 / 0.08);
}

.stats-bar__item:last-child { border-right: none; }

.stats-bar__number {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stats-bar__number span { color: var(--color-accent); }

.stats-bar__label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------
   8. Services Section
   ---------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.service-card:hover {
  border-color: rgb(96 165 250 / 0.3);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgb(96 165 250 / 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--color-accent);
  color: var(--tc-color-primary);
  box-shadow: var(--shadow-brand);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-xl);
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.service-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.service-card__feature i { color: var(--color-accent); font-size: 0.8rem; }

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.service-card__link:hover { gap: 10px; }

/* ----------------------------------------------------------
   9. Products Section
   ---------------------------------------------------------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--color-dark-800);
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

/* Simple cards (no image) get padding directly on the card */
.product-card:not(:has(.product-card__image)) {
  padding: var(--space-xl);
}

.product-card:hover {
  border-color: rgb(96 165 250 / 0.45);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.45);
}

.product-card--featured {
  border-color: rgb(96 165 250 / 0.5);
  background: linear-gradient(135deg, #1e293b 0%, #162044 100%);
  box-shadow: 0 0 0 1px rgb(96 165 250 / 0.35), 0 20px 40px rgb(0 0 0 / 0.4);
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgb(96 165 250 / 0.15);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  width: fit-content;
  border: 1px solid rgb(96 165 250 / 0.3);
}

.product-card__badge--featured {
  background: rgb(96 165 250 / 0.2);
  color: var(--color-accent);
  border-color: rgb(96 165 250 / 0.3);
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid rgb(255 255 255 / 0.07);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.product-card__link:hover { gap: 10px; color: var(--color-accent); }

.product-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.product-card__image .img-placeholder {
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: rgb(255 255 255 / 0.25);
}

.product-card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgb(96 165 250 / 0.15);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  width: fit-content;
}

.product-card__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-lg);
}

.product-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-xl);
}

.product-card__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.6);
}

.product-card__feature i { color: var(--color-accent); font-size: 0.75rem; }

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid rgb(255 255 255 / 0.07);
}

/* ----------------------------------------------------------
   10. Why Us Section (Features)
   ---------------------------------------------------------- */
.why-us__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.why-us__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.why-us__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.why-us__feature {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.why-us__feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgb(96 165 250 / 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
}

.why-us__feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.why-us__feature-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   11. Team Section
   ---------------------------------------------------------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.team-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition-base);
}

.team-card:hover {
  border-color: rgb(96 165 250 / 0.3);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.team-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-card__image img {
  transform: scale(1.03);
}

.team-card__body {
  padding: var(--space-xl);
}

.team-card__name {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.team-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.team-card__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 500;
  transition: gap var(--transition-fast);
}

.team-card__contact:hover { gap: 10px; text-decoration: underline; }

/* ----------------------------------------------------------
   12. Technology / Tech Stack
   ---------------------------------------------------------- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.tech-badge:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
  background: rgb(96 165 250 / 0.08);
}

.tech-badge i { color: var(--color-accent); }

/* ----------------------------------------------------------
   13. CTA Banner
   ---------------------------------------------------------- */
.cta-banner {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgb(255 255 255 / 0.08), transparent 40%),
    radial-gradient(circle at 80% 50%, rgb(255 255 255 / 0.08), transparent 40%);
}

.cta-banner__content { position: relative; z-index: 1; }
.cta-banner__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.cta-banner__subtitle {
  font-size: 1.0625rem;
  color: rgb(255 255 255 / 0.75);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  margin-inline: auto;
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   14. Contact Page
   ---------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact__info-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.contact__info-desc {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact__item-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgb(96 165 250 / 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
}

.contact__item-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.contact__item-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-heading);
}

.contact__item-value a { transition: color var(--transition-fast); }
.contact__item-value a:hover { color: var(--color-accent); }

/* Contact Form */
.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.contact-form__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.contact-form__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(96 165 250 / 0.15);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.form__privacy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.form__privacy a { color: var(--color-accent); text-decoration: underline; }

/* Success / Error States */
.form__message {
  display: none;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.form__message--success {
  background: rgb(16 185 129 / 0.1);
  border: 1px solid rgb(16 185 129 / 0.3);
  color: #059669;
}

.form__message--error {
  background: rgb(239 68 68 / 0.1);
  border: 1px solid rgb(239 68 68 / 0.3);
  color: #dc2626;
}

/* ----------------------------------------------------------
   15. Page Hero (inner pages)
   ---------------------------------------------------------- */
.page-hero {
  background: var(--gradient-hero);
  padding-block: var(--space-5xl) var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 60%, rgb(96 165 250 / 0.15) 0%, transparent 60%);
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero__content { position: relative; z-index: 1; }

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.5);
  margin-bottom: var(--space-lg);
}

.page-hero__breadcrumb a { color: rgb(255 255 255 / 0.5); transition: color var(--transition-fast); }
.page-hero__breadcrumb a:hover { color: var(--color-accent); }
.page-hero__breadcrumb i { font-size: 0.6rem; }

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  max-width: 760px;
}

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

.page-hero__subtitle {
  font-size: 1.125rem;
  color: rgb(255 255 255 / 0.6);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.page-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* ----------------------------------------------------------
   16. Feature Detail Section (inner pages)
   ---------------------------------------------------------- */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

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

.feature-detail__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-xl);
}

.feature-detail__badge { margin-bottom: var(--space-md); }
.feature-detail__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.feature-detail__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-xl);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.feature-list__item i { color: var(--color-accent); font-size: 0.875rem; margin-top: 3px; flex-shrink: 0; }

/* ----------------------------------------------------------
   17. Process / Steps Section
   ---------------------------------------------------------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.process-step {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.process-step:last-child::after { display: none; }

.process-step__number {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-brand);
}

.process-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.process-step__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   18. FAQ Accordion
   ---------------------------------------------------------- */
.faq__list {
  max-width: 760px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.faq__question:hover { color: var(--color-accent); }

.faq__question i {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.faq__item.open .faq__question i { transform: rotate(45deg); }

.faq__answer {
  display: none;
  padding-bottom: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.faq__item.open .faq__answer { display: block; }

/* ----------------------------------------------------------
   19. Testimonial / Quote
   ---------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.testimonial-card__stars { color: #f59e0b; font-size: 0.9rem; }
.testimonial-card__text { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.75; flex: 1; }
.testimonial-card__author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.875rem; font-weight: 700;
}
.testimonial-card__name { font-size: 0.875rem; font-weight: 700; color: var(--color-heading); }
.testimonial-card__company { font-size: 0.75rem; color: var(--color-text-muted); }

/* ----------------------------------------------------------
   20. Footer
   ---------------------------------------------------------- */
.footer {
  background: var(--color-dark);
  color: rgb(255 255 255 / 0.6);
}

.footer__top {
  padding: var(--space-5xl) 0 var(--space-4xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: var(--space-3xl);
}

.footer__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer__badge-link img {
  display: block;
  height: 65px;
  width: 200px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer__badge-link:hover img {
  opacity: 1;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.footer__brand-logo img {
  height: 32px;
  width: auto;
}
.footer__brand-logo span {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
}

.footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--space-xl);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 38px;
  height: 38px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.6);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--tc-color-primary);
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.5);
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 0.07);
  padding-block: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.35);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__bottom-link {
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.35);
  transition: color var(--transition-fast);
}

.footer__bottom-link:hover { color: var(--color-accent); }

/* ----------------------------------------------------------
   21. Scroll-to-top
   ---------------------------------------------------------- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--tc-color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-brand);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
}

/* ----------------------------------------------------------
   22. Map Embed Placeholder
   ---------------------------------------------------------- */
.map-placeholder {
  width: 100%;
  aspect-ratio: 16 / 6;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  color: var(--color-text-muted);
}

.map-placeholder i { font-size: 2.5rem; color: var(--color-accent); opacity: 0.5; }

/* ----------------------------------------------------------
   23. Impressum
   ---------------------------------------------------------- */
.impressum-content {
  max-width: 760px;
}

.impressum-section {
  margin-bottom: var(--space-2xl);
}

.impressum-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.impressum-section p,
.impressum-section address {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-style: normal;
}

.impressum-section a { color: var(--color-accent); text-decoration: underline; }

/* ----------------------------------------------------------
   24. Animations & Scroll Reveal
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ----------------------------------------------------------
   25. Mobile Navigation
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--lg { display: none; }

  .nav__mobile {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15 23 42 / 0.98);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    padding: var(--space-xl);
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 999;
  }

  .nav__mobile.open { transform: translateX(0); }

  .mobile-nav__item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
  }

  .mobile-nav__item a:hover { background: var(--color-bg-alt); }

  .mobile-nav__sub {
    padding-left: var(--space-lg);
    display: none;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-nav__sub.open { display: flex; }

  .mobile-nav__sub a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
  }

  .mobile-nav__divider {
    height: 1px;
    background: var(--color-border);
    margin-block: var(--space-sm);
  }

  .hero__container { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { display: none; }

  .page-hero__layout { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   26. Responsive Grid Adjustments
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .footer__badges { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .why-us__layout { grid-template-columns: 1fr; }
  .feature-detail { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .feature-detail--reverse { direction: ltr; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --space-5xl: 5rem; --space-4xl: 4rem; }
  .section { padding-block: 4rem; }
  .services__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__badges { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .footer__badge-link img { width: 140px; height: 46px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cta-banner { padding: var(--space-2xl); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; gap: var(--space-md); }
  .process__grid { grid-template-columns: 1fr; }
  .stats-bar__item { border-right: none; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
  .stats-bar__item:last-child { border-bottom: none; }
}

/* ── Hidden products: ThreePlan & VehiControl ── */
a[href*="threeplan.html"],
a[href*="vehicontrol.html"] {
  display: none !important;
}

.footer__links li:has(> a[href*="threeplan.html"]),
.footer__links li:has(> a[href*="vehicontrol.html"]) {
  display: none !important;
}

article.product-card:has(a[href*="threeplan.html"]),
article.product-card:has(a[href*="vehicontrol.html"]) {
  display: none !important;
}

.is-hidden-product {
  display: none !important;
}

/* ── Sub-brand themes: ThreeNet & ThreeRun ── */
body.product-page--threenet,
.product-card--threenet {
  --brand-accent: var(--tc-threenet-accent);
  --brand-accent-dark: var(--tc-threenet-accent-dark);
  --brand-accent-rgb: var(--tc-threenet-accent-rgb);
  --brand-surface-tint: #422006;
}

body.product-page--threerun,
.product-card--threerun {
  --brand-accent: var(--tc-threerun-accent);
  --brand-accent-dark: var(--tc-threerun-accent-dark);
  --brand-accent-rgb: var(--tc-threerun-accent-rgb);
  --brand-surface-tint: #450a0a;
}

body.product-page--threenet,
body.product-page--threerun {
  --color-primary: var(--brand-accent);
  --color-primary-dark: var(--brand-accent-dark);
  --color-accent: var(--brand-accent);
  --gradient-accent: linear-gradient(135deg, var(--tc-color-secondary) 0%, var(--brand-accent) 100%);
  --gradient-primary: linear-gradient(135deg, var(--tc-color-primary) 0%, var(--tc-color-surface-raised) 45%, var(--brand-surface-tint) 100%);
  --shadow-brand: 0 4px 24px rgb(var(--brand-accent-rgb) / 0.3);
}

body.product-page--threenet .btn--primary,
body.product-page--threerun .btn--primary {
  box-shadow: 0 4px 24px rgb(var(--brand-accent-rgb) / 0.3);
}

body.product-page--threenet .btn--primary:hover,
body.product-page--threerun .btn--primary:hover {
  box-shadow: 0 6px 28px rgb(var(--brand-accent-rgb) / 0.45);
}

body.product-page--threenet .page-hero::before,
body.product-page--threerun .page-hero::before {
  background: radial-gradient(ellipse 60% 80% at 80% 60%, rgb(var(--brand-accent-rgb) / 0.18) 0%, transparent 60%);
}

body.product-page--threenet .service-card:hover,
body.product-page--threerun .service-card:hover {
  border-color: rgb(var(--brand-accent-rgb) / 0.3);
}

body.product-page--threenet .service-card__icon,
body.product-page--threerun .service-card__icon {
  background: rgb(var(--brand-accent-rgb) / 0.12);
  color: var(--brand-accent);
}

body.product-page--threenet .service-card:hover .service-card__icon,
body.product-page--threerun .service-card:hover .service-card__icon {
  background: var(--brand-accent);
  color: var(--tc-color-primary);
  box-shadow: var(--shadow-brand);
}

body.product-page--threenet .page-hero__product-logo,
body.product-page--threerun .page-hero__product-logo {
  background: linear-gradient(135deg, rgb(var(--brand-accent-rgb) / 0.08) 0%, rgb(255 255 255 / 0.02) 100%);
  border-color: rgb(var(--brand-accent-rgb) / 0.2);
}

.product-card--threenet .product-card__tag,
.product-card--threerun .product-card__tag {
  background: rgb(var(--brand-accent-rgb) / 0.15);
  color: var(--brand-accent);
}

.product-card--threenet .product-card__feature i,
.product-card--threerun .product-card__feature i {
  color: var(--brand-accent);
}

.product-card--threenet .product-brand-logo {
  background: linear-gradient(135deg, var(--color-dark-800) 0%, #422006 100%);
}

.product-card--threerun .product-brand-logo {
  background: linear-gradient(135deg, var(--color-dark-800) 0%, #450a0a 100%);
}

a.mega-menu__item[href*="threenet.html"] .mega-menu__icon {
  background: rgb(var(--tc-threenet-accent-rgb) / 0.12);
}

a.mega-menu__item[href*="threerun.html"] .mega-menu__icon {
  background: rgb(var(--tc-threerun-accent-rgb) / 0.12);
}

a.mega-menu__item[href*="threenet.html"]:hover .mega-menu__icon {
  background: rgb(var(--tc-threenet-accent-rgb) / 0.2);
}

a.mega-menu__item[href*="threerun.html"]:hover .mega-menu__icon {
  background: rgb(var(--tc-threerun-accent-rgb) / 0.2);
}

body.product-page--threenet .product-card,
body.product-page--threerun .product-card {
  border-color: rgb(var(--brand-accent-rgb) / 0.2);
}

body.product-page--threenet .product-card:hover,
body.product-page--threerun .product-card:hover {
  border-color: rgb(var(--brand-accent-rgb) / 0.45);
}

body.product-page--threenet .product-card--featured,
body.product-page--threerun .product-card--featured {
  border-color: rgb(var(--brand-accent-rgb) / 0.5);
  background: linear-gradient(135deg, #1e293b 0%, var(--brand-surface-tint) 100%);
  box-shadow: 0 0 0 1px rgb(var(--brand-accent-rgb) / 0.35), 0 20px 40px rgb(0 0 0 / 0.4);
}

body.product-page--threenet .product-card__badge,
body.product-page--threerun .product-card__badge {
  background: rgb(var(--brand-accent-rgb) / 0.15);
  color: var(--brand-accent);
  border-color: rgb(var(--brand-accent-rgb) / 0.3);
}

body.product-page--threenet .product-card__badge--featured,
body.product-page--threerun .product-card__badge--featured {
  background: rgb(var(--brand-accent-rgb) / 0.2);
  color: var(--brand-accent);
  border-color: rgb(var(--brand-accent-rgb) / 0.35);
}

body.product-page--threenet .product-card__link,
body.product-page--threerun .product-card__link,
body.product-page--threenet .btn--secondary,
body.product-page--threerun .btn--secondary {
  color: var(--brand-accent);
}

body.product-page--threenet .btn--secondary:hover,
body.product-page--threerun .btn--secondary:hover {
  border-color: var(--brand-accent);
  background: rgb(var(--brand-accent-rgb) / 0.08);
}

/* ==========================================================
   Ratgeber / Artikel-Seiten
   ========================================================== */
.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 2.75rem 0 1rem;
  color: var(--color-text);
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-text);
}

.article-body p,
.article-body li {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.article-body p { margin-bottom: 1rem; }

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.25rem;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.article-body strong { color: var(--color-text); }

.article-lead {
  font-size: 1.05rem;
}

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  vertical-align: top;
}

.comparison-table th {
  color: var(--color-text);
  background: var(--color-bg-card);
  white-space: nowrap;
}

.comparison-table td:first-child {
  color: var(--color-text);
  font-weight: 600;
}

.article-note {
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-card);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--tc-radius-md) var(--tc-radius-md) 0;
  margin: 1.5rem 0;
}

.article-note p:last-child { margin-bottom: 0; }

/* ==========================================================
   Selbst gehostete SVG-Icons (ersetzen Font Awesome CDN)
   ========================================================== */
i[class*="fa-"] {
  display: inline-block;
  width: 1em;
  height: 1em;
  font-style: normal;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

i[class*="fa-"] > svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.fa-spin > svg {
  animation: tc-spin 1s linear infinite;
}

@keyframes tc-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   Cookie-Consent-Banner
   ========================================================== */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  max-width: 560px;
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--tc-radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
}
