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

:root {
  --bg:         #eef2f8;
  --bg2:        #e2e9f3;
  --card:       rgba(255, 255, 255, 0.82);
  --card-hover: rgba(255, 255, 255, 0.95);
  --border:     rgba(15, 23, 42, 0.1);
  --border-hi:  rgba(14, 165, 233, 0.55);
  --text:       #0f172a;
  --text2:      #475569;
  --muted:      #64748b;
  --cyan:       #0ea5e9;
  --cyan-dim:   rgba(14, 165, 233, 0.14);
  --green:      #16a34a;
  --green-dim:  rgba(22, 163, 74, 0.12);
  --blue:       #2563eb;
  --blue-dim:   rgba(37, 99, 235, 0.12);
  --orange:     #d97706;
  --red:        #dc2626;
  --r:          12px;
  --r-sm:       8px;
  --t:          0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 12% -5%, rgba(14, 165, 233, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 60% 45% at 92% 8%, rgba(37, 99, 235, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(22, 163, 74, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 55%, #e8eef6 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
.hdr {
  position: sticky; top: 0; z-index: 100;
  height: 58px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.75rem;
}

.hdr-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.hdr-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}

.hdr-badge {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(14, 165, 233, 0.28);
  padding: 2px 9px; border-radius: 99px;
  letter-spacing: 0.05em;
}

/* ── MAIN ── */
.main {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 2.5rem 1.75rem 4rem;
}

/* ── SHARED HERO TYPOGRAPHY ── */
.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.15;
  background: linear-gradient(125deg, #0f172a 0%, var(--cyan) 45%, #0369a1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.55rem;
}

.hero p {
  color: var(--text2);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.35); }
  50%       { box-shadow: 0 0 0 5px rgba(0,212,255,0); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
}

@keyframes pcb-pop {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.22); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
