: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;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base / Body Defaults ─── */
*, *::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;
}
img { max-width: 100%; height: auto; }

/* ─── 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; }
.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; }
.mt-4  { margin-top: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-6  { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-5   { padding: 1.25rem; }
.leading-relaxed { line-height: 1.625; }
.relative { position: relative; }
.z-10  { z-index: 10; }
.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; }
.w-full  { width: 100%; }
.flex    { display: flex; }
.flex-col{ flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.min-h-screen { min-height: 100vh; }
.rounded-lg  { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.inline-flex { display: inline-flex; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.hidden { display: none; }
.transition-colors { transition: color 0.3s var(--ease); }

/* ─── 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; }

/* ─── Focus States ─── */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ─── Gradient Text ─── */
.grad-text {
  color: #8b5cf6;
  background: linear-gradient(90deg, #8b5cf6 0%, #00adff 50%, #00d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Gradient Divider ─── */
.grad-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,173,255,0.3) 20%, rgba(139,92,246,0.3) 50%, rgba(0,217,192,0.3) 80%, transparent 100%);
}

/* ─── Feature Card (Light Glass) ─── */
.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;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  height: 100%;
}
.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);
}
.glass .glow-top {
  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;
}
.glass:hover .glow-top { opacity: 1; }

/* ─── Icon Containers ─── */
.icon-box {
  width: 3rem; height: 3rem; border-radius: 0.5rem; margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(0,173,255,0.2));
  display: flex; align-items: center; justify-content: center;
}
.icon-box svg { width: 1.25rem; height: 1.25rem; }

/* Brand SVG icons via CSS mask */
.brand-icon {
  width: 2rem; height: 2rem;
  background: linear-gradient(135deg, #8b5cf6, #00adff, #00d9c0);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* ─── Primary Button (Glassmorphic + Liquid Fill) ─── */
.btn {
  position: relative; overflow: hidden;
  padding: 12px 24px; border-radius: 8px;
  font-family: var(--bf); font-weight: 500; font-size: 0.875rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s var(--ease); cursor: pointer; border: none;
  color: white;
}
.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 {
  box-shadow: 0 8px 32px rgba(139,92,246,0.3);
  transform: translateY(-2px);
}
.btn-primary .btn-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #8b5cf6, #00adff);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}
.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;
  position: relative;
}
.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); }

/* ─── 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; }
.role-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

@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; }
  .feat-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .role-grid   { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
}
@media (max-width: 600px) {
  .feat-grid-3 { grid-template-columns: 1fr !important; }
  .feat-grid-2 { grid-template-columns: 1fr !important; }
  .role-grid   { grid-template-columns: 1fr !important; }
}

/* ─── Hero Grid ─── */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem; align-items: center; width: 100%;
}

/* ─── Hero Image ─── */
.hero-img {
  width: 100%; object-fit: contain;
}

/* ─── Scroll Chevron ─── */
@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-chevron-wrap { animation: chevronBounce 2s ease-in-out infinite; }

/* ─── Ambient background glows ─── */
.ambient-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}

/* ─── Section ─── */
.page-section { position: relative; z-index: 10; padding: 5rem 0; }

/* ─── MD breakpoint adjustments ─── */
@media (min-width: 768px) {
  .md-text-6xl { font-size: 3.75rem; line-height: 1; }
  .md-text-5xl { font-size: 3rem; line-height: 1; }
  .md-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}