:root {
  --bg: #06080f;
  --bg-alt: #0c1018;
  --card: #121826;
  --card-hover: #181f30;
  --border: #24304a;
  --text: #eef2ff;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent2: #22d3ee;
  --green: #34d399;
  --gold: #fbbf24;
  --radius: 1rem;
  --font: "Segoe UI", "Inter", system-ui, sans-serif;
}

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

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

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

.hero {
  padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  gap: 1rem 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

nav strong {
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
}

nav a, .lang-switch a {
  color: var(--muted);
  font-size: 0.9rem;
}

nav a:hover, .lang-switch a:hover { color: var(--text); }

.lang-switch {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lang-switch a.active {
  color: var(--accent2);
  font-weight: 600;
}

.hero-copy { max-width: 720px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 56ch;
}

.disclosure {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding-left: 0.85rem;
}

main {
  padding: 2.5rem clamp(1rem, 4vw, 4rem) 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.card:hover {
  background: var(--card-hover);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  width: fit-content;
}

.badge-tool { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.badge-community { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }
.badge-platform { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }

.card h2 {
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.perk {
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
}

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

.btn-block { width: 100%; }

.stack-flow {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.stack-flow ol {
  margin: 1rem 0 0 1.25rem;
  color: var(--muted);
}

.stack-flow li { margin-bottom: 0.5rem; }

.stack-flow strong { color: var(--text); }

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1rem, 4vw, 4rem);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a { color: var(--muted); }

@media (max-width: 600px) {
  nav { gap: 0.5rem 0.85rem; }
  .card { padding: 1.25rem; }
}
