/* ============================================
   PulseOps — WOW Landing
   ============================================ */

:root {
  --primary: #00f5ff;
  --primary-dim: rgba(0, 245, 255, 0.15);
  --accent: #ff2e63;
  --accent-dim: rgba(255, 46, 99, 0.15);
  --purple: #a855f7;
  --bg: #030308;
  --bg-elevated: #0a0a12;
  --glass: rgba(10, 10, 20, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --text: #e8edf5;
  --text-muted: #7a8499;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

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

@media (hover: hover) and (min-width: 1025px) {
  body.loaded {
    cursor: none;
  }

  body.loaded .cursor,
  body.loaded .cursor-dot {
    display: block;
  }
}

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  width: min(320px, 80vw);
}

.preloader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.preloader-icon {
  color: var(--primary);
  font-size: 2.4rem;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.preloader-text span {
  color: var(--primary);
}

.preloader-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.preloader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.preloader-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- Custom Cursor ---- */
.cursor,
.cursor-dot {
  display: none;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
}

.cursor {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 245, 255, 0.4);
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
}

.cursor.hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  background: rgba(255, 46, 99, 0.08);
}

@media (hover: none), (max-width: 1024px) {
  body, body.loaded { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
}

/* ---- Background ---- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: aurora-drift 20s ease-in-out infinite;
}

.aurora-blob--1 {
  width: 60vw;
  height: 60vw;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  animation-delay: 0s;
}

.aurora-blob--2 {
  width: 50vw;
  height: 50vw;
  top: 40%;
  right: -15%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation-delay: -7s;
}

.aurora-blob--3 {
  width: 40vw;
  height: 40vw;
  bottom: -10%;
  left: 30%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 3%) scale(1.05); }
  66% { transform: translate(-3%, 5%) scale(0.95); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
  animation: grid-shift 20s linear infinite;
}

@keyframes grid-shift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

canvas#particles {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: transform 0.5s var(--ease-out-expo), background 0.4s, backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(3, 3, 8, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
}

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

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

.logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.8rem;
  animation: pulse-glow 3s ease-in-out infinite;
}

.logo-accent { color: var(--primary); }

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 4px var(--primary)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 12px var(--primary)); transform: scale(1.05); }
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s var(--ease-out-expo);
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 10;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

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

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  z-index: 1;
}

.btn-text { position: relative; z-index: 2; }

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
}

.btn-primary {
  color: #000;
  box-shadow: 0 0 30px -5px rgba(0, 245, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px -5px rgba(0, 245, 255, 0.6), 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.btn-ghost {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.05);
  transform: translateY(-3px);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-xl { padding: 20px 48px; font-size: 1.15rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 0 4rem;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--primary); }
  50% { opacity: 0.4; box-shadow: none; }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  margin-right: 0.25em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.stat-num-wrap {
  overflow: hidden;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--primary);
  font-weight: 600;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* Hero Visual / Terminal */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.terminal {
  position: relative;
  z-index: 5;
  width: min(480px, 100%);
  background: var(--glass);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 80px -20px rgba(0, 245, 255, 0.15);
  animation: terminal-float 8s ease-in-out infinite;
}

@keyframes terminal-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(0.5deg); }
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--glass-border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #28c840;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #28c840;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  min-height: 220px;
  position: relative;
}

.terminal-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.t-prompt { color: var(--primary); }
.t-success { color: #28c840; }
.t-warn { color: #febc2e; }
.t-error { color: #ff5f57; }
.t-highlight { color: var(--accent); font-weight: 600; }
.t-dim { color: var(--text-muted); }
.t-cmd { color: var(--text); }

.terminal-cursor {
  color: var(--primary);
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(0, 245, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-ring--1 {
  width: 350px;
  height: 350px;
  animation: orbit-spin 25s linear infinite;
}

.orbit-ring--2 {
  width: 450px;
  height: 450px;
  border-color: rgba(255, 46, 99, 0.06);
  animation: orbit-spin 35s linear infinite reverse;
}

.orbit-ring--3 {
  width: 550px;
  height: 550px;
  border-style: dashed;
  border-color: rgba(168, 85, 247, 0.05);
  animation: orbit-spin 45s linear infinite;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  animation: fade-bounce 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

@keyframes fade-bounce {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.title-line.reveal {
  transform: translateY(100%);
}

.title-line.reveal.visible {
  transform: translateY(0);
}

.title-line.reveal .title-word {
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out-expo);
}

.title-line.reveal.visible .title-word {
  transform: translateY(0);
}

/* ---- Marquee ---- */
.marquee-section {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.marquee {
  padding: 1.25rem 0;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-dot {
  color: var(--primary);
  opacity: 0.5;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 10;
  padding: clamp(5rem, 12vw, 10rem) 0;
}

.section--dark {
  background: linear-gradient(180deg, transparent, rgba(10, 10, 20, 0.5) 20%, rgba(10, 10, 20, 0.5) 80%, transparent);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 245, 255, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.service-card:hover {
  border-color: rgba(0, 245, 255, 0.2);
  box-shadow: 0 20px 60px -20px rgba(0, 245, 255, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-tags li {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---- Process ---- */
.process-timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.process-line {
  position: absolute;
  top: 28px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: var(--glass-border);
  z-index: 0;
}

.process-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.5s var(--ease-out-expo);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.process-step {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 0.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  border: 2px solid rgba(0, 245, 255, 0.3);
  border-radius: 50%;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.3s;
}

.process-step:hover .step-number {
  transform: scale(1.15);
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

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

.step-metric {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 46, 99, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ---- Cases ---- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  position: relative;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s;
  overflow: hidden;
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 255, 0.15);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
}

.case-card--featured {
  border-color: rgba(0, 245, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(255, 46, 99, 0.03));
}

.case-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 245, 255, 0.08), transparent, rgba(255, 46, 99, 0.08), transparent);
  animation: case-glow-spin 8s linear infinite;
  pointer-events: none;
}

@keyframes case-glow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.case-industry {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.case-result {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 12px;
  background: var(--primary-dim);
  border-radius: 100px;
}

.case-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
}

.case-metrics {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

.case-metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.case-metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Stack ---- */
.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.stack-list::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent), var(--purple));
  opacity: 0.25;
  border-radius: 2px;
}

.stack-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s, background 0.3s;
  cursor: default;
}

.stack-item:last-child {
  margin-bottom: 0;
}

.stack-item:hover {
  transform: translateX(8px);
  border-color: rgba(0, 245, 255, 0.25);
  background: rgba(0, 245, 255, 0.04);
  box-shadow: 0 8px 32px -8px rgba(0, 245, 255, 0.15);
}

.stack-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  border: 2px solid rgba(0, 245, 255, 0.25);
  border-radius: 14px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.stack-item:hover .stack-icon {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.stack-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.stack-item::after {
  content: '→';
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
}

.stack-item:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}

/* ---- CTA ---- */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section .container {
  display: flex;
  justify-content: center;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: cta-pulse 4s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-align: center;
  max-width: 520px;
}

.cta-content .btn {
  align-self: center;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 10;
  padding: 2.5rem 0;
  border-top: 1px solid var(--glass-border);
}

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

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
    min-height: auto;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 320px; margin-top: 2rem; }

  .orbit-ring--1 { width: 280px; height: 280px; }
  .orbit-ring--2 { width: 360px; height: 360px; }
  .orbit-ring--3 { width: 440px; height: 440px; }

  .cases-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 8, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link { font-size: 1.5rem; }

  .burger { display: flex; }

  .nav .btn-primary { display: none; }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider { display: none; }

  .process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .process-line { display: none; }

  .process-step {
    flex: none;
    max-width: 400px;
    width: 100%;
  }

  .step-content h3 { white-space: normal; }

  .scroll-indicator { display: none; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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