/* =========================================================
   NeuroTek Digital — Global Design System
   File: assets/css/design-system.css
   =========================================================
   Edit CSS variables in :root to update the color palette.
   Font imports, spacing scale, and component base styles.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Color Tokens ─── */
:root {
  --bg-primary:       #050914;
  --bg-secondary:     #091426;
  --bg-tertiary:      #0d1c32;
  --surface:          #0d1c32;
  --surface-glass:    rgba(13, 28, 50, 0.72);
  --surface-raised:   rgba(20, 40, 72, 0.6);

  --brand-blue:       #1479ff;
  --brand-cyan:       #29d5ff;
  --brand-royal:      #3157ff;
  --brand-glow:       rgba(41, 213, 255, 0.15);

  --text-primary:     #f4f8ff;
  --text-secondary:   #8fa8c4;
  --text-muted:       #4d6680;
  --text-accent:      #29d5ff;

  --border-subtle:    rgba(98, 181, 255, 0.14);
  --border-mid:       rgba(98, 181, 255, 0.28);
  --border-bright:    rgba(41, 213, 255, 0.5);

  --success:          #2de3a3;
  --warning:          #f59e0b;
  --danger:           #f43f5e;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 32px rgba(41, 213, 255, 0.12);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img, video, svg { display: block; max-width: 100%; }

a {
  color: var(--brand-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--text-primary); }

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Focus States (Accessibility) ─── */
:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Typography Scale ─── */
.text-xs    { font-size: 0.75rem;  line-height: 1.5; }
.text-sm    { font-size: 0.875rem; line-height: 1.5; }
.text-base  { font-size: 1rem;     line-height: 1.6; }
.text-lg    { font-size: 1.125rem; line-height: 1.5; }
.text-xl    { font-size: 1.25rem;  line-height: 1.4; }
.text-2xl   { font-size: 1.5rem;   line-height: 1.35; }
.text-3xl   { font-size: 1.875rem; line-height: 1.25; }
.text-4xl   { font-size: 2.25rem;  line-height: 1.2; }
.text-5xl   { font-size: 3rem;     line-height: 1.1; }
.text-6xl   { font-size: 3.75rem;  line-height: 1.05; }
.text-7xl   { font-size: 4.5rem;   line-height: 1; }

.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

.font-light   { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }
.font-bold    { font-weight: 700; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--brand-cyan); }
.text-brand     { color: var(--brand-blue); }

.tracking-tight  { letter-spacing: -0.02em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide   { letter-spacing: 0.05em; }
.tracking-wider  { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.15em; }

.uppercase { text-transform: uppercase; }

/* ─── Layout Utilities ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--space-5); }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-5); }

.section {
  padding: var(--space-10) 0;
}

.section-sm {
  padding: var(--space-8) 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* ─── Surface / Card Components ─── */
.glass-panel {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
}

.glass-panel-raised {
  background: var(--surface-raised);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ─── Button Styles ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-royal));
  color: #fff;
  box-shadow: 0 0 20px rgba(20, 121, 255, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d87ff, #3d65ff);
  box-shadow: 0 0 32px rgba(20, 121, 255, 0.5);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
}
.btn-secondary:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  box-shadow: 0 0 20px var(--brand-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* ─── Status Badge ─── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-live {
  background: rgba(45, 227, 163, 0.12);
  color: var(--success);
  border: 1px solid rgba(45, 227, 163, 0.25);
}
.status-live::before { background: var(--success); box-shadow: 0 0 6px var(--success); animation: pulse-dot 2s infinite; }

.status-development {
  background: rgba(20, 121, 255, 0.12);
  color: var(--brand-blue);
  border: 1px solid rgba(20, 121, 255, 0.25);
}
.status-development::before { background: var(--brand-blue); }

.status-beta {
  background: rgba(165, 180, 252, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.25);
}
.status-beta::before { background: #a5b4fc; }

.status-research {
  background: rgba(41, 213, 255, 0.08);
  color: var(--brand-cyan);
  border: 1px solid rgba(41, 213, 255, 0.2);
}
.status-research::before { background: var(--brand-cyan); }

.status-concept {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.status-concept::before { background: var(--text-secondary); }

.status-coming {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-coming::before { background: var(--warning); }

/* ─── Section Headers ─── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brand-cyan);
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
}

/* ─── Grid Lines / Decorative ─── */
.grid-bg {
  background-image:
    linear-gradient(rgba(98, 181, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 181, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
}

/* ─── Scan Line Effect ─── */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  opacity: 0;
  pointer-events: none;
}

/* ─── Tag / Chip ─── */
.tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(20, 121, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.03em;
}

/* ─── Animations ─── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--success); }
  50% { opacity: 0.6; box-shadow: 0 0 12px var(--success); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scan-down {
  from { top: 0; opacity: 0.8; }
  to   { top: 100%; opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(41, 213, 255, 0.1); }
  50%       { box-shadow: 0 0 40px rgba(41, 213, 255, 0.25); }
}

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Responsive Breakpoints ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-9: 64px;
    --space-10: 80px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-8) 0; }
  .container { padding: 0 var(--space-4); }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
}

@media (max-width: 480px) {
  .btn { padding: 11px 20px; font-size: 0.85rem; }
}
