/* =====================================================================
   AERE Network — dApp static-page V10 CLEAR SKY stylesheet
   Used by every static .html page in /public (addnetwork, faucet, swap,
   bridge, stake-v2, dao, dapps, blog, courses, etc.). Pairs with
   /dapp-shell.js which injects the unified header + footer.

   Locked design 2026-06-06. Keep in sync with the React V10 stack:
   src/components/HeroSection.tsx, src/components/aere/PageHero.tsx,
   src/components/Footer.tsx.
   ===================================================================== */

:root {
  color-scheme: light;
  --ink:          #0a1628;
  --ink-2:        #1a2942;
  --ink-soft:     rgba(10, 22, 40, 0.72);
  --ink-faint:    rgba(10, 22, 40, 0.55);
  --line:         rgba(10, 22, 40, 0.10);
  --line-strong:  rgba(10, 22, 40, 0.18);

  --sky-50:       #f4f9ff;
  --sky-100:      #e8f1fb;
  --sky-200:      #d1e3f5;
  --sky-300:      #a8c8e8;
  --sky-400:      #6ea4d4;
  --sky-500:      #3d7fb8;
  --sky-600:      #1f5a8f;

  --warm:         #fef5e8;
  --aurora-1:     #d4e8fa;
  --aurora-2:     #e8d9f0;
  --aurora-3:     #fde8d4;

  --accent-grad:  linear-gradient(120deg, #3d7fb8 0%, #8a6fb8 50%, #c89868 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,200;0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@300;400;500&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 60% 40% at 70% 20%, rgba(255, 217, 168, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168, 200, 232, 0.30) 0%, transparent 70%),
    linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 22%, #ffffff 55%, #fefcf8 85%, var(--warm) 100%);
  background-attachment: fixed;
  color: var(--ink);
  padding: 2rem 1rem 4rem;
}

/* The shared shell injects its own header — the legacy .nav block inside
   the .container is hidden. */
.container { max-width: 720px; margin: 0 auto; }
.container > .nav { display: none !important; }

/* Sky pulse — animated dot used for live status indicators across the static pages */
@keyframes aere-sky-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 127, 184, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(61, 127, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 127, 184, 0); }
}

/* Hero text on the sky */
h1 {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
h1 strong {
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  background-image: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 2.4rem 0 0.85rem;
}
h2 strong {
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  background-image: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 1.6rem 0 0.6rem;
}

.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--sky-600);
  margin-bottom: 1.2rem;
}
.kicker .dot, .eyebrow .dot, .pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--sky-500);
  border-radius: 50%;
  animation: aere-sky-pulse 2s infinite;
}

p, .sub {
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 640px;
}

.sub {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.sub em, .sub .accent {
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  background-image: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards — V10 glass surfaces (light sky) */
.card {
  background: rgba(255, 255, 255, 0.70);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(31, 90, 143, 0.10),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  margin: 1.4rem 0;
}

.card .row {
  display: grid;
  grid-template-columns: 220px 1fr;
  row-gap: 14px;
  column-gap: 24px;
  margin-bottom: 24px;
}
.card .k {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.card .v {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}
.card .v a { color: var(--sky-600); text-decoration: none; }
.card .v a:hover { text-decoration: underline; }

/* Buttons — V10 ink primary, glass ghost secondary */
button, .btn {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

button, .btn, .btn-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(31, 90, 143, 0.20);
}
button:hover, .btn:hover, .btn-primary:hover {
  background: var(--sky-600);
  box-shadow: 0 12px 36px rgba(31, 90, 143, 0.30);
}
button:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-ghost, .btn-secondary {
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.btn-ghost:hover, .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--sky-500);
}

/* Status pills */
.status {
  margin-top: 16px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12.5px;
  padding: 10px 16px;
  border-radius: 12px;
  display: none;
}
.status.info    { display: block; background: rgba(168, 200, 232, 0.22); border: 1px solid rgba(168, 200, 232, 0.5); color: var(--sky-600); }
.status.ok      { display: block; background: rgba(76, 180, 140, 0.18);  border: 1px solid rgba(76, 180, 140, 0.5);  color: #1a7048; }
.status.warn    { display: block; background: rgba(255, 180, 80, 0.20);  border: 1px solid rgba(255, 180, 80, 0.55); color: #a86b18; }
.status.error   { display: block; background: rgba(220, 100, 100, 0.18); border: 1px solid rgba(220, 100, 100, 0.5); color: #8e2a2a; }

/* Footer-style inline help */
.footer, .help-line {
  margin-top: 32px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}
.footer a, .help-line a { color: var(--sky-600); text-decoration: none; }
.footer a:hover, .help-line a:hover { text-decoration: underline; }

/* Tables — used by /docs.html, /dapps.html, etc. */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
thead { background: rgba(232, 241, 251, 0.55); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(10, 22, 40, 0.06); }
th {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-600);
  font-weight: 600;
}
td { font-family: 'Geist', sans-serif; font-size: 14px; color: var(--ink-soft); }
td code, .mono {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12.5px;
  background: rgba(168, 200, 232, 0.18);
  border: 1px solid rgba(168, 200, 232, 0.4);
  padding: 1px 8px;
  border-radius: 6px;
  color: var(--sky-600);
}

/* Form controls */
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--ink);
  outline: 0;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--sky-500);
  background: #ffffff;
}
input::placeholder { color: var(--ink-faint); }
label {
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sky-600);
  margin-bottom: 8px;
}

/* Code blocks for docs / blog */
pre, .code {
  background: rgba(10, 22, 40, 0.92);
  color: #f5f8fb;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(10, 22, 40, 0.95);
  overflow-x: auto;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

/* Quote / callout block */
blockquote {
  border-left: 3px solid var(--sky-500);
  padding: 4px 0 4px 22px;
  margin: 1.8rem 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--ink-2);
}

/* Section grid — used by dapps directory, blog, courses lists */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 1.6rem 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
  margin: 1.6rem 0;
}

/* "LIVE", "NEW", "SOON" badges */
.badge {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 6px;
}
.badge.live  { background: rgba(76, 180, 140, 0.18);  border: 1px solid rgba(76, 180, 140, 0.5);  color: #1a7048; }
.badge.new   { background: rgba(255, 180, 80, 0.20);  border: 1px solid rgba(255, 180, 80, 0.55); color: #a86b18; }
.badge.soon  { background: rgba(168, 200, 232, 0.22); border: 1px solid rgba(168, 200, 232, 0.55); color: var(--sky-600); }
.badge.beta  { background: rgba(168, 200, 232, 0.22); border: 1px solid rgba(168, 200, 232, 0.55); color: var(--sky-600); }

/* Responsive */
@media (max-width: 640px) {
  body { padding: 1rem 0.75rem 3rem; }
  .container { max-width: 100%; }
  .card { padding: 22px 18px; border-radius: 18px; }
  .card .row { grid-template-columns: 1fr; row-gap: 4px; }
  .card .k { margin-top: 8px; }
}
