/* ═══════════════════════════════════════════════════
   DATAPLANE.ORG — Shared Design System
   All pages include this file. Page-specific styles
   are inline in their respective layout templates.
══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --teal:     #0d9488;
  --teal-dk:  #0f766e;
  --teal-bg:  #f0fdfa;
  --amber:    #d97706;
  --ink:      #111827;
  --g700:     #374151;
  --g600:     #4b5563;
  --g500:     #6b7280;
  --g400:     #9ca3af;
  --g300:     #d1d5db;
  --g200:     #e5e7eb;
  --g100:     #f3f4f6;
  --g50:      #f9fafb;
  --white:    #ffffff;
  --r:        10px;
  --sh:       0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.05);
  --w:        1160px;
  --lg:       #6D6E71;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:16px;
  color:var(--ink); background:var(--white);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-feature-settings:'kern' 1,'liga' 1,'calt' 1;
}
a { color:var(--teal); text-decoration:none; transition:color .15s; }
a:hover { color:var(--teal-dk); }

/* ── LAYOUT ── */
.container { max-width:var(--w); margin:0 auto; padding:0 24px; }
.section    { padding:88px 0; }

/* ── LOGO ── */
.logo { display:flex; align-items:flex-end; gap:10px; }
.logo-wm { font-size:28px; line-height:1; letter-spacing:-.015em; }
.logo-wm .ld { font-weight:700; color:var(--teal-dk); }
.logo-wm .lp { font-weight:400; color:var(--teal); }
.logo-wm .lorg {
  font-size:.65em; font-weight:600; color:var(--teal);
  position:relative; top:-.22em;
  letter-spacing:.03em;
}
.logo--footer .logo-wm .ld   { color:#5eead4; }
.logo--footer .logo-wm .lp   { font-weight:400; color:#99f6e4; }
.logo--footer .logo-wm .lorg { color:#5eead4; }
/* Original logo mark — CSS fill classes (header variant) */
.logo-mark .lm-gray { fill: #5a5b5e; }
.logo-mark .lm-teal { fill: #1a908e; }

/* ── HEADER ── */
.hdr {
  position:fixed; inset:0 0 auto; z-index:200;
  background:rgba(255,255,255,.97); backdrop-filter:blur(12px);
  border-bottom:1px solid #e8e8e9;
}
.hdr-inner {
  max-width:var(--w); margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
  height:60px;
}
.nav { display:flex; align-items:center; gap:28px; }
.nl { font-size:14px; font-weight:400; color:#6D6E71; transition:color .15s; letter-spacing:.01em; }
.nl:hover { color:var(--ink); }
.nl.active { color:var(--teal); font-weight:500; }

/* ── MOBILE MENU ── */
.menu-btn {
  display:none; align-items:center; justify-content:center;
  width:36px; height:36px; cursor:pointer;
  background:none; border:none; padding:6px; border-radius:6px;
  color:#6D6E71; transition:background .15s;
}
.menu-btn:hover { background:var(--g100); }
.menu-btn .icon-close { display:none; }
.menu-btn.open .icon-ham   { display:none; }
.menu-btn.open .icon-close { display:block; }
.mobile-nav {
  display:none; flex-direction:column; gap:0;
  position:fixed; top:60px; left:0; right:0; z-index:190;
  background:rgba(255,255,255,.98); border-bottom:1px solid #e8e8e9;
  padding:8px 0 16px;
  box-shadow:0 8px 24px rgba(0,0,0,.07);
}
.mobile-nav.open { display:flex; }
.mobile-nav a {
  padding:14px 24px; font-size:16px; font-weight:500;
  color:#6D6E71; border-bottom:1px solid #e8e8e9;
}
.mobile-nav a:last-child { border-bottom:none; }
.mobile-nav a:hover { color:var(--teal); background:var(--teal-bg); }
@media (max-width:768px) {
  .menu-btn { display:flex; }
  .nav      { display:none; }
}

/* ── BUTTONS ── */
.btn {
  display:inline-flex; align-items:center; gap:7px;
  padding:11px 22px; border-radius:var(--r);
  font-size:14px; font-weight:600; cursor:pointer;
  transition:background .15s, color .15s, border-color .15s, box-shadow .15s; border:none; font-family:inherit; white-space:nowrap;
}
.btn-sm  { padding:8px 16px; font-size:13px; }
.btn-lg  { padding:15px 32px; font-size:16px; }
.btn-teal     { background:var(--teal); color:var(--white); }
.btn-teal:hover { background:var(--teal-dk); color:var(--white); }
.btn-amber    { background:var(--amber); color:var(--white); }
.btn-amber:hover { background:#b45309; color:var(--white); }
.btn-ghost    { background:transparent; color:var(--g700); border:1.5px solid var(--g300); }
.btn-ghost:hover { border-color:var(--teal); color:var(--teal); }
.btn-teal-ol  { background:transparent; color:var(--teal); border:1.5px solid var(--teal); }
.btn-teal-ol:hover { background:var(--teal); color:var(--white); }
.btn-white    { background:var(--white); color:var(--teal); font-weight:700; }
.btn-white:hover { background:var(--teal-bg); color:var(--teal-dk); }
.btn-white-ol { background:transparent; color:var(--white); border:1.5px solid rgba(255,255,255,.5); }
.btn-white-ol:hover { background:rgba(255,255,255,.1); color:var(--white); border-color:rgba(255,255,255,.8); }

/* ── ANIMATIONS ── */
.fade { opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s ease; }
.fade.in { opacity:1; transform:none; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes pulse-ring {
  0%   { box-shadow:0 0 0 0 rgba(217,119,6,.4); }
  70%  { box-shadow:0 0 0 12px rgba(217,119,6,0); }
  100% { box-shadow:0 0 0 0 rgba(217,119,6,0); }
}

/* ── SECTION HEADERS & LABELS ── */
.lbl {
  font-size:11px; font-weight:600; letter-spacing:.13em;
  text-transform:uppercase; color:var(--teal); margin-bottom:10px;
  display:block;
}
.lbl-amber { color:var(--amber); }
.sh { margin-bottom:48px; }
.sh h2 {
  font-size:clamp(24px,3vw,36px); font-weight:700;
  color:var(--ink); letter-spacing:-.02em; line-height:1.25; margin-bottom:14px;
}
.sh p { font-size:17px; color:var(--g600); max-width:580px; line-height:1.8; }
.sh.c { text-align:center; }
.sh.c p { margin:0 auto; }

/* ── TERMINAL ── */
.term {
  background:#1a1f2e; border-radius:var(--r); overflow:hidden;
  border:1px solid #2a3145;
}
.term-bar {
  background:#242a3a; padding:10px 14px;
  display:flex; align-items:center; gap:6px;
  border-bottom:1px solid #2a3145;
}
.td { width:10px; height:10px; border-radius:50%; }
.td:nth-child(1){ background:#ef4444; }
.td:nth-child(2){ background:#f59e0b; }
.td:nth-child(3){ background:#22c55e; }
.term-fname { margin-left:auto; font-size:11px; color:#6b7280; font-family:'IBM Plex Mono',monospace; }
.term-body  { padding:20px 18px; }
.tc { font-family:'IBM Plex Mono',monospace; font-size:12px; line-height:2; color:#9ca3af; }
.tc .cmd { color:#f59e0b; }
.tc .url { color:#67e8f9; }
.tc .cmt { color:#4b5563; }
.tc .ok  { color:#4ade80; }
.tc .hi  { color:#0d9488; }
.tc .err { color:#f87171; }

/* ── TWO-COL GRID ── */
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
@media (max-width:1024px) { .two-col { grid-template-columns:1fr; gap:40px; } }

/* ── FEATURES LIST ── */
.features { display:flex; flex-direction:column; gap:20px; }
.feat { display:flex; gap:16px; }
.feat-icon {
  width:34px; height:34px; min-width:34px; border-radius:8px;
  background:var(--teal-bg); display:flex; align-items:center;
  justify-content:center; color:var(--teal);
}
.feat h4 { font-size:15px; font-weight:600; color:var(--ink); margin-bottom:5px; }
.feat p  { font-size:15px; color:var(--g600); line-height:1.75; }

/* ── DONATE SECTION ── */
.donate { background:var(--teal); padding:72px 0; text-align:center; }
.donate h2 {
  font-size:clamp(24px,3vw,36px); font-weight:700;
  color:var(--white); letter-spacing:-.02em; margin-bottom:14px;
}
.donate p {
  font-size:16px; color:rgba(255,255,255,.82);
  max-width:480px; margin:0 auto 36px; line-height:1.8;
}
.donate-acts { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ── FOOTER ── */
.footer {
  background:var(--ink);
  padding:64px 0 32px;
  border-top:1px solid rgba(255,255,255,.08);
}
.ft-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:48px;
  margin-bottom:48px;
}
.ft-brand p {
  font-size:14px; color:#6b7280; line-height:1.8;
  margin-top:16px; max-width:280px;
}
.ft-col h5 {
  font-size:11px; font-weight:700; letter-spacing:.09em;
  text-transform:uppercase; color:#9ca3af;
  margin-bottom:16px;
}
.ft-col a {
  display:block; font-size:14px; color:#6b7280;
  margin-bottom:10px; transition:color .15s;
}
.ft-col a:hover { color:#f9fafb; }
.ft-bottom {
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:24px;
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px; color:#4b5563;
  flex-wrap:wrap; gap:8px;
}
@media (max-width:1024px) { .ft-grid { grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:768px)  { .ft-grid { grid-template-columns:1fr; gap:28px; } }

/* ── ORG PILLS (used on homepage + about) ── */
.org-pill {
  display:inline-block; padding:7px 15px;
  border:1.5px solid var(--g200); border-radius:50px;
  font-size:13px; font-weight:500; color:var(--g700); transition:border-color .15s, color .15s, background .15s;
}
.org-pill:hover { border-color:var(--teal); color:var(--teal); background:var(--teal-bg); }

/* ── TRUSTED BAR ── */
.trusted { padding:28px 0; background:var(--g50); border-bottom:1px solid var(--g200); }
.trusted-inner { display:flex; align-items:center; gap:28px; flex-wrap:wrap; justify-content:center; }
.trusted-lbl { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--g400); white-space:nowrap; }
.trusted-orgs { display:flex; align-items:center; gap:24px; flex-wrap:wrap; justify-content:center; }
.trusted-orgs span { font-size:14px; font-weight:600; color:#6D6E71; }
