:root {
  --bg: #060d1f;
  --bg-elevated: rgba(12, 22, 48, 0.72);
  --border: rgba(120, 180, 255, 0.14);
  --text: #e8f0ff;
  --text-muted: #8fa3c8;
  --primary: #3d8bff;
  --primary-glow: rgba(61, 139, 255, 0.35);
  --accent: #5ee7ff;
  --success: #3dd68c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 139, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 139, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

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

.bg-glow-a {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -80px;
  background: rgba(61, 139, 255, 0.18);
}

.bg-glow-b {
  width: 420px;
  height: 420px;
  right: -100px;
  top: 40%;
  background: rgba(94, 231, 255, 0.1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 13, 31, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-icon { border-radius: 10px; }

.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-right: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-drawer {
  position: fixed;
  inset: 56px 0 auto 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(6, 13, 31, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer[hidden] { display: none !important; }

.mobile-drawer a {
  padding: 0.75rem 1rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.mobile-drawer a:hover { background: rgba(255, 255, 255, 0.05); }

main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 2rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a8c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.glass-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
  text-align: center;
}

.hero-logo {
  border-radius: 28px;
  box-shadow: 0 0 40px var(--primary-glow);
  margin-bottom: 1rem;
}

.hero-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.hero-card-sub {
  color: var(--text-muted);
  margin: 0.25rem 0 1.25rem;
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2f6fd6 0%, #3d8bff 50%, #5ee7ff 100%);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-primary:hover { box-shadow: 0 12px 36px var(--primary-glow); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.section {
  padding: 3rem 0 1rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 52rem;
}

.section-foot {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.muted { color: var(--text-muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.product-card {
  padding: 1.5rem;
  position: relative;
}

.product-card.featured {
  border-color: rgba(61, 139, 255, 0.35);
  background: linear-gradient(160deg, rgba(61, 139, 255, 0.08), rgba(12, 22, 48, 0.8));
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(61, 139, 255, 0.2);
  color: var(--accent);
}

.product-icon-wrap img { border-radius: 14px; }

.product-card h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.2rem;
}

.product-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.product-meta .dot { margin: 0 0.35rem; opacity: 0.5; }

.feature-list, .changelog {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-list li, .changelog li { margin-bottom: 0.35rem; }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.card-actions.vertical {
  flex-direction: column;
  min-width: 160px;
}

.product-card.wide { padding: 1.5rem 1.75rem; }

.wide-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.module-card {
  padding: 1.35rem;
}

.module-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(61, 139, 255, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.module-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }

.module-card p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.88rem; }

.tools-grid .tool-card { padding: 1.35rem; }

.tools-dl-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tool-dl-card {
  padding: 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-dl-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tool-dl-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.tool-size {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.links-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.link-card {
  padding: 1.2rem 1.35rem;
}

.link-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.link-url {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}

.link-card .btn,
.tool-dl-card .btn {
  min-width: 88px;
}

.card-actions {
  margin-top: auto;
}

.tool-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(94, 231, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.tool-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.tool-card p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.9rem; }

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.link-arrow:hover { text-decoration: underline; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.guide-card {
  padding: 1.5rem;
}

.guide-step {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.guide-card h3 { margin: 0.5rem 0 0.75rem; }

.guide-card ol, .guide-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.guide-card li { margin-bottom: 0.4rem; }

.skeleton-card { padding: 1.5rem; }

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 0.75rem;
}

.skeleton-line.short { width: 60%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer p { margin: 0.35rem 0; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(20, 32, 60, 0.95);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 320px; margin: 0 auto; }
  .nav-links, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .card-actions .btn { flex: 1; min-width: 120px; }
}
