:root {
  --devkit-ink-900: #0f172a;
  --devkit-ink-700: #334155;
  --devkit-ink-500: #64748b;
  --devkit-accent-600: #0284c7;
  --devkit-accent-500: #0ea5e9;
  --devkit-warm-500: #f59e0b;
  --devkit-surface: #ffffff;
  --devkit-surface-alt: #f8fafc;
  --devkit-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --devkit-glow: 0 0 24px rgba(56, 189, 248, 0.35);
}

body {
  font-family: "Space Grotesk", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--devkit-ink-900);
  background:
    radial-gradient(circle at top, rgba(14, 165, 233, 0.08), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 55%, #ffffff 100%);
  min-height: 100vh;
}

body::before {
  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: 32px 32px;
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.5), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: grid-fade 8s ease-in-out infinite;
}

header.devkit-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 70;
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-mobile {
  display: block;
}

.devkit-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-link {
  position: relative;
  color: var(--devkit-ink-700);
  transition: color 0.2s ease;
  padding: 0.35rem 0;
}

.nav-link:hover {
  color: var(--devkit-accent-500);
}

.nav-link.is-active {
  color: var(--devkit-accent-600);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 2px;
  background: var(--devkit-accent-500);
}

.mobile-menu {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.95);
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  display: block;
}

.mobile-menu.is-open {
  max-height: 420px;
  padding-bottom: 1rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.nav-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: relative;
  z-index: 80;
}

.menu-toggle {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.75rem;
  padding: 0.4rem 0.6rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  color: var(--devkit-ink-700);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--devkit-ink-700);
  display: block;
  border-radius: 999px;
}

.hero-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.hero-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.hero-primary:hover::after {
  transform: translateX(120%);
}

.hero-secondary {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.feature-card {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 55%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.feature-card:hover::after {
  opacity: 1;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.effects-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  z-index: 60;
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.effects-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.6rem;
  color: #7dd3fc;
}

.effects-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.effects-toggle input {
  accent-color: #38bdf8;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard {
  max-width: 72rem;
  margin: 3rem auto 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
  color: #e2e8f0;
  border-radius: 2rem;
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
  display: grid;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dashboard::before {
  content: "";
  position: absolute;
  inset: -60% auto auto -30%;
  width: 60%;
  height: 220%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
  filter: blur(40px);
}

.dashboard::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.25), transparent 65%);
  filter: blur(50px);
}

.dashboard-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(56, 189, 248, 0.08) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: scanline 6s ease-in-out infinite;
  pointer-events: none;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.dashboard-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dashboard-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  position: relative;
  z-index: 1;
}

.dashboard-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-card h3 {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-card strong {
  font-size: 1.6rem;
  color: #7dd3fc;
  text-shadow: var(--devkit-glow);
}

.dashboard-card {
  position: relative;
  overflow: hidden;
}

.dashboard-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(125, 211, 252, 0.08) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.dashboard-card:hover::after {
  transform: translateX(120%);
}

.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.3);
}

.dashboard-tooltip {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-card:hover .dashboard-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.meta-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.75rem;
  color: #cbd5f5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-chip span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
  display: inline-block;
}

@media (max-width: 768px) {
  .effects-panel {
    right: 1rem;
    bottom: 1rem;
  }

  .dashboard {
    margin: 2rem 1rem 0;
    padding: 1.5rem;
  }
}

.section-hero {
  box-shadow: var(--devkit-shadow);
  position: relative;
  overflow: hidden;
  animation: float-in 0.7s ease-out both;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.section-hero::after {
  content: "";
  position: absolute;
  inset: -40% 60% auto -10%;
  height: 180%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28), transparent 65%);
  filter: blur(24px);
  animation: hero-pulse 6s ease-in-out infinite;
}

.command-section-meta {
  font-size: 0.85rem;
  color: #94a3b8;
}

.command-hint {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
}

.ghost-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  transition: all 0.2s ease;
}

.ghost-btn:hover {
  border-color: #38bdf8;
  color: #0ea5e9;
}

.anti-scrape-banner {
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .nav-link.is-active::after {
    display: none;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }
}

@keyframes hero-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(8px);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-fade {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.75;
  }
}

@keyframes scanline {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(20%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
