/* =================================================================
   TaoNexus — Rive.app inspired interactive tech theme
   ================================================================= */

:root {
  --bg: #030303;
  --bg-alt: #05050a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --text-secondary: #a0a8b8;
  --text-muted: #5a6270;
  --brand: #00d4ff;
  --brand-2: #b056ff;
  --brand-light: rgba(0, 212, 255, 0.10);
  --accent: #00ff9d;
  --accent-soft: rgba(0, 255, 157, 0.15);
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(0, 212, 255, 0.45);
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow: 0 4px 20px -4px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 40px -6px rgb(0 0 0 / 0.6);
  --shadow-xl: 0 25px 60px -10px rgb(0 0 0 / 0.7);
  --shadow-glow: 0 0 80px -20px rgba(0, 212, 255, 0.5);
  --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.55);
  --glow-purple: 0 0 50px rgba(176, 86, 255, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Canvas particle network */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
}

/* Ambient gradient orbs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 212, 255, 0.12), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(176, 86, 255, 0.12), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(0, 255, 157, 0.06), transparent 35%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

/* Noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* Scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05) 0px,
    transparent 1px,
    transparent 2px,
    rgba(255, 255, 255, 0.04) 3px
  );
  background-size: 100% 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 3, 3, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.hamburger { display: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #000;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--glow-cyan);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
  50% { box-shadow: 0 0 50px rgba(0, 212, 255, 0.85); }
}
.brand-name { font-size: 19px; color: var(--text); }
.brand-name span { color: var(--brand); text-shadow: 0 0 20px rgba(0, 212, 255, 0.55); }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 15px; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); text-shadow: 0 0 14px rgba(0, 212, 255, 0.6); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 8px var(--brand);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-item { position: relative; }
.has-dropdown > a::after {
  content: " ▾";
  font-size: 11px;
  opacity: 0.6;
}
.nav-links a:hover::after { display: none; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 200px;
  background: rgba(8, 8, 14, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s ease;
  z-index: 100;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.dropdown a:hover { background: rgba(0, 212, 255, 0.08); color: var(--brand); }
.has-dropdown .dropdown:has(> a:nth-child(5)) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
  min-width: 380px;
}
.dropdown-contact {
  display: flex;
  flex-direction: column;
  min-width: 230px;
  padding: 8px 0;
}
.has-subdropdown { position: relative; }
.has-subdropdown > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--text);
}
.has-subdropdown > a::after {
  content: "›";
  margin-left: 12px;
  color: var(--text-muted);
  font-size: 16px;
}
.has-subdropdown:hover > a { background: rgba(0, 212, 255, 0.08); color: var(--brand); }
.has-subdropdown:hover > a::after { color: var(--brand); }
.subdropdown {
  display: none;
  position: absolute;
  right: 100%;
  top: -10px;
  margin-right: 10px;
  background: rgba(8, 8, 14, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  min-width: 210px;
  padding: 20px 22px;
  z-index: 101;
}
.has-subdropdown:hover .subdropdown { display: block; }
.subdropdown .contact-label { color: var(--text-muted); font-size: 12px; margin-bottom: 2px; }
.subdropdown .contact-value { font-weight: 600; color: var(--text); font-size: 15px; margin-bottom: 14px; }
.subdropdown .contact-value:last-child { margin-bottom: 0; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s ease;
}
.lang-toggle:hover { border-color: var(--brand-hover); color: var(--brand); background: var(--brand-light); box-shadow: var(--glow-cyan); }
.nav-cta { padding: 10px 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #000;
  box-shadow: var(--glow-cyan);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.75);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--brand); background: var(--brand-light); box-shadow: var(--glow-cyan); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }

/* Eyebrow */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.55);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(176, 86, 255, 0.22), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.18), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.08), transparent 45%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.18), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(176, 86, 255, 0.18), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.10), transparent 40%);
  filter: blur(40px);
  animation: meshMove 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.1); }
  100% { transform: translate(20px, -30px) scale(1); }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 24px 120px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #c4ecff 35%, var(--brand) 65%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.25));
}
.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 38px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stats strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-shadow: 0 0 22px rgba(0, 212, 255, 0.4);
  font-family: 'SF Mono', 'Menlo', monospace;
}
.hero-stats span { color: var(--text-muted); font-size: 14px; }

.hero-art { position: relative; height: 460px; perspective: 1000px; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-1 { width: 300px; height: 300px; right: 0; top: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.28), rgba(176, 86, 255, 0.14));
  box-shadow: 0 0 140px rgba(0, 212, 255, 0.35);
  animation: floatA 7s ease-in-out infinite;
}
.orb-2 { width: 220px; height: 220px; left: 20px; bottom: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 157, 0.20), rgba(0, 212, 255, 0.10));
  box-shadow: 0 0 120px rgba(0, 255, 157, 0.25);
  animation: floatB 8s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(3deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(18px) rotate(-3deg); }
}
.card-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(20px);
  color: var(--text);
  transform-style: preserve-3d;
  transition: transform .3s ease;
}
.card-float strong { color: var(--brand); font-weight: 700; }
.card-a { top: 50px; left: 0; animation: floatA 6s ease-in-out infinite; }
.card-b { top: 180px; right: 0; animation: floatB 6.5s ease-in-out infinite; }
.card-c { bottom: 50px; left: 50px; animation: floatA 7.5s ease-in-out infinite; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 20px var(--accent); animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Sections */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 72px; position: relative; z-index: 1; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.7;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-4:has(> *:nth-child(5):last-child) > *:last-child {
  grid-column: 2 / span 2;
}

/* 3D tilt glass card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .15s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.card .spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 212, 255, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 0;
}
.card:hover .spotlight { opacity: 1; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background .4s ease;
}
.card:hover::before {
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  background-size: 300% 300%;
  animation: gradientRotate 3s ease infinite;
}
@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: rgba(0, 212, 255, 0.5);
  background: var(--surface-hover);
}
.card .icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(176, 86, 255, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  margin-bottom: 24px;
  color: var(--brand);
  box-shadow: var(--glow-cyan);
  position: relative;
  z-index: 1;
  transform: translateZ(30px);
}
.card .icon svg { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5)); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; position: relative; z-index: 1; transform: translateZ(20px); }
.card p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; position: relative; z-index: 1; transform: translateZ(10px); }
.card-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.card-link:hover .card-more { color: var(--brand); }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  transition: color .2s;
  position: relative;
  z-index: 1;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
.about-copy p { color: var(--text-secondary); font-size: 18px; line-height: 1.75; margin-bottom: 28px; }
.check-list { list-style: none; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 36px; font-weight: 500; color: var(--text-secondary); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--accent); color: #000;
  border-radius: 50%; font-size: 13px; font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.5);
}
.highlight-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(176, 86, 255, 0.18));
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 28px;
  padding: 44px 38px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), transparent 60%);
  pointer-events: none;
}
.highlight-card h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .85; margin-bottom: 14px; color: var(--brand); position: relative; z-index: 1; }
.highlight-card p { font-size: 24px; font-weight: 700; line-height: 1.4; position: relative; z-index: 1; }

/* Steps */
.steps .step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: all .2s ease;
  backdrop-filter: blur(16px);
}
.steps .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: rgba(0, 212, 255, 0.5); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  font-size: 13px; font-weight: 800;
  color: #000;
  background: var(--brand);
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: var(--glow-cyan);
  font-family: 'SF Mono', 'Menlo', monospace;
}
.step h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.step p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

/* CTA */
.section-cta {
  background: linear-gradient(135deg, #020205, #070a12);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15), transparent 45%),
    radial-gradient(circle at 80% 50%, rgba(176, 86, 255, 0.12), transparent 45%);
  pointer-events: none;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.section-cta h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.section-cta p { color: rgba(255,255,255,.75); font-size: 18px; line-height: 1.65; }

/* Product pages */
.product-hero { padding: 90px 0 70px; }
.product-hero .hero-inner { padding: 0 24px; }
.hero-visual {
  margin-top: 0;
  border-radius: 32px;
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #000;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-xl), var(--glow-cyan);
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,.12), transparent 40%);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  background-size: 300% 300%;
  animation: gradientRotate 4s ease infinite;
  z-index: -1;
  border-radius: 34px;
}
.hero-visual svg {
  width: 120px; height: 120px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.18));
  position: relative; z-index: 2;
}
.card-img {
  height: 170px;
  border-radius: 18px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  color: #000;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 28px rgba(0, 212, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.card-img svg { width: 52px; height: 52px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); position: relative; z-index: 2; }
.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.22), transparent 50%);
}
.badge-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.18);
}
.badge-dev::before { content: ""; width: 6px; height: 6px; background: #fb923c; border-radius: 50%; box-shadow: 0 0 10px #fb923c; animation: pulseDot 2s infinite; }
.pricing-note {
  margin-top: 52px;
  padding: 26px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

/* Advantages */
.advantages { padding: 120px 0; background: var(--bg-alt); position: relative; }
.advantages-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.advantages-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.advantages-head p { color: var(--text-secondary); font-size: 18px; }
.advantage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all .25s ease;
  backdrop-filter: blur(16px);
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl), var(--shadow-glow); border-color: rgba(0, 212, 255, 0.5); }
.advantage-card .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(176, 86, 255, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 16px;
  margin-bottom: 22px;
  color: var(--brand);
  box-shadow: var(--glow-cyan);
}
.advantage-card .icon svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.45)); }
.advantage-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.advantage-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

/* Contact boxes */
.contact-box-inline {
  margin-top: 52px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}
.contact-box-inline h3 { margin-bottom: 20px; font-size: 22px; }
.contact-box-inline p { color: var(--text-secondary); margin-bottom: 8px; }
.contact-details { margin-top: 24px; display: grid; gap: 10px; color: var(--text-secondary); font-size: 15px; }
.contact-details a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.contact-line { margin-top: 16px; color: var(--text-muted); font-size: 15px; }

/* Footer */
.site-footer { background: var(--bg); color: #fff; padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .brand-name { color: #fff; }
.footer-note { color: rgba(255,255,255,.55); font-size: 14px; }
.back-top { color: rgba(255,255,255,.75); font-weight: 600; font-size: 14px; }
.back-top:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 60px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-art { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .showcase-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .section { padding: 80px 0; }
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 98;
}
.mobile-overlay.active { display: block; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 3, 6, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    z-index: 99;
    overflow-y: auto;
  }
  .nav-links.active { display: flex; }
  .nav-links .nav-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
  .nav-links a { font-size: 18px; color: var(--text); }
  .dropdown, .subdropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 0 0 16px;
    display: none;
  }
  .dropdown a, .has-subdropdown > a { font-size: 15px; padding: 10px 0; color: var(--text-secondary); }
  .nav-item.open > .dropdown { display: flex; flex-direction: column; }
  .has-subdropdown.open > .subdropdown { display: block; }
  .has-subdropdown > a::after { content: ""; }
  .subdropdown { padding: 0 0 0 12px; }
}

@media (max-width: 520px) {
  .nav { height: 68px; }
  .nav-links { top: 68px; }
  .nav-right .btn { display: none; }
}

/* Reveal animations */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states */
a:focus-visible, button:focus-visible, .card-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* CTA contact links */
.section-cta .contact-details p { color: rgba(255,255,255,.85); }
.section-cta .contact-details a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.section-cta .contact-details a:hover { color: #7efbff; }

/* CTA mobile improvements */
@media (max-width: 768px) {
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner > div { width: 100%; }
  .contact-box { display: flex; flex-direction: column; align-items: center; }
}

/* Utility for consistent spacing */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }


/* Cyberpunk enhancements */
.hero h1 {
  position: relative;
}
.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
}
.hero h1::before {
  animation: glitch-1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-2px, -1px);
  text-shadow: -2px 0 #ff00ff;
}
.hero h1::after {
  animation: glitch-2 2.5s infinite linear alternate-reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  transform: translate(2px, 1px);
  text-shadow: 2px 0 #00ffff;
}
@keyframes glitch-1 {
  0%, 90%, 100% { opacity: 0; transform: translate(0, 0); }
  92% { opacity: 0.8; transform: translate(-4px, 1px); }
  94% { opacity: 0; transform: translate(2px, -1px); }
  96% { opacity: 0.8; transform: translate(3px, 0); }
  98% { opacity: 0; transform: translate(0, 0); }
}
@keyframes glitch-2 {
  0%, 85%, 100% { opacity: 0; transform: translate(0, 0); }
  87% { opacity: 0.8; transform: translate(4px, -1px); }
  89% { opacity: 0; transform: translate(-2px, 1px); }
  91% { opacity: 0.8; transform: translate(-3px, 0); }
  93% { opacity: 0; transform: translate(0, 0); }
}

.btn-primary {
  animation: neonFlicker 4s infinite;
}
@keyframes neonFlicker {
  0%, 96%, 100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.55); }
  97% { box-shadow: 0 0 50px rgba(0, 212, 255, 0.85); }
  98% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
  99% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.95); }
}

.card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
  opacity: 0.7;
  pointer-events: none;
}
.card .corner-br {
  position: absolute;
  width: 14px;
  height: 14px;
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  opacity: 0.7;
  pointer-events: none;
}

#matrixCanvas {
  mix-blend-mode: screen;
}


/* Custom tech cursor */
.tech-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #00ff9d;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  transition: width 0.15s, height 0.15s, border-color 0.15s;
  box-shadow: 0 0 12px #00ff9d, inset 0 0 6px #00ff9d;
}
.tech-cursor.hover {
  width: 32px;
  height: 32px;
  border-color: #00d4ff;
  box-shadow: 0 0 20px #00d4ff, inset 0 0 10px #00d4ff;
}
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  filter: blur(2px);
}

/* 3D hero canvas */
.hero-art canvas {
  border-radius: 24px;
  overflow: hidden;
}

/* Loading screen */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content {
  text-align: center;
}
.loader-ring {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}
.loader-text {
  color: #00d4ff;
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
