/* ==========================================================================
   WireLang™ — wirelang.ai
   One stylesheet for the whole site. No build step, no framework.
   Brand: dark slate + purple→blue gradient (matches the extension UI).
   ========================================================================== */

:root {
  --bg:        #0b1120;
  --bg-soft:   #0f172a;
  --card:      rgba(255, 255, 255, 0.04);
  --card-edge: rgba(255, 255, 255, 0.10);
  --text:      #f8fafc;
  --muted:     #94a3b8;
  --purple:    #a855f7;
  --blue:      #3b82f6;
  --green:     #4ade80;
  --gradient:  linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  --radius:    16px;
  --maxw:      1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

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

/* ── Header ─────────────────────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-edge);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary { background: var(--gradient); color: #fff; }
.btn-ghost {
  border: 1px solid var(--card-edge);
  color: var(--text);
  background: var(--card);
}
.btn-donate { background: var(--green); color: #052e16; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 96px 24px 72px;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(168, 85, 247, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(59, 130, 246, 0.18), transparent);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.15;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 20px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 640px;
  margin: 0 auto 36px;
}

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

.hero .audience {
  margin-top: 44px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

section { padding: 72px 0; }
section.alt { background: var(--bg-soft); }

.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-sub   { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 48px; }

/* ── Cards grid ─────────────────────────────────────────────────────────── */

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

.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ── Steps (tutorials) ──────────────────────────────────────────────────── */

.steps { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.step {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p, .step li { color: var(--muted); font-size: 14.5px; }
.step ul { padding-left: 18px; margin-top: 6px; }
.step code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 13px;
  color: #c4b5fd;
}

.note {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 16px 20px;
  border-left: 3px solid var(--purple);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── Mission ────────────────────────────────────────────────────────────── */

.mission { text-align: center; max-width: 720px; margin: 0 auto; }
.mission p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.mission .flags { font-size: 26px; letter-spacing: 6px; margin-top: 18px; }

/* ── Donate ─────────────────────────────────────────────────────────────── */

.donate-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 44px 32px;
}
.donate-box p { color: var(--muted); margin: 12px 0 26px; }

/* ── Contact / footer ───────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--card-edge);
  padding: 44px 0 36px;
  background: var(--bg-soft);
}

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

.footer-grid h4 { font-size: 14px; margin-bottom: 10px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }

.legal { color: #64748b; font-size: 12.5px; text-align: center; border-top: 1px solid var(--card-edge); padding-top: 22px; }

/* ── Page headers (tutorial pages) ──────────────────────────────────────── */

.page-head { text-align: center; padding: 72px 24px 12px; }
.page-head h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 600px; margin: 0 auto; }

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; } /* keep only the CTA on small screens */
  .hero { padding: 64px 20px 52px; }
  section { padding: 52px 0; }
}
