:root {
  --sf: 'Space Grotesk', sans-serif;
  --bf: 'Inter', sans-serif;
  --deep-sea: #0a1628;
  --purple: #8b5cf6;
  --blue: #00adff;
  --mint: #00d9c0;
  --purple-tint: #a78bfa;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;

}

/* ========================================
   1. BODY & RESETS
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--bf);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-300);
  background: linear-gradient(135deg, #0a1628 0%, #0d1a2d 50%, #0a1628 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ========================================
   2. 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: var(--white); }
.text-center { text-align: center; }
.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; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.leading-relaxed { line-height: 1.625; }

/* ========================================
   3. GRADIENT TEXT
   ======================================== */
.grad-text {
  color: #8b5cf6; /* WCAG fallback */
  background: linear-gradient(90deg, #8b5cf6 0%, #00adff 50%, #00d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text { color: #8b5cf6; background: none; }
}

/* ========================================
   4. SKIP LINK
   ======================================== */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: white; padding: 12px 24px;
  border-radius: 0 0 8px 8px; z-index: 100; font-family: var(--bf);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ========================================
   5. FOCUS STATES
   ======================================== */
a:focus-visible, button:focus-visible, .feature-card:focus-visible {
  outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 8px;
}

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

/* ========================================
   7. NEURAL CANVAS (animated background)
   ======================================== */
#neural-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}

/* ========================================
   8. BUTTONS
   ======================================== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-family: var(--bf); font-size: 0.875rem; font-weight: 500;
  color: white; text-decoration: none;
  transition: all 0.3s; cursor: pointer; border: 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);
}
.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-text { position: relative; z-index: 1; }
.btn-arrow { position: relative; z-index: 1; transition: transform 0.3s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* Secondary button */
.btn-secondary {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  overflow: visible;
  transition: all 0.3s;
  text-decoration:none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.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; }
.border-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
}
.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-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:hover .btn-arrow { transform: translateX(4px); }

/* ========================================
   9. GRADIENT DIVIDER
   ======================================== */
.gradient-divider {
  height: 2px; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
}
.gradient-divider-inner {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,217,192,0.3) 20%, rgba(139,92,246,0.3) 50%, rgba(0,173,255,0.3) 80%, transparent 100%);
}

/* ========================================
   10. FEATURE CARDS (glass)
   ======================================== */
.feature-card {
  padding: 1.75rem 1.5rem; border-radius: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden; height: 100%;
}
.feature-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);
}
.feature-card .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;
}
.feature-card:hover .card-glow { opacity: 1; }
.card-content { position: relative; z-index: 1; }

/* Icon container inside feature card */
.icon-box {
  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;
}
/* CSS mask icon (brand SVG icons) */
.icon-mask {
  width: 2rem; height: 2rem;
  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;
}
/* Inline SVG icon fallback */
.icon-svg {
  width: 20px; height: 20px;
}

/* ========================================
   11. FEATURE GRID
   ======================================== */
.feat-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.feat-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }

/* ========================================
   12. HERO
   ======================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem; align-items: center; width: 100%;
}
.hero-h1 { font-size: 2.25rem; line-height: 2.5rem; }
.hero-img {
  width: 100%; object-fit: contain;
}

/* ========================================
   13. SCROLL CHEVRON
   ======================================== */
@keyframes chevronBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-chevron-wrap { animation: chevronBounce 2s ease-in-out infinite; }
.scroll-chevron-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 0 auto; background: none; border: none; cursor: pointer;
  padding-bottom: 2rem; transition: opacity 0.3s;
}

/* ========================================
   15. RESPONSIVE
   ======================================== */
@media (min-width: 768px) {
  .hero-h1 { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1200px) {
  .px-6 { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (max-width: 900px) {
  .feat-grid-3 { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .text-5xl { font-size: 2.25rem; }
  .text-4xl { font-size: 1.875rem; }
  .text-3xl { font-size: 1.5rem; }
  .text-2xl { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  .feat-grid-3 { grid-template-columns: 1fr !important; }
  .feat-grid-2 { grid-template-columns: 1fr !important; }
}

/* ========================================
   16. REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-chevron-wrap { animation: none; }
}
