/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: hsla(0, 0%, 0%, 0.7);
  border-bottom: 1px solid var(--border-primary);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand span {
  color: var(--fg-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover { color: var(--fg); }

.nav-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4) 50%, transparent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0070e6;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--fg-muted);
  background: hsla(0, 0%, 100%, 0.04);
}

/* ── Glow Card ── */
.glow-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border-primary);
  padding: 28px;
  transition: border-color 0.3s;
}

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

.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--accent-rgb), 0.06),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.glow-card h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.glow-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Terminal Block ── */
.terminal {
  background: var(--card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-primary);
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-copy {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.terminal-copy:hover { color: var(--fg); }

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow-x: auto;
}

.terminal-prompt {
  color: var(--accent);
  user-select: none;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid var(--border-primary);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 24px;
  white-space: pre-line;
}

.gradient-text-shimmer {
  background: linear-gradient(90deg, #fff 0%, #fff 30%, var(--accent) 50%, #fff 70%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.125rem;
}

.hero-terminal {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: left;
}

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

/* ── Problem Cards ── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: hsla(0, 0%, 100%, 0.04);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

/* ── Skills Showcase ── */
.showcase-card {
  background: var(--card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  overflow: hidden;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-primary);
}

.showcase-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.showcase-title svg { color: var(--accent); }

.showcase-repo {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.showcase-repo:hover { color: var(--fg); }

.showcase-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.showcase-col {
  padding: 28px;
}

.showcase-col:first-child {
  border-right: 1px solid var(--border-primary);
}

.showcase-col-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--fg);
}

.showcase-check {
  color: var(--accent);
  flex-shrink: 0;
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: hsla(0, 0%, 100%, 0.04);
  border: 1px solid var(--border-primary);
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* Diagram area */
.showcase-diagram {
  position: relative;
  padding: 40px 28px;
}

.showcase-diagram-fallback {
  display: none;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Installation ── */
.install-wrapper {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.install-desc {
  margin-bottom: 32px;
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.12), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section > p { margin-bottom: 40px; }

.cta-terminal {
  max-width: 600px;
  margin: 0 auto 32px;
  text-align: left;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-primary);
  padding: 40px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer-brand:hover { color: var(--fg); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--fg); }

/* ── Sparkles container ── */
.sparkle-wrapper {
  position: relative;
  display: inline-block;
}
