/* ==========================================================================
   GG AI Forge / Chips@Home — Design system
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0a0f18;
  --bg-soft: #0c1220;
  --surface: #111827;
  --surface-hover: #141c2b;
  --border: #1e2938;
  --border-soft: rgba(241, 245, 249, 0.07);

  /* Text */
  --text: #f1f5f9;
  --text-muted: #97a7b8;
  --text-dim: #64748b;

  /* Brand accent — robin's egg / sky blue */
  --accent: #7dd3e8;
  --accent-light: #b8e8f2;
  --accent-hover: #5ec4de;
  --accent-deep: #3aafc9;
  --accent-subtle: rgba(125, 211, 232, 0.08);
  --accent-border: rgba(125, 211, 232, 0.28);
  --on-accent: #06121b;

  /* Status */
  --ok: #4ade80;
  --warn: #f5b954;
  --error: #f87171;

  /* Scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-card: 0 16px 40px -20px rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 520px at 14% -6%, rgba(125, 211, 232, 0.10), transparent 60%),
    radial-gradient(900px 480px at 88% 8%, rgba(94, 196, 222, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-header,
.site-footer,
main {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  gap: 1rem;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 calc(-50vw + 50%);
  background: rgba(10, 15, 24, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand small {
  color: var(--text-dim);
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

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

.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---- Support nav dropdown (Docs nested underneath) ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.6rem;
  min-width: 140px;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* ---- Account icon ---- */
.nav-account {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-border);
  background: var(--accent-subtle);
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-account svg {
  width: 18px;
  height: 18px;
}

.nav-account:hover {
  background: var(--accent-border);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ---- Layout helpers ---- */
.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.6rem);
}

h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.hero-text,
.card p,
.stack-card p,
.split-section p,
.long-card p,
details p,
.page-hero .hero-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.02rem;
  max-width: 54ch;
}

/* ---- Buttons ---- */
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.6rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-hover));
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(125, 211, 232, 0.25), 0 12px 30px -10px rgba(125, 211, 232, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(125, 211, 232, 0.4), 0 16px 36px -8px rgba(125, 211, 232, 0.45);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent-border);
  background: var(--surface-hover);
}

.btn-disabled,
.btn:disabled {
  background: var(--surface);
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
  border-color: var(--border);
}

.btn-disabled:hover,
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ---- Status badges ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  color: var(--ok);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.status-preview {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-subtle);
}

.status-soon,
.status-concept {
  color: var(--warn);
  border-color: rgba(245, 185, 84, 0.3);
  background: rgba(245, 185, 84, 0.08);
}

/* ---- Hero ---- */
.hero,
.page-hero,
.split-section,
.feature-grid,
.page-shell {
  margin-top: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}

.trust-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.trust-list li::before {
  content: "";
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
}

.trust-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 4px;
  height: 7px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

/* ---- Product mockup (hero visual) ---- */
.app-window {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.app-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.015);
}

.app-window-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.7;
}

.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #4ade80; }

.app-window-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.app-window-body {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 300px;
}

.app-sidebar {
  border-right: 1px solid var(--border-soft);
  padding: 0.9rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.app-sidebar-item {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
}

.app-sidebar-item.active {
  background: var(--accent-subtle);
  color: var(--accent-light);
  font-weight: 600;
}

.app-main {
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 78%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.55;
}

.bubble-user {
  align-self: flex-end;
  background: var(--surface-hover);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  border-bottom-right-radius: 4px;
}

.bubble-ai {
  align-self: flex-start;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.bubble-ai strong {
  color: var(--accent-light);
}

.app-input {
  margin-top: 0.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--bg-soft);
}

.hero-visual-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card,
.stack-card,
.contact-card,
.long-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.card-icon svg {
  width: 19px;
  height: 19px;
}

/* ---- Split sections ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid var(--border-soft);
}

.split-section.alt {
  grid-template-columns: 0.9fr 1.1fr;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.94rem;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.text-link:hover::after {
  transform: translateX(3px);
}

.stack-card ul,
.split-section ul {
  list-style: none;
  padding: 0;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.stack-card ul li,
.split-section ul li {
  padding-left: 1.15rem;
  position: relative;
}

.stack-card ul li::before,
.split-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---- Inline code (docs pages) ---- */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

/* ---- Spec / definition table (download page) ---- */
.spec-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border-soft);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  padding: 0.9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.015);
}

.spec-row dd {
  margin: 0;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-size: 0.92rem;
}

/* ---- Contact form ---- */
.contact-card {
  display: grid;
  gap: 1.1rem;
}

.contact-card label {
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

/* ---- FAQ / details ---- */
.stack-card details {
  border-top: 1px solid var(--border-soft);
  padding: 0.9rem 0;
}

.stack-card details:first-of-type {
  border-top: none;
  padding-top: 0;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease);
}

details[open] summary::after {
  transform: rotate(45deg);
}

.stack-card details p {
  margin-top: 0.6rem;
  margin-bottom: 0;
}

/* ---- Page hero (sub-pages) ---- */
.page-hero {
  padding: 3rem 0 2.5rem;
  max-width: 62ch;
}

/* ---- Long-form (privacy) ---- */
.long-card {
  max-width: 76ch;
}

.long-card h2 {
  margin-top: 0;
}

/* ---- Footer ---- */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border-soft);
  margin-top: 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 34ch;
  margin-top: 0.7rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 0 0 0.3rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-tag {
  font-family: var(--font-mono);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero,
  .split-section,
  .feature-grid,
  .roadmap-grid,
  .footer-top,
  .app-window-body {
    grid-template-columns: 1fr;
  }

  .split-section.alt .stack-card {
    order: 2;
  }

  .app-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    inset: 4.2rem 1.25rem auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.6rem;
    box-shadow: var(--shadow-pop);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    padding: 0.75rem 0.6rem;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 0;
    padding: 0 0 0 1rem;
  }

  .nav-account {
    margin-top: 0.6rem;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Flash messages ---- */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}

.flash-success {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--ok);
}

.flash-error {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.3);
  color: var(--error);
}

/* ---- Auth pages (narrow centered form) ---- */
.auth-shell {
  max-width: 440px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.auth-shell .card {
  padding: 2rem;
}

.auth-shell h1 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.auth-shell form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.auth-shell label {
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---- Example/tag pills (workloads, hardware types, provider names) ---- */
.tag-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.example-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---- Network diagram (earners.php hero) ---- */
.network-diagram {
  width: 100%;
  height: auto;
  overflow: visible;
}

.network-diagram .connector {
  stroke: var(--border);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.network-diagram .hub-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-pulse 2.8s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.network-diagram .hub-circle {
  fill: var(--accent-subtle);
  stroke: var(--accent-border);
  stroke-width: 1.5;
}

.network-diagram .hub-icon {
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-diagram .node-circle {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
}

.network-diagram .node-icon {
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-diagram .node-label {
  fill: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  text-anchor: middle;
}

/* ---- Roadmap columns ---- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.roadmap-grid .card h3 {
  margin-top: 0.9rem;
}

/* ---- Live network stats (network.php) ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.stat-tile .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.stat-tile .stat-label {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.milestone-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.milestone-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-left: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

ul.milestone-list li::before {
  content: none;
}

.milestone-list li.done {
  color: var(--text);
}

.milestone-list .milestone-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.milestone-list li.done .milestone-icon {
  background: var(--ok);
  color: var(--on-accent);
}

.milestone-list li:not(.done) .milestone-icon {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.milestone-list .milestone-note {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.gpu-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gpu-bar-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--surface-hover);
  overflow: hidden;
}

.gpu-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.auth-shell .btn {
  width: 100%;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  font-size: 0.88rem;
}

/* ---- Dashboard shell ---- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dashboard-nav a {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.dashboard-nav a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.dashboard-nav a.active {
  background: var(--accent-subtle);
  color: var(--accent-light);
  font-weight: 600;
}

.dashboard-main h1 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
}
