/* DMNE Meme Alpha — Institutional Obsidian Glass Design System */

:root {
  --bg-void: #070B14;
  --bg-elevated: #0B1120;
  --glass-bg: rgba(13, 19, 34, 0.78);
  --glass-bg-strong: rgba(13, 19, 34, 0.92);
  --border-subtle: #1A2336;
  --border-cyan: rgba(0, 229, 255, 0.36);
  --border-emerald: rgba(16, 185, 129, 0.36);

  --accent-cyan: #00E5FF;
  --accent-cyan-soft: rgba(0, 229, 255, 0.12);
  --accent-emerald: #10B981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.12);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-max: 1220px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --header-height: 76px;
  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glass: 0 24px 60px rgba(2, 6, 23, 0.65);
  --shadow-cyan: 0 0 28px rgba(0, 229, 255, 0.18);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent-cyan);
  color: var(--bg-void);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Ambient Backdrop */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26, 35, 54, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 35, 54, 0.28) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.85), transparent 78%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
}

.ambient-orb-cyan {
  width: 540px;
  height: 540px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.52), transparent 68%);
}

.ambient-orb-emerald {
  width: 480px;
  height: 480px;
  bottom: 8%;
  left: -140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.42), transparent 68%);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-glass);
}

/* Section Headers */
.section-header {
  max-width: 740px;
  margin-bottom: 44px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(26, 35, 54, 0.65);
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.92);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-emblem-wrap {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.brand-emblem {
  width: 38px;
  height: 38px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
  padding: 14px 20px;
}

.btn-primary {
  background: linear-gradient(135deg, #00E5FF, #0EA5E9);
  color: var(--bg-void);
  box-shadow: 0 8px 26px rgba(0, 229, 255, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(0, 229, 255, 0.36);
}

.btn-secondary {
  background: rgba(13, 19, 34, 0.72);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-cyan);
  background: rgba(18, 28, 48, 0.88);
  transform: translateY(-1px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.status-dot-emerald {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.mobile-drawer-inner {
  padding-top: 16px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  padding: 8px 4px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-login-btn {
  margin-top: 6px;
  padding: 12px 16px;
}

/* Hero Section */
.hero-section {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 48px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  margin-bottom: 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 19, 34, 0.84);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.3vw, 3.65rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #FFFFFF 32%, #94A3B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  margin: 0 0 30px;
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: 1.06rem;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 13px;
  color: var(--text-primary);
}

.meta-divider {
  width: 1px;
  height: 30px;
  background: var(--border-subtle);
}

/* Glass Visual Showcases & Fallback Canvases */
.glass-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  overflow: hidden;
  box-shadow: var(--shadow-glass), var(--shadow-cyan);
}

.showcase-media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 50% 42%, rgba(0, 229, 255, 0.12), #070B14 74%);
  overflow: hidden;
}

.showcase-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.glass-showcase.is-loaded .showcase-media {
  opacity: 1;
}

.glass-showcase.is-loaded .fallback-canvas {
  opacity: 0;
  pointer-events: none;
}

.glass-showcase.is-fallback .showcase-media {
  display: none;
}

.fallback-canvas {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity var(--transition-smooth);
}

.fallback-svg {
  width: 100%;
  height: 100%;
}

.showcase-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.04) 44%, rgba(7, 11, 20, 0.84) 100%);
  pointer-events: none;
}

.status-pills-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.86);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 19, 34, 0.9);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.showcase-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.9);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* Interactive 4-Stage Pipeline */
.pipeline-shell {
  padding: 28px;
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stage-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.65);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.stage-tab:hover {
  border-color: var(--border-cyan);
  background: rgba(16, 26, 46, 0.8);
}

.stage-tab.is-active {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.18);
}

.stage-index {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  background: rgba(26, 35, 54, 0.72);
  color: var(--text-secondary);
}

.stage-tab.is-active .stage-index {
  background: var(--accent-cyan);
  color: var(--bg-void);
}

.stage-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Signal Flow SVG Vector Diagram */
.signal-flow-board {
  margin: 22px 0;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 35, 54, 0.8);
  background: rgba(7, 11, 20, 0.56);
}

.signal-flow-svg {
  width: 100%;
  height: auto;
}

.flow-pulse-stream {
  animation: signalDashFlow 2.4s linear infinite;
}

.flow-node-halo {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1.5;
  transition: fill var(--transition-smooth), stroke var(--transition-smooth);
}

.flow-node-core {
  fill: #0B1120;
  stroke: #1A2336;
  stroke-width: 2;
  transition: fill var(--transition-smooth), stroke var(--transition-smooth);
}

.flow-node-num {
  fill: #94A3B8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.flow-node.is-visited .flow-node-core {
  stroke: #10B981;
}

.flow-node.is-visited .flow-node-num {
  fill: #10B981;
}

.flow-node.is-active .flow-node-halo {
  fill: rgba(0, 229, 255, 0.14);
  stroke: rgba(0, 229, 255, 0.45);
}

.flow-node.is-active .flow-node-core {
  fill: #00E5FF;
  stroke: #00E5FF;
}

.flow-node.is-active .flow-node-num {
  fill: #070B14;
}

#flow-progress-line {
  transition: x2 var(--transition-smooth);
}

@keyframes signalDashFlow {
  to {
    stroke-dashoffset: -68;
  }
}

/* Pipeline Split Details */
.pipeline-body {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.stage-detail-panel {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.64);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
}

.detail-code {
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-emerald);
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.detail-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.detail-description {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.detail-points {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--text-primary);
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.detail-points li::marker {
  color: var(--accent-cyan);
}

.detail-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.detail-kv {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kv-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.kv-value {
  font-size: 12px;
  color: var(--text-primary);
}

/* Dual-Agent Supervision */
.supervision-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.agents-stack {
  display: grid;
  gap: 20px;
}

.agent-card {
  padding: 26px;
  transition: border-color var(--transition-fast);
}

.agent-card:hover {
  border-color: var(--border-cyan);
}

.agent-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.agent-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.agent-badge-cyan {
  border: 1px solid var(--border-cyan);
  background: var(--accent-cyan-soft);
  color: var(--accent-cyan);
}

.agent-badge-emerald {
  border: 1px solid var(--border-emerald);
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.agent-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
}

.agent-copy {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 15px;
}

.agent-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--text-primary);
}

.agent-list li::marker {
  color: var(--accent-emerald);
}

.parity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.parity-card {
  padding: 24px;
}

.parity-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.8);
}

.parity-icon svg {
  width: 22px;
  height: 22px;
}

.parity-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.parity-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Licensing Tiers */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tier-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.tier-card-featured {
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-glass), var(--shadow-cyan);
}

.tier-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.tier-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.tier-tag-cyan {
  color: var(--accent-cyan);
}

.tier-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.tier-description {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 15px;
}

.tier-features {
  margin: 0 0 28px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
}

.tier-features li::marker {
  color: var(--accent-emerald);
}

.tier-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tier-cta-row .btn {
  padding: 13px 16px;
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 56px 0 42px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 8, 16, 0.9);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.legal-notice {
  padding: 22px 24px;
  margin-bottom: 24px;
}

.legal-heading {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
}

.legal-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flow-pulse-stream {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .pipeline-body,
  .supervision-grid {
    grid-template-columns: 1fr;
  }

  .stage-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .primary-nav {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .pipeline-shell {
    padding: 20px;
  }

  .stage-tabs,
  .tiers-grid,
  .detail-footer,
  .tier-cta-row {
    grid-template-columns: 1fr;
  }
}
