/* ═══ INVICTUS MARKETING – SHARED STYLES ═══ */

/* ═══ PAGE TRANSITION ═══ */
body {
  animation: pageFadeIn 0.25s ease-out;
}
body.page-leaving {
  opacity: 0;
  transition: opacity 0.15s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0c0c0e;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --glass-blur: 16px;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-bg-hover: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-hover: rgba(255,255,255,0.18);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #f5f5f7;
  --text-secondary: rgba(255,255,255,0.55);
  --text-tertiary: rgba(255,255,255,0.35);
  --accent: #f5f5f7;
  --accent-dim: rgba(245,245,247,0.1);
  --gold: #f5c518;
  --font-primary: 'Montserrat', -apple-system, sans-serif;
  --font-secondary: 'Quicksand', sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

html { scroll-behavior: smooth; }

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

#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-orbs {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(250px);
  opacity: 0.08;
  background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.02) 55%, transparent 75%);
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 { width: 1100px; height: 1100px; top: 5%; left: -18%; animation-duration: 25s; }
.orb-2 { width: 950px; height: 950px; top: 40%; right: -22%; animation-duration: 30s; animation-delay: -5s; }
.orb-3 { width: 850px; height: 850px; bottom: 0%; left: 20%; animation-duration: 22s; animation-delay: -10s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -60px) scale(1.15); }
  50% { transform: translate(-40px, 80px) scale(0.9); }
  75% { transform: translate(60px, 40px) scale(1.1); }
}

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(12,12,14,0.6);
  backdrop-filter: blur(40px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-logo { display: flex; align-items: center; height: 36px; }
.nav-logo img { height: 100%; width: auto; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  padding: 10px 28px !important;
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.3s !important;
}
.nav-cta:hover { opacity: 0.85; transform: scale(1.02); }

/* ═══ BURGER MENU ═══ */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 1001; position: relative;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 768px) {
  .nav-burger { display: flex; z-index: 10002; }
  nav { padding: 14px 20px; }
  .nav-links {
    display: flex;
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; height: 100vh;
    z-index: 10001;
    background: rgba(12,12,14,0.98);
    flex-direction: column; justify-content: center; align-items: center; gap: 0;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 80px 32px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a {
    font-size: 24px; font-weight: 600; padding: 18px 0; width: 100%; text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text-secondary);
    flex-shrink: 0;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta {
    margin-top: 24px; width: 100%; display: block; text-align: center;
    padding: 16px 28px !important; font-size: 18px !important; border-bottom: none;
    flex-shrink: 0;
  }
}

/* ═══ GLOBAL ═══ */
section { position: relative; z-index: 1; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; width: 24px; height: 1px;
  background: var(--text-tertiary);
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 100px;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(255,255,255,0.15), 0 0 80px rgba(255,255,255,0.06); }
.btn-primary .arrow { transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text);
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }

/* ═══ PAGE HERO ═══ */
.page-hero {
  padding: 180px 0 100px;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.page-hero h1 .gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p {
  font-size: 17px; line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ═══ FEATURE CARDS ═══ */
.features-section { padding: 0 0 140px; position: relative; z-index: 1; }
.features-header { margin-bottom: 60px; }
.features-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.features-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(17,17,19,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 28px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.03);
}
.feature-card h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══ SHOWCASE ═══ */
.showcase-section { padding: 0 0 140px; position: relative; z-index: 1; border-top: 1px solid var(--border); padding-top: 140px; }
.showcase-header { text-align: center; margin-bottom: 60px; }
.showcase-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.showcase-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.showcase-card {
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(17,17,19,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
.showcase-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.5);
}
}
.showcase-card .card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.showcase-card .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
.showcase-card:hover .card-image img { transform: scale(1.06); }
}
.showcase-card .card-image .img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12,12,14,0.8) 100%);
}
.showcase-card .card-caption {
  padding: 28px 32px;
}
.showcase-card .card-caption h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.showcase-card .card-caption p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══ CTA SECTION ═══ */
.final-cta {
  padding: 160px 0;
  text-align: center;
  position: relative;
}
.final-cta h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.final-cta p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.final-cta .hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ═══ HERO INNER (pages with icon beside title) ═══ */
.page-hero .hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.page-hero .hero-icon {
  flex-shrink: 0;
  margin-top: 8px;
  opacity: 0.7;
}

/* ═══ PROCESS CARD (used on service detail pages) ═══ */
.ki-services { padding: 0 0 140px; position: relative; z-index: 1; }
.services-features { padding: 0 0 140px; position: relative; z-index: 1; }
.ki-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(17,17,19,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 28px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
@media (hover: hover) {
.process-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
}
.process-card .card-icon {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.process-card .card-icon svg {
  width: 28px; height: 28px;
  opacity: 0.6;
}
.process-card h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 12px;
}
.process-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══ HOW IT WORKS / STEPS (ki-automatisierung) ═══ */
.how-it-works {
  padding: 140px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}
.how-header { text-align: center; margin-bottom: 80px; }
.how-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.how-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.steps-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.step-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(17,17,19,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
}
.step-number {
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  margin-bottom: 20px;
  line-height: 1;
}
.step-card h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 12px;
}
.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.step-connector .line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  border-radius: 1px;
  position: relative;
}
.step-connector .line::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px; height: 6px;
  border-right: 2px solid rgba(255,255,255,0.2);
  border-top: 2px solid rgba(255,255,255,0.2);
}

/* ═══ TECH STACK (webdesign) ═══ */
.tech-section { padding: 0 0 140px; position: relative; z-index: 1; }
.tech-header { margin-bottom: 60px; }
.tech-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.tech-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tech-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(17,17,19,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.tech-card .tech-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tech-card .tech-type {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ═══ STATS SECTION (performance-marketing) ═══ */
.stats-section { padding: 140px 0; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.stats-header { text-align: center; margin-bottom: 80px; }
.stats-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.stats-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(17,17,19,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 48px 28px;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
}
.stat-number {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══ SHOWCASE CARD-BODY (videoproduktion) ═══ */
.showcase-card .card-body { padding: 24px; }
.showcase-card .card-body h3 {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.showcase-card .card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══ FOOTER ═══ */
footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .footer-logo { margin-bottom: 16px; display: flex; align-items: center; height: 28px; }
.footer-brand .footer-logo img { height: 100%; width: auto; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 320px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: all 0.3s;
}
.footer-social a:hover { border-color: var(--border-hover); color: var(--text); }
.footer-col h4 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-secondary);
  text-decoration: none; padding: 6px 0; transition: color 0.3s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-tertiary); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 12px; color: var(--text-tertiary); text-decoration: none; transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ═══ SCROLL REVEAL ═══ */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="scale"] { opacity: 0; transform: scale(0.92) translateY(24px); }
[data-reveal="scale"].is-visible { opacity: 1; transform: scale(1) translateY(0); }

/* ═══ GLOW CARD ═══ */
.glow-card { position: relative; z-index: 1; }
.glow-card .glow-border {
  position: absolute; inset: -2px; border-radius: inherit; overflow: hidden;
  z-index: -1; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
@media (hover: hover) {
.glow-card:hover .glow-border { opacity: 1; }
}
.glow-card .glow-border::before {
  content: ''; position: absolute; inset: -50%;
  background: conic-gradient(from 270deg, transparent 0%, rgba(255,255,255,0.7) 3%, rgba(255,255,255,0.9) 5%, rgba(255,255,255,0.7) 7%, transparent 14%, transparent 100%);
  animation: glow-spin 8s linear infinite;
}
.glow-card .glow-border::after {
  content: ''; position: absolute; inset: 2px; border-radius: inherit; background: #111113;
}
@keyframes glow-spin { to { transform: rotate(360deg); } }
.glow-card .glow-shadow {
  position: absolute; inset: 0; border-radius: inherit; z-index: -2;
  opacity: 0; filter: blur(20px); transition: opacity 0.8s ease; pointer-events: none; overflow: hidden;
}
@media (hover: hover) {
.glow-card:hover .glow-shadow { opacity: 0.4; }
}
.glow-card .glow-shadow::before {
  content: ''; position: absolute; inset: -50%;
  background: conic-gradient(from 270deg, transparent 0%, rgba(255,255,255,0.7) 3%, rgba(255,255,255,0.9) 5%, rgba(255,255,255,0.7) 7%, transparent 14%, transparent 100%);
  animation: glow-spin 8s linear infinite;
}
.glow-card .glow-spotlight {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.4s ease;
}
@media (hover: hover) {
.glow-card:hover .glow-spotlight { opacity: 1; }
}
.glow-card .glow-spotlight::before {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  left: var(--spot-x, 50%); top: var(--spot-y, 50%);
}
@media (hover: hover) {
.glow-card:hover {
  background: rgba(17,17,19,0.6);
  backdrop-filter: blur(16px);
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-4px);
}
}
.glow-card > *:not(.glow-border):not(.glow-shadow):not(.glow-spotlight) {
  position: relative; z-index: 2;
}

/* ═══ MOBILE BEAM-HIGHLIGHT (replaces hover) ═══ */
.beam-highlight .glow-border { opacity: 1; }
.beam-highlight .glow-shadow { opacity: 0.4; }
.beam-highlight.service-card,
.beam-highlight.project-card,
.beam-highlight.testimonial-card,
.beam-highlight.why-card,
.beam-highlight.brand-feature,
.beam-highlight.ki-hub-card,
.beam-highlight.feature-card,
.beam-highlight.showcase-card,
.beam-highlight.value-card,
.beam-highlight.stat-card,
.beam-highlight.contact-card,
.beam-highlight.info-card {
  background: rgba(17,17,19,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-4px);
}

/* ═══ BEAM ═══ */
#beam-svg {
  position: absolute; top: 0; left: 0; width: 100%;
  pointer-events: none; z-index: 0; overflow: visible;
}
.beam-trace { fill: none; stroke: rgba(255,255,255,0.03); stroke-width: 1; }
.beam-trail { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 1.5; filter: url(#beam-trail-blur); transition: opacity 0.8s ease; }
.beam-glow { fill: none; stroke: rgba(255,255,255,0.6); stroke-width: 3; filter: url(#beam-blur); }
.beam-core { fill: none; stroke: rgba(255,255,255,0.9); stroke-width: 1.2; }

/* Mobile beam optimizations */
@media (max-width: 768px) {
  .beam-trail { filter: none; stroke: rgba(255,255,255,0.15); stroke-width: 1.2; }
  .beam-glow { filter: url(#beam-trail-blur); stroke-width: 2.5; }
  .beam-core { display: none; }
  .beam-junction { filter: none; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .ki-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-flow { grid-template-columns: 1fr; gap: 16px; }
  .step-connector { transform: rotate(90deg); padding: 8px 0; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  nav { padding: 16px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .ki-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-hero .hero-inner { flex-direction: column; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══ SCROLL PROGRESS BAR ═══ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9));
  box-shadow: 0 0 12px rgba(255,255,255,0.4), 0 0 4px rgba(255,255,255,0.2);
  z-index: 10001;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ═══ FLOATING ACTION BUTTONS ═══ */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  z-index: 9000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fab--ready { opacity: 1; transform: translateY(0); }
.fab__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: rgba(17,17,19,0.85); backdrop-filter: blur(12px); color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.fab__btn:hover {
  transform: scale(1.1); border-color: var(--border-hover);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.fab__btn svg { width: 20px; height: 20px; stroke: var(--text); fill: none; }
.fab__btn--top {
  opacity: 0; transform: scale(0.5); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fab__btn--top.fab__btn--visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.fab__btn--top:hover { transform: scale(1.1); }
@media (max-width: 768px) {
  .fab { bottom: 80px; right: 16px; }
}

/* ═══ MOBILE STICKY CTA ═══ */
.mobile-cta-bar { display: none; }
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
    background: rgba(17,17,19,0.92); backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
    padding: 10px 16px;
  }
  .mobile-cta-bar__inner { display: flex; justify-content: center; }
  .mobile-cta-bar__btn {
    width: 100%; max-width: 400px; background: var(--text); color: var(--bg);
    border: none; padding: 12px 24px; border-radius: 50px;
    font-family: var(--font-primary); font-weight: 700; font-size: 0.875rem;
    cursor: pointer; transition: all 0.3s; letter-spacing: 0.02em;
  }
  .mobile-cta-bar__btn:active { transform: scale(0.97); }
  body.has-mobile-bar { padding-bottom: 62px; }
}

/* ═══ MULTI-STEP MODAL ═══ */
.msf-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  z-index: 10000; align-items: center; justify-content: center; padding: 20px;
}
.msf-overlay--active { display: flex; }
.msf-modal {
  background: #151517; border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; width: 100%; max-width: 540px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: msfModalIn 0.25s ease-out;
}
@keyframes msfModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.msf-modal__close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--text-tertiary); font-size: 24px; cursor: pointer; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  transition: all 0.2s;
}
.msf-modal__close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.msf-modal__title {
  font-family: var(--font-primary); font-size: 1.375rem; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 6px; color: var(--text);
}
.msf-modal__subtitle {
  font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6;
}
.msf-step { display: none; }
.msf-step--active { display: block; animation: msfStepIn 0.3s ease-out; }
@keyframes msfStepIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.msf-back {
  background: none; border: none; color: var(--text-tertiary); font-size: 0.8125rem;
  cursor: pointer; padding: 0; margin-bottom: 1rem; font-family: var(--font-primary);
  transition: color 0.2s;
}
.msf-back:hover { color: var(--text); }
.msf-progress { width: 100%; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-bottom: 0.5rem; }
.msf-progress__bar { height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.5), var(--text)); border-radius: 2px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.msf-progress__label { font-size: 0.75rem; color: var(--text-tertiary); margin-bottom: 1.25rem; }
.msf-cards { display: flex; flex-direction: column; gap: 10px; }
.msf-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.03);
  cursor: pointer; transition: all 0.2s; text-align: left; width: 100%;
  color: var(--text); font-family: var(--font-primary);
}
.msf-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.06); }
.msf-card--selected { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); box-shadow: 0 0 0 1px rgba(255,255,255,0.1); }
.msf-card__icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msf-card__icon svg { width: 24px; height: 24px; stroke: var(--text-secondary); fill: none; }
.msf-card__label { font-size: 0.9375rem; font-weight: 600; }
.msf-form { display: flex; flex-direction: column; gap: 1rem; }
.msf-field { display: flex; flex-direction: column; gap: 0.375rem; }
.msf-field label { font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); }
.msf-field input, .msf-field textarea {
  width: 100%; padding: 0.75rem 1rem; font-family: var(--font-primary); font-size: 0.9375rem;
  color: var(--text); background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; transition: all 0.2s; outline: none;
}
.msf-field input:focus, .msf-field textarea:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
.msf-field textarea { resize: vertical; min-height: 80px; }
.msf-field input::placeholder, .msf-field textarea::placeholder { color: var(--text-tertiary); }
.msf-consent { display: flex; gap: 0.625rem; align-items: flex-start; margin-top: 0.25rem; }
.msf-consent input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; cursor: pointer; accent-color: var(--text); }
.msf-consent label { font-size: 0.75rem; color: var(--text-tertiary); line-height: 1.5; cursor: pointer; }
.msf-consent a { color: var(--text-secondary); text-decoration: underline; }
.msf-submit {
  width: 100%; padding: 14px 24px; background: var(--text); color: var(--bg);
  border: none; border-radius: 50px; font-family: var(--font-primary); font-weight: 700;
  font-size: 0.9375rem; cursor: pointer; transition: all 0.3s; letter-spacing: 0.02em;
}
.msf-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.msf-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.msf-success { text-align: center; padding: 2rem 0; }
.msf-success svg { margin-bottom: 1rem; }
.msf-success__title { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
.msf-success__text { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6; }
.msf-success__close {
  padding: 12px 32px; background: rgba(255,255,255,0.08); color: var(--text);
  border: 1px solid var(--border); border-radius: 50px; font-family: var(--font-primary);
  font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: all 0.3s;
}
.msf-success__close:hover { background: rgba(255,255,255,0.12); border-color: var(--border-hover); }
@media (max-width: 640px) {
  .msf-modal { padding: 28px 20px; }
  .msf-modal__title { font-size: 1.2rem; }
  .msf-card { padding: 14px 16px; }
}

/* ═══ PROJECT DETAIL PAGES ═══ */
.back-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary);
  text-decoration: none; font-size: 13px; font-weight: 500; margin-bottom: 24px;
  transition: color 0.3s;
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; }

.project-hero { padding: 100px 0 0; position: relative; z-index: 1; }
.project-hero-image {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.project-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.project-header { padding: 48px 0 0; }
.project-header h1 {
  font-size: clamp(32px, 4vw, 56px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.project-tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.project-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; border: 1px solid var(--border);
  color: var(--text-secondary); transition: all 0.3s; text-decoration: none;
}
a.project-tag:hover { border-color: var(--border-hover); color: var(--text); }

.project-testimonial { padding: 64px 0; border-bottom: 1px solid var(--border); }
.project-testimonial blockquote {
  font-size: clamp(18px, 2.2vw, 26px); font-weight: 400; line-height: 1.6;
  color: var(--text); font-style: italic; max-width: 800px;
  position: relative; padding-left: 32px;
}
.project-testimonial blockquote::before {
  content: '\201E'; position: absolute; left: 0; top: -8px;
  font-size: 48px; color: var(--text-tertiary); font-style: normal; line-height: 1;
}
.project-testimonial .quote-author { margin-top: 20px; padding-left: 32px; }
.project-testimonial .quote-author strong { font-size: 14px; font-weight: 700; display: block; color: var(--text); }
.project-testimonial .quote-author span { font-size: 13px; color: var(--text-secondary); }

.project-description { padding: 64px 0; }
.project-description h2 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 24px;
}
.project-description .desc-text {
  font-size: 16px; line-height: 1.8; color: var(--text-secondary); max-width: 800px;
}
.project-description .desc-text strong { color: var(--text); font-weight: 600; }

.project-cta { padding: 0 0 64px; }

.project-gallery { padding: 0 0 80px; }
.project-gallery h2 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 24px;
}
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16/10; background: rgba(17,17,19,0.75); backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}
.gallery-item:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); font-size: 13px; font-weight: 500;
}

.project-video { padding: 0 0 80px; }
.video-embed {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }

.more-projects { padding: 80px 0 0; border-top: 1px solid var(--border); }
.more-projects h2 {
  font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.more-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.more-card {
  position: relative; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: rgba(17,17,19,0.75); backdrop-filter: blur(12px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer; text-decoration: none; color: inherit; display: block; overflow: hidden;
}
@media (hover: hover) { .more-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,0.5); } }
.more-card-image { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.more-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .more-card:hover .more-card-image img { transform: scale(1.06); } }
.more-card-image .img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,12,14,0.8) 100%); }
.more-card-body { padding: 20px; }
.more-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.more-card-body .more-card-cat { font-size: 12px; color: var(--text-tertiary); font-weight: 500; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .more-projects-grid { grid-template-columns: 1fr; }
}

/* ═══ MOBILE PERFORMANCE (all subpages) ═══ */
@media (max-width: 768px) {
  .service-card, .process-card, .ki-hub-card, .project-card,
  .testimonial-card, .why-card, .brand-feature, .info-card,
  .contact-card, .value-card, .stat-card {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    background: rgba(17,17,19,0.95) !important;
  }
  .glow-card .glow-border::before, .glow-card .glow-shadow::before { animation: none; }
  .glow-card .glow-shadow { display: none; }
  .ambient-orbs { opacity: 0.3; }
  .orb { filter: blur(60px) !important; }
  .beam-trail { filter: none; }
  .beam-glow { filter: none; }
  .beam-core { filter: none; }
  .beam-junction { filter: none; }
}

/* ═══ COOKIE BANNER ═══ */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20000; background: rgba(17,17,19,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 32px; display: none; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); }
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { max-width: 600px; line-height: 1.6; }
.cookie-banner a { color: var(--text); text-decoration: underline; }
.cookie-btn { padding: 10px 24px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s; font-family: var(--font-primary); }
.cookie-btn-accept { background: var(--text); color: var(--bg); }
.cookie-btn-accept:hover { opacity: 0.85; }
.cookie-btn-decline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.cookie-btn-decline:hover { border-color: var(--border-hover); color: var(--text); }
