/* ==========================================================================
   web31.org — Sovereign Local Edge Teaser Stylesheet
   Featuring newly generated Fist-in-Black-Cloud & Sovereign Monolith visuals
   ========================================================================== */

:root {
  --bg-obsidian: #05060f;
  --bg-deep-indigo: #0d1130;
  --bg-card: rgba(12, 16, 42, 0.72);
  --bg-card-hover: rgba(18, 25, 68, 0.88);
  --cobalt-core: #2c3598;
  --cobalt-bright: #4e5cf2;
  --violet-halo: #8490ff;
  --periwinkle: #b8c2ff;
  --cyan-neon: #7df9ff;
  --white-pure: #ffffff;
  --text-primary: #f2f4ff;
  --text-secondary: #a5b0e0;
  --text-muted: #6974a8;
  --border-subtle: rgba(132, 144, 255, 0.18);
  --border-bright: rgba(154, 166, 255, 0.48);
  --glow-strong: 0 0 45px rgba(78, 92, 242, 0.45);

  --font-display: 'Chakra Petch', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 8%, rgba(65, 79, 218, 0.38) 0%, rgba(20, 26, 78, 0.22) 42%, rgba(5, 6, 15, 1) 80%),
    linear-gradient(180deg, #0a0e29 0%, #05060f 55%, #070919 100%);
}

/* Ambient Background & Circuit Grid */
.ambient-glow {
  position: fixed;
  top: -15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 65vh;
  background: radial-gradient(ellipse at center, rgba(93, 108, 255, 0.25) 0%, rgba(35, 44, 138, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.circuit-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(132, 144, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(132, 144, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 35%, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black 25%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Typography Helpers */
.mono-label,
.mono-eyebrow,
.mono-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mono-eyebrow {
  color: var(--violet-halo);
  display: inline-block;
  margin-bottom: 0.65rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 6, 15, 0.72);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white-pure);
}

.brand-badge-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 18px rgba(100, 115, 255, 0.45);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.brand-version {
  color: var(--periwinkle);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(44, 53, 152, 0.24);
  border: 1px solid var(--border-subtle);
  color: var(--periwinkle);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 10px var(--cyan-neon);
  animation: pulseDot 2.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.btn-outline-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--white-pure);
  border: 1px solid var(--border-bright);
  background: rgba(78, 92, 242, 0.14);
}

.btn-outline-sm:hover {
  background: rgba(78, 92, 242, 0.32);
  box-shadow: 0 0 20px rgba(132, 144, 255, 0.35);
}

.btn-primary {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
  color: var(--bg-obsidian);
  background: linear-gradient(135deg, #ffffff 0%, #c7d0ff 100%);
  border: 1px solid #ffffff;
  box-shadow: 0 0 28px rgba(132, 144, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(184, 194, 255, 0.75);
}

.btn-ghost {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  color: var(--periwinkle);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 17, 48, 0.55);
}

.btn-ghost:hover {
  color: var(--white-pure);
  border-color: var(--border-bright);
  background: rgba(44, 53, 152, 0.3);
}

/* Top Official Banner */
.top-banner-section {
  padding: 1.75rem 0 0;
  position: relative;
  z-index: 10;
}

.banner-card {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: 0 16px 50px rgba(4, 6, 22, 0.85), 0 0 35px rgba(78, 92, 242, 0.28);
  background: #060818;
}

.banner-wide-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.hero-section {
  padding: 1.5rem 0 0.75rem;
}

.hero-grid {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 68ch;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-lead strong {
  color: var(--white-pure);
  font-family: var(--font-display);
  font-weight: 600;
}

/* Core Pillars Section */
.pillars-section {
  padding: 0.75rem 0 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 700;
  color: var(--white-pure);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

.pillar-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.85rem 1.65rem;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet-halo), transparent);
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  box-shadow: 0 14px 36px rgba(6, 9, 30, 0.75), 0 0 28px rgba(78, 92, 242, 0.25);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--violet-halo);
  letter-spacing: 0.1em;
}

.pillar-icon {
  width: 26px;
  height: 26px;
  color: var(--periwinkle);
  filter: drop-shadow(0 0 8px rgba(132, 144, 255, 0.5));
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white-pure);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Emblem & Forthcoming Research Section */
.signal-section {
  padding: 2rem 0 6rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 22, 66, 0.78) 0%, rgba(7, 9, 25, 0.94) 100%);
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  padding: 2.75rem;
  box-shadow: var(--glow-strong);
}

.emblem-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.emblem-ring {
  position: relative;
  width: 100%;
  max-width: 310px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(154, 166, 255, 0.45);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.75),
    0 0 38px rgba(100, 118, 255, 0.35);
}

.emblem-img {
  width: 100%;
  height: auto;
  display: block;
}

.emblem-tag {
  color: var(--periwinkle);
  opacity: 0.85;
}

.signal-heading {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 700;
  color: var(--white-pure);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.signal-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 58ch;
}

.paper-meta-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: 10px;
  background: rgba(5, 6, 15, 0.65);
  border: 1px solid var(--border-subtle);
}

.paper-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  background: rgba(3, 4, 10, 0.9);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-badge-xs {
  width: auto;
  height: 28px;
  border-radius: 4px;
  display: block;
  border: none;
  background: transparent;
  box-shadow: none;
}

.brand-wordmark-sm {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white-pure);
}

.footer-sep {
  color: var(--cobalt-bright);
}

.footer-tagline {
  font-family: var(--font-display);
  color: var(--periwinkle);
  font-weight: 500;
}

.footer-soon {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.footer-meta {
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .emblem-ring {
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .header-status {
    display: none;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-strip,
  .paper-meta-box {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}
