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

:root {
  --bg: #0a0d14;
  --surface: #111724;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-b: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #3b82f6;
  --accent2: #6366f1;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --text: #e2e8f0;
  --muted: #64748b;
  --code-bg: #0d1117;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(59, 130, 246, .18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(99, 102, 241, .14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10, 13, 20, .85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.nav-logo svg {
  color: var(--accent);
}

.nav-badge {
  font-size: .7rem;
  font-weight: 600;
  background: rgba(59, 130, 246, .15);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, .3);
  padding: .15rem .55rem;
  border-radius: 99px;
  letter-spacing: .05em;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.nav-badge:hover {
  background: rgba(59, 130, 246, .25);
  border-color: rgba(59, 130, 246, .5);
  color: #93c5fd;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--text);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
  padding: .3rem .8rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.hero-chip:hover {
  background: rgba(16, 185, 129, .18);
  border-color: rgba(16, 185, 129, .4);
  color: #34d399;
}

.hero-chip::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(.7);
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #e2e8f0 30%, #93c5fd 70%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, .4), 0 8px 32px rgba(59, 130, 246, .3);
  transition: transform .2s, box-shadow .2s, filter .2s;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent);
  pointer-events: none;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, .6), 0 16px 40px rgba(59, 130, 246, .4);
  filter: brightness(1.08);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn svg {
  flex-shrink: 0;
}

.download-meta {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .9rem;
}

.download-meta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}

.download-meta a:hover {
  color: #93c5fd;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}

.chip {
  font-size: .75rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
}

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: background .2s, transform .2s;
}

.card:hover {
  background: var(--glass-b);
  transform: translateY(-2px);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
  font-size: 1.1rem;
}

.card h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.card p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.5;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  background: rgba(59, 130, 246, .15);
  border: 1px solid rgba(59, 130, 246, .3);
  color: var(--accent);
  margin-top: .1rem;
}

.step-body h4 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

.step-body p {
  font-size: .875rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: rgba(59, 130, 246, .15);
  border-color: rgba(59, 130, 246, .35);
  color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

pre,
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
}

pre {
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: .8rem 0;
  line-height: 1.6;
  color: #c9d1d9;
}

code:not(pre code) {
  background: rgba(255, 255, 255, .07);
  padding: .12em .4em;
  border-radius: 4px;
  color: #a5b4fc;
  font-size: .82rem;
}

.alert {
  display: flex;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: .875rem;
}

.alert.note {
  background: rgba(59, 130, 246, .08);
  border: 1px solid rgba(59, 130, 246, .2);
}

.alert.tip {
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .2);
}

.alert.warn {
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .2);
}

.alert-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.plugin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.plugin-table th {
  text-align: left;
  padding: .6rem .9rem;
  background: var(--glass-b);
  border-bottom: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.plugin-table td {
  padding: .6rem .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  color: var(--text);
}

.plugin-table tr:hover td {
  background: var(--glass);
}

.pid {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--accent);
  background: rgba(59, 130, 246, .1);
  padding: .1em .45em;
  border-radius: 4px;
}

.tree-card {
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
}

.tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1.1rem;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: .75rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.tree-dots {
  display: flex;
  gap: .4rem;
}

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

.tree-dot.red { background: #ef4444; opacity: .75; }
.tree-dot.yellow { background: #f59e0b; opacity: .75; }
.tree-dot.green { background: #10b981; opacity: .75; }

.tree-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.25rem 1.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  line-height: 1.85;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

.tree-branch {
  color: #4b5563;
  user-select: none;
}

.tree-dir {
  color: #93c5fd;
  font-weight: 600;
}

.tree-file {
  color: #e2e8f0;
}

.tree-note {
  color: #64748b;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}

footer a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Feedback Banner ─────────────────────────────────── */
.feedback-banner {
  position: relative;
  margin: 0 0 0;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(245, 158, 11, .18);
  border-bottom: 1px solid rgba(245, 158, 11, .18);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .06) 0%, rgba(99, 102, 241, .06) 100%);
  overflow: hidden;
}

.feedback-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(245, 158, 11, .10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(99, 102, 241, .08) 0%, transparent 70%);
  pointer-events: none;
}

.feedback-inner {
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.feedback-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  animation: heartbeat 2.8s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.12);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.06);
  }

  56% {
    transform: scale(1);
  }
}

.feedback-body {
  flex: 1;
}

.feedback-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .4rem;
}

.feedback-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
  color: var(--text);
}

.feedback-body p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: .45rem;
}

.feedback-body p:last-of-type {
  margin-bottom: 1.1rem;
}

.feedback-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 158, 11, .35);
  padding-bottom: .05rem;
  transition: color .2s, border-color .2s, gap .2s;
}

.feedback-link:hover {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, .6);
  gap: .85rem;
}

.feedback-link svg {
  transition: transform .2s;
}

.feedback-link:hover svg {
  transform: translateX(3px);
}

@media (max-width: 600px) {
  nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .feedback-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

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

.screenshot-card figcaption {
  padding: .65rem 1.1rem;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
