/* ============================================================
   DataForge CLI — RGS Labs™ Design System
   Shared across all pages. Single stylesheet, no build step.
   ============================================================ */

:root{
  /* Color */
  --bg:            #050605;
  --bg-elevated:   #0a0d0a;
  --surface:       #0e120e;
  --surface-hover: #121712;
  --border:        #1c231c;
  --border-strong: #2a332a;

  --text:          #f2f5f0;
  --text-muted:    #9aa39a;
  --text-dim:      #626b62;

  --green:         #7CFF00;
  --green-soft:    #a6ff5c;
  --green-dim:     rgba(124,255,0,0.10);
  --green-line:    rgba(124,255,0,0.28);
  --green-glow:    rgba(124,255,0,0.35);

  --amber:         #ffb020;   /* PRO accent, used sparingly */
  --violet:        #b39bff;   /* TEAMS accent, used sparingly */

  /* Type */
  --font-display: "Space Grotesk", var(--font-ui);
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 100px;

  /* Layout */
  --maxw: 1180px;
  --nav-h: 72px;
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-ui);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  font-size:16px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

img{ max-width:100%; display:block; }
a{ color:inherit; }

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

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:-0.02em;
  margin:0;
}

code, .mono{ font-family:var(--font-mono); }

/* ---------- Background texture ---------- */
.circuit-bg{
  position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(124,255,0,0.14) 1px, transparent 1px);
  background-size:34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 40%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 40%, transparent 80%);
  pointer-events:none;
}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:100;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(5,6,5,0.72);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; gap:48px; }
.nav-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
.nav-brand .logo-dot{
  width:9px; height:9px; border-radius:2px;
  background:var(--green); box-shadow:0 0 10px var(--green-glow);
}
.nav-brand span{
  font-family:var(--font-display); font-weight:600; font-size:16px; color:var(--text);
}
.nav-brand small{ color:var(--text-dim); font-family:var(--font-mono); font-size:11px; margin-left:6px; }

.nav-links{ display:flex; align-items:center; gap:44px; list-style:none; margin:0; padding:0; flex:1; justify-content:center; }
.nav-links a{
  text-decoration:none; color:var(--text-muted); font-size:14.5px; font-weight:500;
  transition:color 0.2s ease; position:relative;
}
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-24px; height:2px; background:var(--green);
}

.nav-actions{ display:flex; align-items:center; gap:16px; flex-shrink:0; }

.nav-toggle{
  display:none; background:none; border:1px solid var(--border-strong); border-radius:var(--r-sm);
  width:38px; height:38px; color:var(--text); cursor:pointer;
}

@media (max-width:900px){
  .nav-links{
    position:fixed; top:var(--nav-h); left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:0;
    background:var(--bg-elevated); border-bottom:1px solid var(--border);
    padding:8px 24px 20px; transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-links li{ width:100%; border-bottom:1px solid var(--border); }
  .nav-links a{ display:block; padding:14px 0; }
  .nav-links a.active::after{ display:none; }
  .nav-toggle{ display:flex; align-items:center; justify-content:center; }
  .nav-actions .btn-ghost{ display:none; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-ui); font-weight:600; font-size:14.5px;
  padding:11px 20px; border-radius:var(--r-pill); text-decoration:none;
  border:1px solid transparent; cursor:pointer;
  transition:transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active{ transform:translateY(1px); }

.btn-primary{
  background:var(--green); color:#04220a;
  box-shadow:0 0 0 1px rgba(124,255,0,0.5) inset;
}
.btn-primary:hover{ box-shadow:0 10px 26px -8px rgba(124,255,0,0.55); transform:translateY(-1px); }

.btn-ghost{
  background:transparent; color:var(--text); border-color:var(--border-strong);
}
.btn-ghost:hover{ border-color:var(--green-line); background:var(--green-dim); }

.btn-outline-sm{
  background:var(--surface); color:var(--text-muted); border-color:var(--border);
  font-size:13px; padding:8px 14px;
}
.btn-outline-sm:hover{ color:var(--text); border-color:var(--border-strong); }

.btn-block{ width:100%; }

/* ---------- Eyebrow / badges ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:12px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--green); background:var(--green-dim); border:1px solid var(--green-line);
  padding:6px 14px; border-radius:var(--r-pill);
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green-glow); }

.tag{
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
  padding:3px 9px; border-radius:6px; border:1px solid var(--border-strong); color:var(--text-muted);
}
.tag.free{ color:var(--text-muted); border-color:var(--border-strong); }
.tag.pro{ color:var(--amber); border-color:rgba(255,176,32,0.35); background:rgba(255,176,32,0.08); }
.tag.teams{ color:var(--violet); border-color:rgba(179,155,255,0.35); background:rgba(179,155,255,0.08); }

/* ---------- Sections ---------- */
section{ padding:100px 0; position:relative; }
.section-head{ max-width:640px; margin:0 0 56px; }
.section-head h2{ font-size:clamp(28px, 4vw, 38px); margin:14px 0 12px; }
.section-head p{ color:var(--text-muted); font-size:16px; }

.section-alt{ background:var(--bg-elevated); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

/* ---------- Cards ---------- */
.card{
  background:linear-gradient(180deg, var(--surface), var(--bg-elevated));
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:28px;
  transition:border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover{ border-color:var(--border-strong); }

.card-icon{
  width:42px; height:42px; border-radius:var(--r-sm);
  background:var(--green-dim); border:1px solid var(--green-line);
  display:flex; align-items:center; justify-content:center;
  color:var(--green); margin-bottom:18px;
}

/* ---------- Terminal window ---------- */
.terminal{
  background:#080a08; border:1px solid var(--border-strong); border-radius:var(--r-md);
  overflow:hidden; box-shadow:0 40px 80px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(124,255,0,0.05);
}
.terminal-bar{
  display:flex; align-items:center; gap:8px;
  padding:12px 16px; background:#0c0f0c; border-bottom:1px solid var(--border);
}
.terminal-bar .dots{ display:flex; gap:6px; }
.terminal-bar .dots span{ width:10px; height:10px; border-radius:50%; background:#2a332a; }
.terminal-bar .path{ margin-left:8px; font-family:var(--font-mono); font-size:12px; color:var(--text-dim); }
.terminal-body{
  padding:22px 20px; font-family:var(--font-mono); font-size:13.5px; line-height:1.8;
  color:#c8d2c4; min-height:220px;
}
.terminal-body .prompt{ color:var(--green); }
.terminal-body .muted{ color:var(--text-dim); }
.terminal-body .caret{
  display:inline-block; width:8px; height:16px; background:var(--green); vertical-align:middle;
  animation:blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

/* ---------- Code blocks / copy ---------- */
.code-block{
  position:relative; background:#080a08; border:1px solid var(--border-strong);
  border-radius:var(--r-sm); padding:16px 52px 16px 18px;
  font-family:var(--font-mono); font-size:13.5px; color:#c8d2c4; overflow-x:auto;
}
.code-block .copy-btn{
  position:absolute; top:10px; right:10px;
  width:32px; height:32px; border-radius:8px;
  background:var(--surface); border:1px solid var(--border-strong); color:var(--text-muted);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:color 0.2s ease, border-color 0.2s ease;
}
.code-block .copy-btn:hover{ color:var(--green); border-color:var(--green-line); }
.code-block .copy-btn.copied{ color:var(--green); border-color:var(--green-line); }

/* ---------- Grid utilities ---------- */
.grid{ display:grid; gap:20px; }
.grid-2{ grid-template-columns:repeat(2, 1fr); }
.grid-3{ grid-template-columns:repeat(3, 1fr); }
.grid-4{ grid-template-columns:repeat(4, 1fr); }
@media (max-width:900px){
  .grid-3, .grid-4{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
}

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border); padding:56px 0 32px; background:var(--bg); }
.footer-grid{
  display:grid; grid-template-columns:1.4fr repeat(3, 1fr); gap:40px; padding-bottom:40px;
}
@media (max-width:768px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-brand p{ color:var(--text-muted); font-size:14px; max-width:280px; margin-top:12px; }
.footer-col h4{ font-size:13px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.08em; font-family:var(--font-mono); font-weight:500; margin-bottom:14px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-col a{ text-decoration:none; color:var(--text-muted); font-size:14.5px; transition:color 0.2s ease; }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  padding-top:24px; border-top:1px solid var(--border);
  font-family:var(--font-mono); font-size:12px; color:var(--text-dim);
}

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ padding:64px 0 40px; position:relative; overflow:hidden; }
.page-hero h1{ font-size:clamp(30px, 4.5vw, 44px); margin:14px 0 12px; }
.page-hero p{ color:var(--text-muted); font-size:16.5px; max-width:600px; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline:2px solid var(--green); outline-offset:2px;
}
