/* =========================================================
   Base + Theme
   ========================================================= */

:root{
  --bg: #0b1020;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.12);
  --accent: #69a7ff;
  --accent2: #7ee0d2;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --max: 1050px;
}

/* Smooth section anchors under sticky header */
html { scroll-behavior: smooth; }
section { scroll-margin-top: 90px; }

/* Reset + better sizing */
* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(
    180deg,
    #0b1020 0%,
    #0e162a 50%,
    #050711 100%
  );
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

/* Make media responsive */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Long code/tables should scroll instead of breaking mobile layout */
pre {
  overflow-x: auto;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}
code { word-break: break-word; }

table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

/* =========================================================
   Container + Main spacing
   ========================================================= */

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
}

main.container{
  padding: 34px 0 60px;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(5,7,17,0.55);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 3px rgba(105,167,255,0.15);
}

.nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}

.nav a:hover{
  background: rgba(255,255,255,0.06);
  color: white;
}

/* =========================================================
   Cards / Panels / Hero
   ========================================================= */

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
  margin-bottom: 20px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(105,167,255,0.22), transparent 60%);
  top: -240px;
  right: -220px;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1{
  margin: 0 0 12px;       /* NEW: spacing */
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.10;
  letter-spacing: -0.6px;
}

.eyebrow{
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Your role line (if it’s bold text or h3 in md, it will benefit from spacing) */
.hero strong, .hero b{
  display: inline-block;
  margin-top: 6px;
}

.hero .subtitle{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 100%;
}

/* Badges: more spacing */
.badges{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;              /* NEW */
  margin-top: 22px;       /* NEW */
}

.badge{
  padding: 8px 12px;      /* NEW */
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 13px;
}

/* Buttons: more spacing */
.actions{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;              /* NEW */
  margin-top: 24px;       /* NEW */
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;     /* slight increase */
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: white;
  font-weight: 600;
}
.btn:hover{
  background: rgba(255,255,255,0.10);
}
.btn.primary{
  border-color: rgba(105,167,255,0.35);
  background: linear-gradient(135deg, rgba(105,167,255,0.25), rgba(126,224,210,0.18));
}
.btn.primary:hover{
  background: linear-gradient(135deg, rgba(105,167,255,0.35), rgba(126,224,210,0.25));
}

/* =========================================================
   Grids / Sections / Panels
   ========================================================= */

.grid{
  display:grid;
  gap: 14px;
}

.grid.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Section spacing */
.section {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.section h2{
  font-size: 18px;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.muted{ color: var(--muted); }
.small{ font-size: 13px; color: var(--muted2); }

.panel {
  padding: 18px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, background 0.3s ease;
}

.panel:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.10);
}

.kv{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.kv strong{ font-size: 14px; }
.kv span{ color: var(--muted); font-size: 14px; }

/* Extra utility styles you had */
.center { text-align: center; }

.tagline {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 15px;
}

.impact-strip .panel {
  text-align: center;
  background: rgba(255,255,255,0.04);
}

.highlight-card {
  border: 1px solid rgba(105,167,255,0.25);
  background: linear-gradient(
    135deg,
    rgba(105,167,255,0.08),
    rgba(126,224,210,0.06)
  );
}

.highlight-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(
    135deg,
    rgba(105,167,255,0.18),
    rgba(126,224,210,0.12)
  );
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(5,7,17,0.6);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links{
  display:flex;
  gap: 14px;
}

.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: white; }

/* =========================================================
   Responsive rules
   ========================================================= */

@media (max-width: 860px){
  /* grids collapse to 1 column */
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  /* header stacks neatly */
  .header-inner{
    align-items:flex-start;
    flex-direction: column;
  }

  main.container{
    padding: 26px 0 50px;
  }

  /* HERO: reduce padding on smaller screens */
  .hero{
    padding: 32px 22px;
    margin-bottom: 34px;
  }

  .hero::before{
    width: 520px;
    height: 520px;
    top: -220px;
    right: -240px;
  }

  .hero .subtitle{
    max-width: 100%;
  }
}

@media (max-width: 480px){
  .container { padding: 0 14px; }

  .nav { gap: 8px; }
  .nav a { padding: 6px 8px; font-size: 14px; }

  .panel { padding: 14px; }
  pre { padding: 10px; }

  .hero{
    padding: 28px 16px;
  }
}

/* =========================================================
   Mobile Navigation Upgrade
   ========================================================= */

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
}

/* Desktop nav */
.nav {
  display: flex;
  gap: 14px;
}

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    padding: 10px 0;
    background: rgba(5,7,17,0.95);
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  .nav a {
    padding: 10px 14px;
  }

  .nav.nav-open {
    display: flex;
  }
}
