/* VoidCoder website — dark terminal-inspired theme */
:root {
  --bg: #0a0e14;
  --bg-2: #0d1320;
  --panel: #111927;
  --border: #1d2737;
  --text: #d7e0ee;
  --muted: #8b98ad;
  --accent: #6ee7b7;       /* mint / terminal green */
  --accent-2: #5aa7ff;     /* blue */
  --danger: #ff6b6b;
  --warn: #ffd479;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- ambient background ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(600px 300px at 20% -5%, rgba(90,167,255,0.20), transparent 60%),
    radial-gradient(600px 300px at 80% 0%, rgba(110,231,183,0.14), transparent 60%);
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 20, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.brand-mark {
  font-family: var(--mono); color: var(--accent); font-size: 18px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 8px; background: var(--panel);
}
.brand-name { font-size: 17px; }
.brand-name em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  text-decoration: none; border-radius: 10px; padding: 12px 20px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04231a; }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(110,231,183,0.28); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.icon { width: 16px; height: 16px; }

/* ---- hero ---- */
.hero { padding: 90px 24px 60px; }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .5px;
  color: var(--muted); text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; background: var(--panel);
}
.eyebrow.center { margin-inline: auto; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 10px var(--accent); }
h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 22px;
}
.accent { color: var(--accent); }
.lede { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.lede.center { text-align: center; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

/* ---- terminal mockup ---- */
.terminal {
  text-align: left; max-width: 720px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45); overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #0f1626; border-bottom: 1px solid var(--border);
}
.tbtn { width: 12px; height: 12px; border-radius: 50%; }
.tbtn.red { background: #ff5f56; } .tbtn.yellow { background: #ffbd2e; } .tbtn.green { background: #27c93f; }
.terminal-title { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; overflow-x: auto; }
.terminal-body pre { font-family: var(--mono); }
.t-prompt { color: var(--accent); font-weight: 600; }
.t-info { color: var(--muted); }
.t-ok { color: var(--accent); }
.t-warn { color: var(--warn); }
.t-muted { color: #4b5a70; }

/* ---- sections ---- */
.section { padding: 84px 24px; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-title { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 40px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 26px;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(110,231,183,0.4); }
.card-icon { font-size: 20px; color: var(--accent); margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---- steps ---- */
.steps { list-style: none; max-width: 720px; margin: 0 auto; }
.steps li { display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: none; }
.step-num { font-family: var(--mono); color: var(--accent); font-size: 16px; flex-shrink: 0; width: 40px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---- download ---- */
.download-card {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, rgba(110,231,183,0.06), transparent), var(--panel);
  border: 1px solid var(--border); border-radius: 18px; padding: 48px 36px;
}
.download-actions { display: flex; justify-content: center; margin: 28px 0 22px; }
.dl-note { color: var(--muted); font-size: 14px; }
.dl-note code, .card code { font-family: var(--mono); color: var(--accent); font-size: 0.9em; background: rgba(110,231,183,0.08); padding: 2px 6px; border-radius: 5px; }
.dl-note .btn { margin-top: 16px; }

/* ---- docs links ---- */
.doc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
@media (max-width: 760px) { .doc-links { grid-template-columns: 1fr; } }
.link-card { display: block; text-decoration: none; color: var(--text); }
.link-card h3 { color: var(--accent); margin-bottom: 6px; }
.link-card p { font-size: 14px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand em { color: var(--accent); font-style: normal; }
.footer-copy { color: var(--muted); font-size: 13.5px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; margin-left: 20px; }
.footer-links a:hover { color: var(--accent); }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
