/* Intek Space — site design system (all pages)
   Palette: deep navy blue + gold accent (brand lock)
   Atmosphere: IMI-like multi-radial void + frosted glass panels (2026-07-29) */
/* Network template kit v1 · Q-NET-ADOPT-INTEK 2026-08-05
   Hive family accents. Shell tokens match NETWORK_TEMPLATE_KIT. */
:root {
  --ink: #070b14;
  --ink-mid: #0e1c36;
  --ink-panel: rgba(16, 40, 72, 0.55);
  --ink-panel-solid: #14305a;
  --parchment: #eaf0fa;
  --mist: #9aadc8;
  --hive: #d4b056;
  --hive-bright: #e8c86a;
  --mark: #4aa8ff;
  --leaf: #5d9b7a;
  --border: rgba(212, 176, 86, 0.38);
  --border-soft: rgba(100, 150, 220, 0.14);
  --blue-glow: rgba(64, 140, 255, 0.22);
  --gold-glow: rgba(212, 176, 86, 0.2);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  /* Kit shells */
  --page-max: 56rem;
  --page-max-prose: 48rem;
  --page-pad: 1.25rem;
  --max: var(--page-max); /* legacy alias */
  --header-h: 3.5rem;
  --bp-md: 768px;
  --z-header: 40;
  --section-gap: 3rem;
  --glass-blur: 14px;
}

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

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 120% 70% at 20% -15%, rgba(139, 92, 246, 0.12), transparent 52%),
    radial-gradient(ellipse 90% 55% at 95% 5%, rgba(34, 211, 238, 0.1), transparent 48%),
    radial-gradient(ellipse 80% 50% at 50% -18%, rgba(40, 90, 180, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 90%, rgba(212, 176, 86, 0.06), transparent 50%),
    var(--ink);
  color: var(--parchment);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: var(--font-display); }

/* Frosted glass panels — navy/gold brand edge, IMI-like blur */
.panel {
  background:
    linear-gradient(
      160deg,
      rgba(26, 58, 104, 0.58) 0%,
      rgba(18, 40, 72, 0.5) 48%,
      rgba(14, 32, 64, 0.55) 100%
    );
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  box-shadow:
    0 0 0 1px rgba(80, 150, 255, 0.08) inset,
    0 12px 40px rgba(4, 12, 28, 0.45);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}
a.panel:hover,
.panel.is-interactive:hover {
  border-color: rgba(232, 200, 106, 0.65);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(212, 176, 86, 0.12) inset,
    0 16px 44px rgba(4, 12, 28, 0.55),
    0 0 28px rgba(212, 176, 86, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  a.panel:hover,
  .panel.is-interactive:hover {
    transform: none;
  }
}

/* Philosophy glossary cards */
.term.panel {
  border-radius: 1rem;
}
.term.panel + .term.panel {
  margin-top: 0.75rem;
}

a.gloss {
  color: var(--hive);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212, 176, 86, 0.5);
}
a.gloss:hover {
  color: var(--hive-bright);
  text-decoration-color: rgba(232, 200, 106, 0.95);
}

.rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 176, 86, 0.65),
    rgba(74, 168, 255, 0.35),
    transparent
  );
}

/* Hero / wash — deeper void + gold crown + multi-radial */
.hero-wash,
.hero,
.hero-glow {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, var(--gold-glow), transparent 58%),
    radial-gradient(ellipse 60% 50% at 100% 20%, var(--blue-glow), transparent 55%),
    radial-gradient(ellipse 50% 45% at 0% 80%, rgba(40, 100, 200, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 40% at 70% 100%, rgba(139, 92, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0e2040 42%, #0a1628 100%);
}

/* Alternating section bands */
.band {
  background: linear-gradient(180deg, rgba(14, 34, 64, 0.72) 0%, rgba(10, 26, 52, 0.85) 100%);
  border-color: var(--border-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.band-soft {
  background: rgba(14, 36, 68, 0.42);
  border-color: var(--border-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* —— Site chrome —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.site-brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 176, 86, 0.6);
  background: linear-gradient(145deg, rgba(74, 168, 255, 0.2), rgba(212, 176, 86, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hive);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(212, 176, 86, 0.18);
}
.site-brand__name {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--parchment);
  line-height: 1.2;
}
.site-brand__tag {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(154, 173, 200, 0.85);
  line-height: 1.2;
  margin-top: 0.1rem;
}

.site-nav {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  font-size: 0.875rem;
  color: rgba(154, 173, 200, 0.92);
}
.site-nav a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 0.35rem 0;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--parchment); }
.site-nav a.is-active {
  color: var(--hive);
  font-weight: 500;
}
.site-nav a.site-nav__cta {
  color: #070b14;
  background: linear-gradient(180deg, var(--hive-bright), var(--hive));
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8rem;
  min-height: 2.5rem;
  box-shadow: 0 2px 14px rgba(212, 176, 86, 0.3);
}
.site-nav a.site-nav__cta:hover {
  background: var(--hive-bright);
  color: #070b14;
}

.site-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
}
.site-menu-btn:hover { color: var(--parchment); border-color: rgba(212,176,86,0.4); }
.site-menu-btn[aria-expanded="true"] { color: var(--hive); }

.site-drawer {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.5rem 1.25rem 1rem;
}
.site-drawer.is-open { display: block; }
.site-drawer a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  color: rgba(154, 173, 200, 0.95);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-soft);
}
.site-drawer a:last-child { border-bottom: 0; }
.site-drawer a:hover,
.site-drawer a.is-active { color: var(--hive); }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .site-menu-btn { display: none; }
  .site-drawer { display: none !important; }
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
  padding: 2rem 0 2.25rem;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.9));
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(154, 173, 200, 0.55);
}
.site-footer__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .site-footer__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.site-footer__links a {
  color: rgba(154, 173, 200, 0.72);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--parchment); }
.site-footer__links a.is-active { color: rgba(212, 176, 86, 0.95); }
.site-footer__privacy {
  line-height: 1.55;
  max-width: 42rem;
  color: rgba(154, 173, 200, 0.45);
}
.site-footer__privacy a {
  color: rgba(212, 176, 86, 0.85);
  text-decoration: none;
}
.site-footer__privacy a:hover { text-decoration: underline; }

/* Forms */
.field-input,
label.field input,
label.field select,
label.field textarea {
  width: 100%;
  background: rgba(12, 30, 58, 0.72);
  border: 1px solid rgba(212, 176, 86, 0.28);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: var(--parchment);
  font-size: 0.875rem;
  min-height: 44px;
  font-family: var(--font-sans);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
label.field textarea { min-height: 5.5rem; resize: vertical; }
label.field input:focus,
label.field select:focus,
label.field textarea:focus {
  outline: none;
  border-color: rgba(212, 176, 86, 0.65);
  box-shadow: 0 0 0 2px rgba(212, 176, 86, 0.16), 0 0 0 4px rgba(74, 168, 255, 0.1);
}
label.field span.lbl {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(154, 173, 200, 0.9);
  margin-bottom: 0.35rem;
}

button:not(:disabled),
[role="button"]:not(:disabled) { cursor: pointer; }

.site-footer__network {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-soft);
}
.site-footer__network-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(212, 176, 86, 0.8);
}

/* Shared CTA chips */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #070b14;
  background: linear-gradient(180deg, var(--hive-bright), var(--hive));
  border: 1px solid rgba(232, 200, 106, 0.55);
  box-shadow: 0 4px 18px rgba(212, 176, 86, 0.28);
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--mist);
  background: rgba(14, 32, 64, 0.35);
  border: 1px solid rgba(100, 150, 220, 0.28);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover {
  color: var(--parchment);
  border-color: rgba(212, 176, 86, 0.45);
  background: rgba(212, 176, 86, 0.08);
}
.btn-gold-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hive-bright);
  background: rgba(212, 176, 86, 0.14);
  border: 1px solid rgba(212, 176, 86, 0.48);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-gold-soft:hover {
  background: rgba(212, 176, 86, 0.26);
  color: #f0d98a;
}

/* Hive King (and any legacy) cards → frosted glass, navy+gold */
.card {
  background:
    linear-gradient(
      160deg,
      rgba(26, 58, 104, 0.58) 0%,
      rgba(18, 40, 72, 0.5) 48%,
      rgba(14, 32, 64, 0.55) 100%
    );
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  box-shadow:
    0 0 0 1px rgba(80, 150, 255, 0.08) inset,
    0 12px 40px rgba(4, 12, 28, 0.45);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
a.card:hover,
.card.is-interactive:hover {
  border-color: rgba(232, 200, 106, 0.65);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(212, 176, 86, 0.12) inset,
    0 16px 44px rgba(4, 12, 28, 0.55),
    0 0 28px rgba(212, 176, 86, 0.1);
}
@media (prefers-reduced-motion: reduce) {
  a.card:hover,
  .card.is-interactive:hover {
    transform: none;
  }
}
.soft-ring {
  box-shadow:
    0 0 0 1px rgba(80, 150, 255, 0.08) inset,
    0 0 0 1px rgba(212, 176, 86, 0.12),
    0 12px 40px rgba(4, 12, 28, 0.45);
}
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] .chev { transform: rotate(90deg); }

details.panel > summary { cursor: pointer; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel[open] .chev { transform: rotate(90deg); }
