/* ===========================
   0. RESET & BODY DEFAULTS
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #d1d5db;
  background: linear-gradient(135deg, #0a1628 0%, #0d1a2d 50%, #0a1628 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===========================
   1. TAILWIND UTILITY CLASSES
   =========================== */
.text-5xl { font-size: 3rem; line-height: 1; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs  { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-white { color: #ffffff; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.leading-relaxed { line-height: 1.625; color:#d1d5db;}
.space-y-6 > * + * { margin-top: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.w-full { width: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.z-10 { z-index: 10; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pr-4 { padding-right: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pt-20 { padding-top: 5rem; }
.min-h-screen { min-height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===========================
   2. LAYOUT
   =========================== */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; position: relative; z-index: 10; }

/* ===========================
   3. AMBIENT BACKGROUND
   =========================== */
.ambient-glow-1 {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(139,92,246,0.06) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
.ambient-glow-2 {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 30% 70%, rgba(139,92,246,0.04) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

/* ===========================
   4. SKIP LINK
   =========================== */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  z-index: 9999; background: #8b5cf6; color: white; padding: 12px 24px; border-radius: 0 0 8px 0;
  font-size: 14px; font-weight: 500;
}
.skip-link:focus { position: fixed; left: 0; top: 0; width: auto; height: auto; overflow: visible; }

/* ===========================
   5. FOCUS STATES
   =========================== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #8b5cf6; outline-offset: 2px; border-radius: 4px;
}

/* ===========================
   6. GRADIENT TEXT
   =========================== */
.gradient-text {
  color: #8b5cf6; /* fallback */
  background: linear-gradient(90deg, #8b5cf6, #00adff, #00d9c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.gradient-text-purple {
  color: #8b5cf6;
  background: linear-gradient(90deg, #8b5cf6 0%, #8b5cf6 40%, #00adff 75%, #00d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.stat-gradient {
  font-family: 'Space Grotesk', sans-serif;
  color: #8b5cf6;
  background: linear-gradient(135deg, #8b5cf6 0%, #8b5cf6 30%, #00adff 60%, #00d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.6)) drop-shadow(0 0 24px rgba(139,92,246,0.4));
}

/* ===========================
   7. BUTTONS
   =========================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: #ffffff !important; cursor: pointer; border: none;
  transition: all 0.3s; position: relative;
  text-decoration: none;
}
.btn-primary {
  background: rgba(139,92,246,0.8);
  border: 1px solid rgba(139,92,246,0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.3);
}
.btn-primary .btn-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #8b5cf6, #00adff);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover .btn-fill { transform: translateX(0); }
.btn-primary .btn-text,
.btn-primary .btn-arrow { position: relative; z-index: 1; }
.btn-primary .btn-arrow { transition: transform 0.3s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* Secondary Button */
.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: white;
  backdrop-filter: blur(10px);
  overflow: visible;
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}
.btn-secondary .btn-border-static {
  position: absolute; inset: 0; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: opacity 0.3s; pointer-events: none;
}
.btn-secondary:hover .btn-border-static { opacity: 0; }
.btn-secondary .border-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
}
.btn-secondary .border-svg rect {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.6s ease-out;
}
.btn-secondary:hover .border-svg rect { stroke-dashoffset: 0; }
.btn-secondary .btn-glow {
  position: absolute; inset: 0; border-radius: 8px;
  box-shadow: 0 0 20px rgba(139,92,246,0.3);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.btn-secondary:hover .btn-glow { opacity: 1; }
.btn-secondary .btn-text,
.btn-secondary .btn-arrow { position: relative; z-index: 1; }
.btn-secondary .btn-arrow { transition: transform 0.3s; }
.btn-secondary:hover .btn-arrow { transform: translateX(4px); }

/* ===========================
   9. LIGHT GLASS CARD (shared)
   =========================== */
.light-glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.light-glass:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(139,92,246,0.08);
  transform: translateY(-2px);
}
.light-glass .card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.light-glass:hover .card-glow { opacity: 1; }

/* Feature card inherits light-glass */
.feature-card { padding: 1.75rem 1.5rem; }

/* ===========================
   10. ICON SYSTEM (CSS Mask)
   =========================== */
.icon-gradient {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6, #00adff, #00d9c0);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.icon-container {
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(0,173,255,0.2));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.icon-container .icon-gradient { width: 2rem; height: 2rem; }
.icon-inline-circle {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(0,173,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-inline-circle .icon-gradient { width: 1.5rem; height: 1.5rem; }
.icon-usecase { width: 3rem; height: 3rem; margin-bottom: 1rem; }

/* ===========================
   11. COMMAND CARD
   =========================== */
.command-card {
  border-radius: 0.75rem; padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none; backdrop-filter: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%; position: relative; overflow: hidden;
}
.command-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(139,92,246,0.08);
  transform: translateY(-2px);
}
.command-card .cc-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.command-card:hover .cc-glow { opacity: 1; }
.command-node {
  position: absolute; top: 16px; right: 16px; width: 64px; height: 64px;
}
.command-orbit {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px dashed rgba(0,173,255,0.3);
  animation: orbitSpin 20s linear infinite;
}
.command-card:hover .command-orbit { animation-play-state: paused; }
.command-node-inner {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,173,255,0.1);
  position: relative;
}
.command-node-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0,173,255,0.25);
}
.command-node-glow {
  position: absolute; inset: 4px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,173,255,0.15) 0%, transparent 70%);
}

/* ===========================
   12. COMMAND CENTRE BOX
   =========================== */
.command-box {
  position: relative; border-radius: 1.5rem;
  padding: 1.5rem; background: rgba(10,22,40,0.95);
  backdrop-filter: blur(20px);
}
@media (min-width: 769px) { .command-box { padding: 2rem; } }

/* ===========================
   13. FAQ
   =========================== */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-btn {
  width: 100%; padding: 1.25rem 0; display: flex; align-items: center;
  justify-content: space-between; text-align: left;
  background: transparent; border: none; cursor: pointer; color: white;
}
.faq-btn span:first-child {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  padding-right: 1rem; font-size: 1rem; line-height: 1.5rem;
}
.faq-icon {
  font-size: 1.5rem; color: #00adff; transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-content {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-item.open .faq-content { max-height: 500px; }
.faq-content-inner {
  padding-bottom: 1.25rem; font-size: 0.875rem; line-height: 1.625;
  color: #d1d5db;
}
.faq-content-inner a { color: #00adff; text-decoration: underline; }

/* ===========================
   14. CASE STUDY CARD
   =========================== */
.case-study {
  position: relative; border-radius: 1rem; padding: 2px;
  background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(0,173,255,0.3), rgba(0,217,192,0.5));
}
.case-study-inner {
  background: rgba(13,26,45,0.95); border-radius: 1rem; padding: 3rem 2rem;
  position: relative; overflow: hidden;
}
.case-study-neural {
  position: absolute; bottom: 24px; right: 24px; opacity: 0.4; pointer-events: none;
}

/* ===========================
   16. PRODUCT HERO IMAGE
   =========================== */
.hero-stacked { display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateY(-0.5rem); }
.hero-img-full { width: 100%; max-width: 58rem; margin-left: auto; margin-right: auto; padding-top: 2.25rem; padding-bottom: 4.5rem; position: relative; overflow: visible; }
.hero-img-full::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; height: 80%; border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(139,92,246,0.45) 0%,
    rgba(139,92,246,0.25) 25%,
    rgba(0,173,255,0.12) 50%,
    rgba(0,217,192,0.04) 70%,
    transparent 85%
  );
  filter: blur(60px);
  pointer-events: none; z-index: 0;
}
.hero-img-full img {
  width: 100%; object-fit: contain; position: relative; z-index: 1;
}
.hero-particle {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 2;
}
.hero-particle-1 { width: 5px; height: 5px; background: #8b5cf6; box-shadow: 0 0 10px rgba(139,92,246,0.8), 0 0 20px rgba(139,92,246,0.4); top: 20%; left: 5%; animation: heroOrbit1 20s linear infinite; }
.hero-particle-2 { width: 4px; height: 4px; background: #00adff; box-shadow: 0 0 8px rgba(0,173,255,0.8), 0 0 16px rgba(0,173,255,0.4); bottom: 25%; right: 4%; animation: heroOrbit2 25s linear infinite; }
.hero-particle-3 { width: 3px; height: 3px; background: #00d9c0; box-shadow: 0 0 6px rgba(0,217,192,0.7), 0 0 14px rgba(0,217,192,0.3); top: 55%; left: 3%; animation: heroOrbit3 30s linear infinite; }
.hero-particle-4 { width: 4px; height: 4px; background: #8b5cf6; box-shadow: 0 0 8px rgba(139,92,246,0.7), 0 0 16px rgba(139,92,246,0.3); top: 15%; right: 8%; animation: heroOrbit4 22s linear infinite; }
.hero-particle-5 { width: 3px; height: 3px; background: #00adff; box-shadow: 0 0 6px rgba(0,173,255,0.7), 0 0 12px rgba(0,173,255,0.3); bottom: 18%; left: 8%; animation: heroOrbit5 28s linear infinite; }
@keyframes heroOrbit1 { 0%{transform:translate(0,0)} 25%{transform:translate(680px,30px)} 50%{transform:translate(700px,180px)} 75%{transform:translate(40px,160px)} 100%{transform:translate(0,0)} }
@keyframes heroOrbit2 { 0%{transform:translate(0,0)} 25%{transform:translate(-620px,-20px)} 50%{transform:translate(-660px,-150px)} 75%{transform:translate(-30px,-140px)} 100%{transform:translate(0,0)} }
@keyframes heroOrbit3 { 0%{transform:translate(0,0)} 25%{transform:translate(340px,-100px)} 50%{transform:translate(700px,-40px)} 75%{transform:translate(360px,80px)} 100%{transform:translate(0,0)} }
@keyframes heroOrbit4 { 0%{transform:translate(0,0)} 25%{transform:translate(-300px,100px)} 50%{transform:translate(-580px,60px)} 75%{transform:translate(-280px,-40px)} 100%{transform:translate(0,0)} }
@keyframes heroOrbit5 { 0%{transform:translate(0,0)} 25%{transform:translate(400px,-60px)} 50%{transform:translate(580px,80px)} 75%{transform:translate(200px,120px)} 100%{transform:translate(0,0)} }
.hero-bottom { max-width: 42rem; margin: 0 auto; text-align: center; }
.hero-h1 { white-space: nowrap; }
.scroll-chevron {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: opacity 0.5s, color 0.3s;
  animation: chevronBob 2s ease-in-out infinite;
}
.scroll-chevron:hover { color: rgba(255,255,255,0.8); }
.scroll-chevron.hidden { opacity: 0; pointer-events: none; }
.scroll-chevron-text { font-family: 'Inter', sans-serif; font-size: 0.75rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.85); }
@keyframes chevronBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.case-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: center; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .three-col { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr !important; }
  .three-col.command-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .case-grid { grid-template-columns: 1fr !important; }
  .enterprise-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 500px) {
  .feature-grid { grid-template-columns: 1fr !important; }
  .three-col { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .text-5xl { font-size: 2.25rem; line-height: 2.5rem; }
  .hero-subtitle { font-size: 1.5rem !important; line-height: 2rem !important; }
  .hero-h1 { white-space: normal !important; }
}

/* ===========================
   19. ANIMATIONS
   =========================== */
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes travelBorder { 0% { left: 0%; top: 0; } 25% { left: 100%; top: 0; } 50% { left: 100%; top: 100%; } 75% { left: 0%; top: 100%; } 100% { left: 0%; top: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .command-orbit { animation: none !important; }
  .travel-dot { display: none !important; }
  canvas { display: none !important; }
  html { scroll-behavior: auto !important; }
}