/* ============================================
   RNG Labs — Shared Theme
   Dark background: AQ-50 green-tinted dark
   Accents: homepage cyan/blue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

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

:root {
  /* Backgrounds — AQ-50 green-tinted darks */
  --bg:        #0E0F0D;
  --surface:   #171A16;
  --surface2:  #1E2219;
  --border:    #272B25;

  /* Accents — homepage cyan/blue */
  --cyan:      #00e5c8;
  --cyan2:     #00b4d8;
  --purple:    #7b5ea7;

  /* Text */
  --text:      #E8E6E0;
  --muted:     #7A7A70;
  --hint:      #4A4A44;

  /* Semantic */
  --warn:      #D4784A;
  --warn-light:#221409;

  /* Fonts */
  --font-head: 'Exo 2', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(0,180,216,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(123,94,167,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

* { position: relative; z-index: 1; }

/* ── Shared header ── */
.site-header {
  padding: 0 3rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(14,15,13,0.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 28px; height: 28px;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(0,229,200,0.35);
}

.logo-icon svg { width: 14px; height: 14px; fill: var(--cyan); }
.logo span { color: var(--cyan); }

.site-nav { display: flex; align-items: center; gap: 2rem; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--cyan); }

.nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--cyan); }

/* ── Shared footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ── Shared buttons ── */
.btn-primary {
  background: var(--cyan);
  color: #080A07;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 0 20px rgba(0,229,200,0.25);
  display: inline-block;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,229,200,0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Shared tag ── */
.tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,229,200,0.08);
  border: 1px solid rgba(0,229,200,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes barGrow { from { width: 0 !important; } }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header { padding: 0 1.5rem; }
  .site-footer { flex-direction: column; gap: 0.5rem; }
}
