/* =========================================================
   AFRISTACK — Design System
   Feel: Stripe / Vercel / Cloudflare / Anthropic — clean,
   quiet, confident. No hype, lots of whitespace. Light theme.
   ========================================================= */

:root{
  --bg:            #ffffff;
  --bg-soft:       #f6f6f8;
  --bg-elevated:   #f1f2f5;
  --panel:         #ffffff;
  --panel-border:  rgba(15,17,25,0.09);
  --panel-border-strong: rgba(15,17,25,0.16);

  --text:          #12141c;
  --text-soft:     #4b4f5c;
  --text-faint:    #868b99;

  --accent:        #b8802a;   /* warm gold — signature accent, darkened for contrast on white */
  --accent-strong: #96661e;
  --accent-dim:    rgba(184,128,42,0.10);

  --blue:          #3462e0;   /* secondary accent for network/tech motifs */
  --blue-dim:      rgba(52,98,224,0.10);

  --success:       #189a56;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --maxw: 1180px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "IBM Plex Mono", Consolas, Menlo, monospace;

  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  line-height:1.55;
}

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

::selection{ background:var(--accent-dim); color:var(--accent-strong); }

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

/* ---------- Background network canvas ---------- */
#network-bg{
  position:fixed;
  inset:0;
  z-index:0;
  opacity:0.7;
  pointer-events:none;
}
.bg-gradient{
  position:fixed;
  inset:0;
  z-index:0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(184,128,42,0.07), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 0%, rgba(52,98,224,0.06), transparent 60%),
    var(--bg);
  pointer-events:none;
}

main, header, footer, .mobile-menu{ position:relative; z-index:1; }

/* ---------- Nav ---------- */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  background:rgba(255,255,255,0.78);
  border-bottom:1px solid var(--panel-border);
}
.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:17px;
  letter-spacing:-0.01em;
}
.brand .mark{
  width:28px; height:28px;
  display:inline-block;
  flex-shrink:0;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:34px;
  list-style:none;
  margin:0; padding:0;
}
.nav-links a{
  font-size:14.5px;
  color:var(--text-soft);
  transition:color .15s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none;
  background:none; border:none; color:var(--text); cursor:pointer;
  width:36px; height:36px;
}
.mobile-menu{
  display:none;
  flex-direction:column;
  gap:4px;
  padding:8px 28px 22px;
  border-bottom:1px solid var(--panel-border);
  background:rgba(255,255,255,0.98);
}
.mobile-menu a{
  padding:12px 0;
  font-size:15px;
  color:var(--text-soft);
  border-bottom:1px solid var(--panel-border);
}
.mobile-menu.open{ display:flex; }

@media (max-width:860px){
  .nav-links, .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 22px;
  border-radius:10px;
  font-size:14.5px;
  font-weight:600;
  cursor:pointer;
  border:1px solid transparent;
  transition:all .18s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--text);
  color:#ffffff;
}
.btn-primary:hover{ background:var(--accent-strong); transform:translateY(-1px); }
.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--panel-border-strong);
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent-strong); }
.btn-lg{ padding:15px 28px; font-size:15.5px; }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Sections / Type ---------- */
section{ padding:110px 0; border-bottom:1px solid var(--panel-border); }
section:last-of-type{ border-bottom:none; }
.section-tight{ padding:80px 0; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--accent-strong);
  margin-bottom:18px;
}
.eyebrow::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent);
  display:inline-block;
}

h1,h2,h3,h4{ margin:0 0 16px; letter-spacing:-0.02em; font-weight:700; }
h1{ font-size:clamp(38px,6vw,68px); line-height:1.06; }
h2{ font-size:clamp(28px,4vw,42px); line-height:1.15; }
h3{ font-size:20px; line-height:1.3; }
p{ margin:0 0 16px; color:var(--text-soft); }
.lead{ font-size:19px; color:var(--text-soft); max-width:640px; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

.section-head{ max-width:680px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Hero ---------- */
.hero{
  padding:150px 0 110px;
  border-bottom:1px solid var(--panel-border);
}
.hero-inner{ max-width:820px; }
.hero p.lead{ max-width:600px; margin-bottom:36px; }

/* ---------- Trusted-by strip ---------- */
.strip{
  padding:44px 0;
  border-bottom:1px solid var(--panel-border);
}
.strip-label{
  font-size:12.5px;
  text-transform:uppercase;
  letter-spacing:0.1em;
  color:var(--text-faint);
  margin-bottom:22px;
}
.strip-row{
  display:flex;
  flex-wrap:wrap;
  gap:36px;
  align-items:center;
  color:var(--text-faint);
  font-weight:600;
  font-size:15px;
}
.strip-row span{ opacity:0.85; }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap:22px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:900px){
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:620px){
  .grid-3, .grid-4, .grid-2{ grid-template-columns:1fr; }
}

.card{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:var(--radius-md);
  padding:30px;
  box-shadow:0 1px 2px rgba(15,17,25,0.03);
  transition:border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover{ border-color:var(--panel-border-strong); transform:translateY(-3px); box-shadow:0 12px 28px rgba(15,17,25,0.08); }
.card .tag{
  display:inline-block;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:20px;
  margin-bottom:16px;
}
.tag-live{ background:rgba(24,154,86,0.10); color:var(--success); }
.tag-soon{ background:rgba(15,17,25,0.06); color:var(--text-faint); }
.card-icon{
  width:40px; height:40px;
  border-radius:10px;
  background:linear-gradient(135deg, var(--accent-dim), var(--blue-dim));
  border:1px solid var(--panel-border-strong);
  margin-bottom:18px;
}
.card a.card-link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:14px; font-weight:600; color:var(--accent-strong);
  margin-top:8px;
}

/* ---------- Stats ---------- */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--panel-border);
  border:1px solid var(--panel-border);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.stat{
  background:var(--bg-soft);
  padding:36px 24px;
  text-align:center;
}
.stat .num{
  font-size:clamp(30px,4vw,44px);
  font-weight:800;
  color:var(--text);
  letter-spacing:-0.02em;
}
.stat .label{
  font-size:13.5px;
  color:var(--text-faint);
  margin-top:6px;
}
@media (max-width:760px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Ecosystem diagram ---------- */
.ecosystem{
  background:var(--bg-soft);
  border:1px solid var(--panel-border);
  border-radius:var(--radius-lg);
  padding:60px 30px;
}
.eco-tree{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
}
.eco-root{
  padding:14px 26px;
  border-radius:10px;
  background:var(--panel);
  border:1px solid var(--panel-border-strong);
  font-weight:700;
  font-size:17px;
}
.eco-line{ width:1px; height:34px; background:var(--panel-border-strong); }
.eco-branches{
  display:flex;
  gap:60px;
  flex-wrap:wrap;
  justify-content:center;
  position:relative;
}
.eco-branch{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.eco-node{
  padding:12px 20px;
  border-radius:10px;
  background:var(--panel);
  border:1px solid var(--panel-border);
  font-weight:600;
  font-size:14.5px;
  min-width:150px;
  text-align:center;
}
.eco-node.primary{ border-color:var(--accent); color:var(--accent-strong); }
.eco-leaf{
  font-size:13px;
  color:var(--text-faint);
  text-align:center;
}

/* ---------- CTA banner ---------- */
.cta-banner{
  background:linear-gradient(135deg, rgba(212,162,78,0.08), rgba(91,140,255,0.08));
  border:1px solid var(--panel-border-strong);
  border-radius:var(--radius-lg);
  padding:56px;
  text-align:center;
}
@media (max-width:620px){ .cta-banner{ padding:36px 22px; } }

/* ---------- Footer ---------- */
footer{
  background:var(--bg-soft);
  padding:70px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(4,1fr);
  gap:32px;
  margin-bottom:60px;
}
@media (max-width:900px){ .footer-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-col h4{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--text-faint);
  margin-bottom:16px;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:14.5px; color:var(--text-soft); }
.footer-col a:hover{ color:var(--accent-strong); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  padding-top:26px;
  border-top:1px solid var(--panel-border);
  font-size:13px;
  color:var(--text-faint);
}

/* ---------- Misc page bits ---------- */
.badge{
  display:inline-block;
  padding:6px 14px;
  border-radius:20px;
  border:1px solid var(--panel-border-strong);
  font-size:12.5px;
  color:var(--text-soft);
  margin-bottom:18px;
}
.divider{ height:1px; background:var(--panel-border); margin:50px 0; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
@media (max-width:820px){ .two-col{ grid-template-columns:1fr; gap:36px; } }

.list-check{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.list-check li{ display:flex; gap:12px; color:var(--text-soft); font-size:15px; }
.list-check li::before{
  content:"✓";
  color:var(--success);
  font-weight:700;
  flex-shrink:0;
}

.page-hero{
  padding:130px 0 70px;
  border-bottom:1px solid var(--panel-border);
}

.pill-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.pill{
  display:inline-block;
  font-size:12.5px; font-weight:600; padding:6px 12px; border-radius:20px;
  background:var(--panel); border:1px solid var(--panel-border-strong); color:var(--text-soft);
  cursor:pointer;
  transition:border-color .15s var(--ease), color .15s var(--ease);
}
a.pill:hover{ border-color:var(--accent); color:var(--accent-strong); }

.form-field{ margin-bottom:20px; }
.form-field label{ display:block; font-size:13.5px; color:var(--text-soft); margin-bottom:8px; }
.form-field input, .form-field textarea, .form-field select{
  width:100%;
  padding:13px 15px;
  border-radius:10px;
  border:1px solid var(--panel-border-strong);
  background:var(--bg-elevated);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:14.5px;
}
.form-field textarea{ resize:vertical; min-height:120px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline:none; border-color:var(--accent);
}

.job-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:22px 0; border-bottom:1px solid var(--panel-border);
  flex-wrap:wrap; gap:10px;
}
.job-row:last-child{ border-bottom:none; }

code, .mono{ font-family:var(--font-mono); }
.code-block{
  background:var(--bg-elevated);
  border:1px solid var(--panel-border);
  border-radius:var(--radius-md);
  padding:22px;
  font-family:var(--font-mono);
  font-size:13.5px;
  color:var(--text-soft);
  overflow-x:auto;
  line-height:1.7;
}
.code-block .k{ color:var(--blue); }
.code-block .s{ color:var(--accent-strong); }
.code-block .c{ color:var(--text-faint); }
