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

:root {
  --bg-primary: #08080d;
  --bg-secondary: #0c0c14;
  --bg-tertiary: #10101c;
  --bg-card: rgba(14, 14, 26, 0.65);
  --bg-glass: rgba(22, 119, 255, 0.04);
  --blue: #1677ff;
  --blue-light: #4096ff;
  --blue-dim: rgba(22, 119, 255, 0.12);
  --purple: #7c3aed;
  --purple-dim: rgba(124, 58, 237, 0.12);
  --cyan: #06b6d4;
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --amber: #f59e0b;
  --white: #f0f0f0;
  --white-dim: #a0a0b8;
  --white-muted: #6b6b80;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(22, 119, 255, 0.25);
  --gradient-main: linear-gradient(135deg, #1677ff 0%, #7c3aed 50%, #06b6d4 100%);
  --gradient-blue: linear-gradient(135deg, #1677ff, #4096ff);
  --gradient-subtle: linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(124, 58, 237, 0.08));
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(22, 119, 255, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --section-padding: 120px 0;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(22, 119, 255, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(22, 119, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 119, 255, 0.4);
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover { color: var(--white); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Loading ── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 64px;
  height: 64px;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(22, 119, 255, 0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 24px rgba(22, 119, 255, 0.6)); transform: scale(1.05); }
}

.loading-logo svg {
  width: 100%;
  height: 100%;
}

.loading-bar {
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-main);
  border-radius: 3px;
  animation: loading-progress 1.2s ease forwards;
}

@keyframes loading-progress {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(14, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  color: var(--white-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  border-color: var(--border-glow);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

canvas#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.25), transparent 70%);
  top: -150px;
  right: -150px;
  animation: orb-drift 25s ease-in-out infinite;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
  bottom: 15%;
  left: -100px;
  animation: orb-drift 30s ease-in-out infinite reverse;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
  top: 50%;
  right: 8%;
  animation: orb-drift 20s ease-in-out infinite 5s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 25px); }
}

/* ═══════════════════ SHARED ═══════════════════ */

.page-container {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
}

.page-section {
  padding: var(--section-padding);
  position: relative;
}

.page-section + .page-section { border-top: 1px solid var(--border); }
.page-section.dark-bg { background: var(--bg-secondary); }
.page-section.darker-bg { background: var(--bg-tertiary); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--blue);
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--blue-dim);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

.section-title.static { animation: none; background-size: 100% 100%; }

.section-subtitle {
  color: var(--white-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Lucide icons ── */
.lucide {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 36px; height: 36px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  font-family: var(--font-sans);
  position: relative;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 24px rgba(22, 119, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 0 40px rgba(22, 119, 255, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  background: rgba(22, 119, 255, 0.06);
  box-shadow: 0 0 24px rgba(22, 119, 255, 0.12);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-blue { background: var(--blue-dim); color: var(--blue-light); }
.badge-purple { background: var(--purple-dim); color: #a78bfa; }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-cyan { background: rgba(6,182,212,0.12); color: var(--cyan); }
.badge-amber { background: rgba(245,158,11,0.12); color: var(--amber); }
.badge-red { background: rgba(239,68,68,0.12); color: var(--red); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.card:hover .card-icon { border-color: var(--border-glow); }

.card-icon.blue { background: var(--blue-dim); color: var(--blue-light); }
.card-icon.purple { background: var(--purple-dim); color: #a78bfa; }
.card-icon.green { background: var(--green-dim); color: var(--green); }
.card-icon.cyan { background: rgba(6,182,212,0.12); color: var(--cyan); }
.card-icon.amber { background: rgba(245,158,11,0.12); color: var(--amber); }
.card-icon.red { background: rgba(239,68,68,0.12); color: var(--red); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.card p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.65;
}

.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card-list {
  list-style: none;
  margin-top: 14px;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.82rem;
  color: var(--white-dim);
}

.card-list li::before {
  content: '\2192';
  color: var(--blue);
  font-weight: 600;
  flex-shrink: 0;
}

/* ═══════════════════ NAV ═══════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.35s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 13, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a[data-route] {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--white-dim);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.nav-links a[data-route]:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a[data-route].active {
  color: var(--white);
  background: var(--blue-dim);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--white) !important;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
  margin-left: 6px;
}

.nav-github svg { width: 15px; height: 15px; }

.nav-github:hover {
  border-color: var(--border-glow);
  background: rgba(22, 119, 255, 0.06);
  color: var(--white) !important;
  box-shadow: 0 0 20px rgba(22, 119, 255, 0.12);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}

.nav-mobile-toggle:hover { border-color: var(--border-hover); }

/* ═══════════════════ HOME ═══════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  font-size: 0.78rem;
  color: var(--white-dim);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.hero-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 20px rgba(22, 119, 255, 0.3));
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 20px;
  background: var(--gradient-main);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
  filter: drop-shadow(0 0 60px rgba(22, 119, 255, 0.25));
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  min-height: 2.8rem;
}

.hero-tagline .typed-text {
  border-right: 2px solid var(--blue);
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--blue); }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--white-dim);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-down 2.5s infinite;
}

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

.hero-scroll-indicator svg {
  width: 22px;
  height: 22px;
  color: var(--white-muted);
}

/* ── Stats ── */
.stats-bar {
  padding: 56px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 14px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-item:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--white-muted);
  margin-top: 4px;
  font-weight: 500;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-cta-section {
  text-align: center;
  padding: 80px 0;
}

.home-cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 14px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-cta-section p {
  color: var(--white-dim);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ═══════════════════ PAGE HERO ═══════════════════ */

.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-dim) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 14px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: var(--white-dim);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.feature-category { margin-bottom: 48px; }

.feature-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════ FRAMEWORKS ═══════════════════ */

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.framework-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
}

.framework-card.blue::before { background: var(--blue); }
.framework-card.purple::before { background: var(--purple); }
.framework-card.cyan::before { background: var(--cyan); }
.framework-card.green::before { background: var(--green); }
.framework-card.amber::before { background: var(--amber); }
.framework-card.red::before { background: var(--red); }

.framework-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-2px);
}

.framework-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.framework-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.framework-card .version {
  font-size: 0.72rem;
  color: var(--white-muted);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
}

.framework-card > p {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.6;
  margin-bottom: 10px;
}

.framework-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.framework-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--white-muted);
}

.framework-meta-item strong { color: var(--white-dim); }

.framework-card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white-dim);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}

.framework-card-toggle:hover {
  border-color: var(--border-glow);
  color: var(--white);
  background: rgba(22,119,255,0.05);
}

.framework-card-toggle .lucide { width: 14px; height: 14px; transition: transform 0.3s ease; }

.framework-card.open .framework-card-toggle .lucide { transform: rotate(180deg); }

.framework-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.framework-card.open .framework-detail {
  max-height: 700px;
  opacity: 1;
  margin-top: 14px;
}

.framework-detail-inner {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.framework-detail-section { margin-bottom: 12px; }
.framework-detail-section:last-child { margin-bottom: 0; }

.framework-detail-section h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.framework-detail-section p {
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.6;
}

.framework-detail-list { list-style: none; }

.framework-detail-list li {
  position: relative;
  padding: 2px 0 2px 14px;
  font-size: 0.8rem;
  color: var(--white-dim);
}

.framework-detail-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ═══════════════════ SCANNERS ═══════════════════ */

.scanner-category { margin-bottom: 48px; }

.scanner-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.scanner-category-header .icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.scanner-category-header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.scanner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.scanner-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.scanner-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.scanner-card h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
}

.scanner-card p {
  font-size: 0.78rem;
  color: var(--white-dim);
  line-height: 1.55;
  margin-bottom: 8px;
}

/* ═══════════════════ ARCHITECTURE ═══════════════════ */

.arch-diagram {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  margin-bottom: 48px;
  overflow-x: auto;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 600px;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  min-width: 90px;
  text-align: center;
  transition: all 0.3s ease;
}

.arch-node:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.arch-node .icon { font-size: 1.3rem; }
.arch-node .label { font-size: 0.72rem; font-weight: 600; color: var(--white-dim); }

.arch-arrow { color: var(--white-muted); font-size: 1.1rem; flex-shrink: 0; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.tech-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.tech-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.tech-card .icon {
  font-size: 1.3rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.tech-card .info h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

.tech-card .info p {
  font-size: 0.72rem;
  color: var(--white-muted);
}

/* ═══════════════════ DEMO ═══════════════════ */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.screenshot-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
}

.screenshot-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-4px);
}

.screenshot-card img { width: 100%; display: block; }

.screenshot-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(to top, rgba(8,8,13,0.92), transparent);
}

.screenshot-card .overlay h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.screenshot-card .overlay p {
  font-size: 0.78rem;
  color: var(--white-dim);
  margin-top: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  border-color: var(--border-glow);
  background: rgba(22,119,255,0.08);
}

.lightbox-title {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

/* ═══════════════════ QUICK START ═══════════════════ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.step-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.6;
}

.terminal {
  max-width: 740px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(8,8,13,0.95);
  box-shadow: var(--shadow-card);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 7px; }

.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--white-muted);
  font-family: var(--font-mono);
}

.terminal-copy {
  background: none;
  border: 1px solid var(--border);
  color: var(--white-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.25s ease;
}

.terminal-copy:hover { border-color: var(--border-glow); color: var(--white); }
.terminal-copy.copied { border-color: var(--green); color: var(--green); }

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-body .line { display: block; }
.terminal-body .prompt { color: var(--cyan); user-select: none; }
.terminal-body .command { color: var(--white); }
.terminal-body .flag { color: var(--purple); }
.terminal-body .string { color: #a5d6ff; }
.terminal-body .comment { color: var(--white-muted); font-style: italic; }

.note-box {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(22,119,255,0.12);
  background: rgba(22,119,255,0.05);
  font-size: 0.82rem;
  color: var(--white-dim);
  max-width: 740px;
  margin: 20px auto 0;
}

.note-box code {
  background: rgba(22,119,255,0.12);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-light);
}

/* ═══════════════════ API ═══════════════════ */

.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.api-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.api-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.api-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.api-method {
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.api-method.get { background: var(--green-dim); color: var(--green); }
.api-method.post { background: var(--blue-dim); color: var(--blue-light); }
.api-method.put { background: rgba(245,158,11,0.12); color: var(--amber); }
.api-method.delete { background: rgba(239,68,68,0.12); color: var(--red); }

.api-path { font-family: var(--font-mono); font-size: 0.82rem; color: var(--white); }

.api-card p { font-size: 0.78rem; color: var(--white-dim); }

/* ═══════════════════ MISSION ═══════════════════ */

.mission-hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(22,119,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.mission-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 36px;
  animation: pulse-glow 3s ease-in-out infinite;
}

.mission-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 18px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission-statement {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--white-dim);
  max-width: 680px;
  margin: 0 auto 14px;
  line-height: 1.8;
}

.mission-statement strong { color: var(--white); font-weight: 600; }

.mission-sub {
  font-size: 0.95rem;
  color: var(--white-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.value-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
  text-align: center;
}

.value-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: var(--blue-dim);
  color: var(--blue-light);
  border: 1px solid var(--border);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--white);
}

.value-card p {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.6;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.problem-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.problem-card:hover { border-color: var(--border-hover); }

.problem-card .problem-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(239,68,68,0.1);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.15);
}

.problem-card h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--red);
}

.problem-card p {
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.55;
}

.solution-card { border-left: 3px solid var(--green); }
.solution-card .problem-icon { background: var(--green-dim); color: var(--green); border-color: rgba(34,197,94,0.15); }
.solution-card h4 { color: var(--green); }

.principle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.principle-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}

.principle-content p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}

.principle-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 180px;
}

.principle-visual .lucide { width: 56px; height: 56px; color: var(--blue); opacity: 0.6; }

.team-cta {
  text-align: center;
  padding: 24px 0;
}

.team-cta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.team-cta p {
  color: var(--white-dim);
  margin-bottom: 22px;
}

/* ═══════════════════ FOOTER ═══════════════════ */

.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline { color: var(--white-muted); font-size: 0.85rem; }

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: left;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  color: var(--white-muted);
  font-size: 0.82rem;
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--blue-light); }

.footer-copyright { color: var(--white-muted); font-size: 0.78rem; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */

@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media (max-width: 768px) {
  :root { --section-padding: 80px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8,8,13,0.97);
    backdrop-filter: blur(24px);
    padding: 14px 20px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: flex; }

  .hero h1 { letter-spacing: -1px; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-item::after { display: none; }

  .home-features-grid,
  .card-grid-2, .card-grid-3, .card-grid-4,
  .screenshots-grid,
  .framework-grid,
  .scanner-grid,
  .api-grid,
  .steps-grid { grid-template-columns: 1fr; }

  .footer-links-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .arch-flow { min-width: unset; flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-row { grid-template-columns: 1fr; }
  .orb-1, .orb-2, .orb-3 { opacity: 0.18; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links-grid { grid-template-columns: 1fr; text-align: center; }
  .tech-grid { grid-template-columns: 1fr; }
}
