/* ============================================================
   ALEX GORBATIUK — ALA CORPORATE / NOESIS
   Design System: Futuristic 5990 — Dark Neon Premium
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-base:       #04040F;
  --bg-deep:       #02020A;
  --bg-surface:    #080820;
  --bg-glass:      rgba(8, 8, 32, 0.65);
  --text-primary:  #E8E8F0;
  --text-secondary:#9898B8;
  --text-muted:    #5A5A80;
  --accent-cyan:   #00D4FF;
  --accent-indigo: #6366F1;
  --accent-green:  #00FF88;
  --accent-purple: #A855F7;
  --border:        rgba(0, 212, 255, 0.12);
  --border-hover:  rgba(0, 212, 255, 0.4);
  --glow-cyan:     rgba(0, 212, 255, 0.25);
  --glow-indigo:   rgba(99, 102, 241, 0.25);
  --font-display:  'Syne', sans-serif;
  --font-body:     'Space Grotesk', sans-serif;
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.76, 0, 0.24, 1);
  --section-pad:   clamp(80px, 10vw, 140px);
  --container:     1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 2px; }

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { font-size: clamp(0.95rem, 1.3vw, 1.05rem); color: var(--text-secondary); line-height: 1.75; }

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

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 6px 14px;
  margin-bottom: 20px;
  background: rgba(0, 212, 255, 0.04);
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--text-secondary);
}

/* ── Global holographic grid background ────────────────────── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.025) 3px,
    rgba(0, 0, 0, 0.025) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35), 0 0 60px rgba(0, 212, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 212, 255, 0.55), 0 0 80px rgba(0, 212, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.03);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.4s var(--ease-out);
}

#navbar.scrolled {
  background: rgba(4, 4, 15, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo-brand {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  transition: width 0.3s var(--ease-out);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.8rem !important;
  padding: 9px 20px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent-cyan);
  transition: all 0.3s;
}

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

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  z-index: 0;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: blobMorph var(--dur, 10s) ease-in-out infinite alternate;
  will-change: border-radius;
}

.blob-1 {
  width: clamp(400px, 55vw, 720px);
  height: clamp(400px, 55vw, 720px);
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  --dur: 9s;
}

.blob-2 {
  width: clamp(280px, 35vw, 480px);
  height: clamp(280px, 35vw, 480px);
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
  top: 15%;
  right: 8%;
  --dur: 13s;
  animation-delay: -5s;
}

.blob-3 {
  width: clamp(200px, 22vw, 320px);
  height: clamp(200px, 22vw, 320px);
  background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
  top: 40%;
  right: 30%;
  --dur: 11s;
  animation-delay: -3s;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 28px;
  opacity: 0;
}

.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 2s ease-in-out infinite;
}

.hero-title {
  color: var(--text-primary);
  margin-bottom: 28px;
  opacity: 0;
}

.hero-title em {
  font-style: normal;
  color: var(--accent-cyan);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch::before {
  color: var(--accent-cyan);
  animation: glitch-before 5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 42%, 0 42%);
  opacity: 0.7;
}

.glitch::after {
  color: var(--accent-indigo);
  animation: glitch-after 5s infinite;
  clip-path: polygon(0 58%, 100% 58%, 100% 100%, 0 100%);
  opacity: 0.7;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.scroll-indicator-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

.scroll-indicator-text {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Section dividers via clip-path ────────────────────────── */
.section-skew {
  position: relative;
}

.section-skew::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}

.about-text .section-label { text-align: left; display: block; width: fit-content; }
.about-text h2 { text-align: left; margin-bottom: 24px; }
.about-text p { margin-bottom: 20px; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.about-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  background: rgba(0, 212, 255, 0.02);
  transition: all 0.3s;
}

.about-tag:hover {
  color: var(--accent-cyan);
  border-color: var(--border-hover);
  background: rgba(0, 212, 255, 0.05);
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.about-shape-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}

.about-shape {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50% 30% 50% 30% / 30% 50% 30% 50%;
  animation: blobMorph2 8s ease-in-out infinite alternate;
}

.about-shape-inner {
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 30% 50% 30% 50% / 50% 30% 50% 30%;
  animation: blobMorph2 8s ease-in-out infinite alternate-reverse;
  animation-delay: -2s;
}

.about-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.about-center-text .big-letter {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 212, 255, 0.4);
  line-height: 1;
  display: block;
  animation: textGlow 3s ease-in-out infinite alternate;
}

.about-orbit {
  position: absolute;
  inset: -30px;
  border: 1px dashed rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  animation: orbit 20s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

/* ── Services Section ───────────────────────────────────────── */
#services {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-indigo), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  backdrop-filter: blur(8px);
  will-change: transform;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.08);
}

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

.service-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.service-card:nth-child(1) .service-card-glow {
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.06), transparent 60%);
}
.service-card:nth-child(2) .service-card-glow {
  background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.06), transparent 60%);
}
.service-card:nth-child(3) .service-card-glow {
  background: radial-gradient(circle at 30% 70%, rgba(0, 255, 136, 0.04), transparent 60%);
}
.service-card:nth-child(4) .service-card-glow {
  background: radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.06), transparent 60%);
}

.service-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  opacity: 0.5;
  margin-bottom: 20px;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.service-card:nth-child(2) .service-icon { color: var(--accent-indigo); }
.service-card:nth-child(3) .service-icon { color: var(--accent-green); }
.service-card:nth-child(4) .service-icon { color: var(--accent-purple); }

.service-card h3 {
  color: var(--text-primary);
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.service-card > p {
  margin-bottom: 24px;
  font-size: 0.93rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.service-list li::before {
  content: '→';
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.service-card:nth-child(2) .service-list li::before { color: var(--accent-indigo); }
.service-card:nth-child(3) .service-list li::before { color: var(--accent-green); }
.service-card:nth-child(4) .service-list li::before { color: var(--accent-purple); }

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

.audience-inner {
  text-align: center;
}

.audience-copy {
  max-width: 600px;
  margin: 0 auto 48px;
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.audience-tag {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  background: rgba(0, 212, 255, 0.02);
  cursor: default;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.audience-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(99, 102, 241, 0.06));
  opacity: 0;
  transition: opacity 0.3s;
}

.audience-tag:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.1);
}

.audience-tag:hover::before { opacity: 1; }

/* ── Problems Section ───────────────────────────────────────── */
#problems {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

.problems-text h2 {
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.15;
}

.problems-text .section-label { display: block; width: fit-content; text-align: left; margin-bottom: 20px; }

.problems-conclusion {
  margin-top: 28px !important;
  padding: 20px;
  border-left: 2px solid var(--accent-cyan);
  background: rgba(0, 212, 255, 0.03);
}

.problems-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.problem-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  will-change: transform;
}

.problem-item:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.04);
  transform: translateX(4px);
}

.problem-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
  flex-shrink: 0;
}

.problem-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Benefits Section ───────────────────────────────────────── */
#benefits {
  padding: var(--section-pad) 0;
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-item {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-glass);
  text-align: center;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.benefit-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.benefit-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 212, 255, 0.06);
}

.benefit-item:hover::after { transform: scaleX(1); }

.benefit-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: var(--accent-cyan);
}

.benefit-item h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.benefit-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Process Section ────────────────────────────────────────── */
#process {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.process-container {
  position: relative;
  padding-top: 40px;
}

.process-track {
  position: absolute;
  top: 80px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: var(--border);
  z-index: 0;
  transform: none;
}

.process-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-dot {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  margin-bottom: 24px;
  position: relative;
  transition: all 0.4s;
  flex-shrink: 0;
}

.step-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-deep), var(--bg-deep)) padding-box,
              linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo)) border-box;
  opacity: 0;
  transition: opacity 0.4s;
}

.process-step:hover .step-dot { box-shadow: 0 0 24px rgba(0, 212, 255, 0.3); }
.process-step:hover .step-dot::before { opacity: 1; }

.step-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.step-content { padding: 0 12px; }

.step-content h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.brand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.brand-block {
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-glass);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.4s;
}

.brand-block:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.brand-block-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: block;
}

.brand-block:last-child .brand-block-label { color: var(--accent-indigo); }

.brand-block h3 {
  color: var(--text-primary);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 20px;
}

.brand-bg-text {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 212, 255, 0.05);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ── Work / Portfolio Section ────────────────────────────────── */
#work {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  cursor: default;
  position: relative;
  will-change: transform;
}

.work-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.06);
}

.work-card-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card:nth-child(1) .work-card-visual { background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.02)); }
.work-card:nth-child(2) .work-card-visual { background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.02)); }
.work-card:nth-child(3) .work-card-visual { background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 255, 136, 0.01)); }
.work-card:nth-child(4) .work-card-visual { background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.02)); }
.work-card:nth-child(5) .work-card-visual { background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(99, 102, 241, 0.06)); }

.work-card-icon {
  width: 56px;
  height: 56px;
  opacity: 0.6;
}

.work-card:nth-child(1) .work-card-icon { color: var(--accent-cyan); }
.work-card:nth-child(2) .work-card-icon { color: var(--accent-indigo); }
.work-card:nth-child(3) .work-card-icon { color: var(--accent-green); }
.work-card:nth-child(4) .work-card-icon { color: var(--accent-purple); }
.work-card:nth-child(5) .work-card-icon { color: var(--accent-cyan); }

.work-card-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.work-card-body {
  padding: 24px;
}

.work-card-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  display: block;
}

.work-card:nth-child(2) .work-card-type { color: var(--accent-indigo); }
.work-card:nth-child(3) .work-card-type { color: var(--accent-green); }
.work-card:nth-child(4) .work-card-type { color: var(--accent-purple); }

.work-card h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 10px;
}

.work-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }

.work-card-result {
  margin-top: 16px !important;
  font-size: 0.78rem !important;
  color: var(--accent-cyan) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-card-result::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  background: currentColor;
}

/* ── FAQ Section ────────────────────────────────────────────── */
#faq {
  padding: var(--section-pad) 0;
  position: relative;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-glass);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open {
  border-color: rgba(0, 212, 255, 0.25);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--accent-cyan); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.faq-answer {
  height: 0;
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 26px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

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

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.cta-border-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-indigo), transparent);
}

.cta-border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-indigo), var(--accent-cyan), transparent);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 24px;
  line-height: 1.15;
}

.cta-content h2 span {
  color: var(--accent-cyan);
  display: block;
}

.cta-content > p {
  margin-bottom: 40px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contact Section ────────────────────────────────────────── */
#contact {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact-info .section-label { display: block; width: fit-content; margin-bottom: 20px; text-align: left; }
.contact-info h2 { text-align: left; margin-bottom: 20px; font-size: clamp(1.6rem, 3vw, 2.4rem); }

.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
  backdrop-filter: blur(8px);
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.1);
}

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

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

.form-group select option { background: var(--bg-surface); }

.form-submit {
  width: 100%;
  font-size: 0.95rem;
  padding: 16px;
  letter-spacing: 0.08em;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

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

.footer-left { font-size: 0.8rem; color: var(--text-muted); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-brand span { color: var(--accent-cyan); }

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

/* ── Keyframe Animations ─────────────────────────────────────── */
@keyframes blobMorph {
  0%   { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  25%  { border-radius: 40% 60% 30% 70% / 65% 35% 65% 35%; }
  50%  { border-radius: 75% 25% 55% 45% / 35% 65% 35% 65%; }
  75%  { border-radius: 35% 65% 65% 35% / 55% 45% 55% 45%; }
  100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
}

@keyframes blobMorph2 {
  0%   { border-radius: 50% 30% 50% 30% / 30% 50% 30% 50%; }
  50%  { border-radius: 30% 50% 30% 50% / 50% 30% 50% 30%; }
  100% { border-radius: 50% 30% 50% 30% / 30% 50% 30% 50%; }
}

@keyframes glitch-before {
  0%, 85%, 100% { transform: translate(0); opacity: 0; }
  87%            { transform: translate(-4px, 2px);  opacity: 0.7; }
  89%            { transform: translate(4px, -2px);  opacity: 0.7; }
  91%            { transform: translate(-2px, 3px);  opacity: 0.7; }
  93%            { transform: translate(0);           opacity: 0; }
}

@keyframes glitch-after {
  0%, 80%, 100% { transform: translate(0); opacity: 0; }
  82%           { transform: translate(5px, -3px); opacity: 0.7; }
  84%           { transform: translate(-5px, 3px); opacity: 0.7; }
  86%           { transform: translate(3px, -2px); opacity: 0.7; }
  88%           { transform: translate(0);          opacity: 0; }
}

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

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes textGlow {
  0%   { -webkit-text-stroke-color: rgba(0, 212, 255, 0.3); }
  100% { -webkit-text-stroke-color: rgba(0, 212, 255, 0.7); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(0, 212, 255, 0.35), 0 0 60px rgba(0, 212, 255, 0.1); }
  50%       { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), 0 0 100px rgba(0, 212, 255, 0.2); }
}

.btn-primary { animation: pulseGlow 3s ease-in-out infinite; }
.btn-primary:hover { animation: none; }

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid      { grid-template-columns: 1fr 1fr; }
  .benefits-grid      { grid-template-columns: repeat(2, 1fr); }
  .work-grid          { grid-template-columns: repeat(2, 1fr); }
  .about-grid         { grid-template-columns: 1fr; }
  .about-visual       { display: none; }
}

@media (max-width: 768px) {
  .nav-links          { display: none; }
  .nav-hamburger      { display: flex; }
  .nav-links.open     {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 24px;
    background: rgba(4, 4, 15, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    gap: 20px;
  }
  .services-grid      { grid-template-columns: 1fr; }
  .problems-grid      { grid-template-columns: 1fr; }
  .brand-inner        { grid-template-columns: 1fr; }
  .contact-inner      { grid-template-columns: 1fr; }
  .process-steps      { grid-template-columns: repeat(2, 1fr); }
  .process-track      { display: none; }
  .form-row           { grid-template-columns: 1fr; }
  .work-grid          { grid-template-columns: 1fr; }
  .footer-inner       { flex-direction: column; text-align: center; }
  .hero-cta           { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .benefits-grid    { grid-template-columns: 1fr 1fr; }
  .process-steps    { grid-template-columns: 1fr; }
  .audience-tags    { gap: 10px; }
  .audience-tag     { font-size: 0.9rem; padding: 10px 18px; }
}

/* ── Utility: reveal animations (set initial state) ─────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.js-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.js-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE TOGGLE
═══════════════════════════════════════════════════════════ */

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-right: 8px;
  position: relative;
  overflow: hidden;
}

.lang-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.lang-toggle:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.12);
}

.lang-toggle:hover::before { opacity: 1; }

.lang-label {
  color: var(--text-muted);
  transition: color 0.3s;
}

.lang-label.lang-active {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.lang-sep {
  color: var(--border-hover);
  font-size: 0.7rem;
}

/* ═══════════════════════════════════════════════════════════
   HERO — ENHANCED PARALLAX LAYERS
═══════════════════════════════════════════════════════════ */

/* Secondary depth grid — slower parallax layer */
.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 140px 140px;
}

/* Hero name badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
}

.hero-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* Floating stat pills in hero */
.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
  opacity: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-stat-num span {
  color: var(--accent-cyan);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — 3D CANVAS
═══════════════════════════════════════════════════════════ */

#about-canvas {
  display: block;
  width: 360px;
  height: 360px;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.15));
}

/* ═══════════════════════════════════════════════════════════
   SECTION TRANSITION DIVIDERS — CLIP-PATH MORPHING
═══════════════════════════════════════════════════════════ */

#services,
#problems,
#work {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Staggered border-image sweep reveal for section headers */
.section-header .section-label {
  position: relative;
  overflow: hidden;
}

.section-header .section-label::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-surface);
  transform-origin: right;
  animation: labelReveal 0s forwards;
}

@keyframes labelReveal {
  to { transform: scaleX(0); }
}

/* ═══════════════════════════════════════════════════════════
   COUNTER / NUMBER ANIMATION (Benefits counters)
═══════════════════════════════════════════════════════════ */

.benefit-item:hover .benefit-icon {
  filter: drop-shadow(0 0 8px currentColor);
  transform: scale(1.12);
  transition: transform 0.3s var(--ease-out), filter 0.3s;
}

/* ═══════════════════════════════════════════════════════════
   WORK CARDS — enhanced hover tilt
═══════════════════════════════════════════════════════════ */

.work-card {
  --rx: 0deg;
  --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  will-change: transform;
}

.work-grid {
  perspective: 1000px;
}

/* ═══════════════════════════════════════════════════════════
   MORPHING BLOB SHAPES — enhanced
═══════════════════════════════════════════════════════════ */

.blob-1 {
  animation: blobMorph 9s ease-in-out infinite alternate,
             blobDrift1 18s ease-in-out infinite alternate;
}

.blob-2 {
  animation: blobMorph 13s ease-in-out infinite alternate,
             blobDrift2 22s ease-in-out infinite alternate;
  animation-delay: -5s, -8s;
}

.blob-3 {
  animation: blobMorph 11s ease-in-out infinite alternate,
             blobDrift3 16s ease-in-out infinite alternate;
  animation-delay: -3s, -4s;
}

@keyframes blobDrift1 {
  0%   { transform: translate(0,    0); }
  33%  { transform: translate(-40px, 30px); }
  66%  { transform: translate(20px, -20px); }
  100% { transform: translate(-15px, 40px); }
}

@keyframes blobDrift2 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(30px, -40px); }
  100% { transform: translate(-20px, 20px); }
}

@keyframes blobDrift3 {
  0%   { transform: translate(0, 0); }
  40%  { transform: translate(-25px, 35px); }
  100% { transform: translate(30px, -15px); }
}

/* ═══════════════════════════════════════════════════════════
   SECTION ENTRANCE — CLIP-PATH WIPE
═══════════════════════════════════════════════════════════ */

.js-clip-reveal {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

/* ═══════════════════════════════════════════════════════════
   CTA CANVAS — POSITIONING
═══════════════════════════════════════════════════════════ */

#cta {
  position: relative;
}

#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

#cta > .container {
  position: relative;
  z-index: 1;
}

#cta > .cta-bg,
#cta > .cta-border-top,
#cta > .cta-border-bottom {
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   AUDIENCE TAGS — MARQUEE EFFECT ON MOBILE
═══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .audience-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .audience-tags::-webkit-scrollbar { display: none; }
  .audience-tag { flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════════════════
   NAV — LANG TOGGLE MOBILE
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .lang-toggle { margin-right: 0; }
}

/* ═══════════════════════════════════════════════════════════
   ADDITIONAL KEYFRAMES
═══════════════════════════════════════════════════════════ */

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

@keyframes rotateZ {
  from { transform: rotateZ(0deg); }
  to   { transform: rotateZ(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes expandWidth {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes neonFlicker {
  0%, 96%, 98%, 100% { opacity: 1; }
  97%, 99% { opacity: 0.6; }
}

/* Apply subtle float to about-canvas */
#about-canvas {
  animation: floatY 6s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   PARALLAX DATA ATTRIBUTE SUPPORT
═══════════════════════════════════════════════════════════ */

[data-depth] {
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════
   WEBGL CANVASES
═══════════════════════════════════════════════════════════ */

#hero-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#about-canvas {
  display: block;
  width: 340px;
  height: 340px;
}

#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

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

/* WebGL canvases — responsive on all viewports */
@media (max-width: 768px) {
  #hero-webgl,
  #about-canvas,
  #cta-canvas,
  #transition-canvas {
    width: 100% !important;
    height: 100% !important;
  }

  /* Reduce heavy blur on mobile — blur(8px) is a paint bottleneck on low-end GPUs */
  .service-card,
  .work-card,
  .contact-form {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  /* Reduce hero top padding on mobile so title is visible without scrolling */
  .hero-content {
    padding-top: 70px;
  }

  /* Smooth momentum scroll for horizontal tag scroll on iOS */
  .audience-tags {
    -webkit-overflow-scrolling: touch;
  }

  /* Touch-friendly tap targets */
  .btn,
  .nav-links a,
  .faq-question {
    touch-action: manipulation;
  }
}

/* ═══════════════════════════════════════════════════════════
   SERVICE CARDS — 3D TILT
═══════════════════════════════════════════════════════════ */

.services-grid {
  perspective: 800px;
}

.service-card {
  --rx: 0deg;
  --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: box-shadow 0.3s;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

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

@keyframes borderRainbow {
  to { filter: hue-rotate(360deg); }
}

/* hue-rotate is expensive — only activate on devices that support hover (not touch) */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    animation: borderRainbow 2s linear infinite;
  }
}

/* ═══════════════════════════════════════════════════════════
   PROCESS SECTION — 3D PERSPECTIVE
═══════════════════════════════════════════════════════════ */

.process-container {
  perspective: 1200px;
}

.process-steps {
  transform: rotateX(8deg);
  transform-style: preserve-3d;
}

.step-dot.lit {
  box-shadow:
    0 0 12px var(--accent-cyan),
    0 0 40px rgba(0, 212, 255, 0.3);
  border-color: var(--accent-cyan) !important;
}

.process-line.lit {
  box-shadow:
    0 0 12px var(--accent-cyan),
    0 0 40px rgba(0, 212, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM CURSOR (desktop / pointer: fine only)
═══════════════════════════════════════════════════════════ */

@media (pointer: fine) {
  html {
    cursor: none;
  }
}

.cursor-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor-trail {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
  opacity: 0;
}
