/**
 * FORS33 brand — single stylesheet for site-wide tokens.
 * See website/brand/FORS33_BRAND.md for full spec.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* Background & surface */
  --fors33-bg: #050505;
  --fors33-surface: #14141e;
  --fors33-glass: rgba(20, 20, 30, 0.7);
  --fors33-border: #1f2937;

  /* Text */
  --fors33-text: #e0e7ff;
  --fors33-text-muted: #9ca3af;
  --fors33-text-dim: #6b7280;

  /* Accent */
  --fors33-accent: #00d4ff;
  --fors33-accent-glow: rgba(0, 212, 255, 0.5);

  /* Status */
  --fors33-success: #4ade80;
  --fors33-warning: #facc15;
  --fors33-error: #f87171;

  /* Typography */
  --fors33-font-sans: 'Inter', system-ui, sans-serif;
  --fors33-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Base (optional; pages can still set body classes) */
body.fors33-brand {
  background-color: var(--fors33-bg);
  color: var(--fors33-text);
  font-family: var(--fors33-font-sans);
  padding-top: 60px;
  overflow-x: hidden;
  box-sizing: border-box;
  max-width: 100vw;
}

body.fors33-brand *,
body.fors33-brand *::before,
body.fors33-brand *::after {
  box-sizing: inherit;
}

/* Site-wide main content centering */
body.fors33-brand main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Utility: accent glow (use sparingly) */
.text-cyan-glow {
  color: var(--fors33-accent);
  text-shadow: 0 0 10px var(--fors33-accent-glow);
}

.border-cyan-glow {
  border-color: var(--fors33-accent);
  box-shadow: 0 0 10px var(--fors33-accent-glow);
}

/* Glass panel */
.bg-glass {
  background: var(--fors33-glass);
  backdrop-filter: blur(10px);
}

/* Code / keys */
.fors33-code {
  font-family: var(--fors33-font-mono);
  color: var(--fors33-accent);
}

/* Slow pulse for live indicators */
@keyframes fors33-pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-pulse-slow {
  animation: fors33-pulse-slow 2s ease-in-out infinite;
}

/* Global HUD Navigation */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  background: rgba(2, 2, 4, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fors33-border);
  z-index: 10000;
  font-family: var(--fors33-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.identity-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.identity-cluster img {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sector-nav,
.ops-cluster {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
}

.nav-link {
  text-decoration: none;
  color: var(--fors33-text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus-visible {
  color: var(--fors33-accent);
  outline: 1px solid var(--fors33-accent);
  outline-offset: 2px;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fors33-accent);
  box-shadow: 0 0 8px var(--fors33-accent);
}

body.surface-switch::before {
  content: '';
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--fors33-accent), transparent);
  opacity: 0.1;
  z-index: 10001;
  pointer-events: none;
  animation: surface-wipe 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes surface-wipe {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Site-wide footer */
.global-footer {
  margin-top: auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--fors33-border);
  font-family: var(--fors33-font-mono);
  font-size: 0.75rem;
  color: var(--fors33-text-muted);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.global-footer a {
  color: var(--fors33-accent);
  text-decoration: none;
}

.global-footer a:hover {
  text-decoration: underline;
}

.global-footer a:focus-visible {
  outline: 1px solid var(--fors33-accent);
  outline-offset: 2px;
}

/* --- Hybrid imagery: CSS deco + focal hero (no SVG/PNG required) --- */

/* Structural line (divider, signal) — 1px accent or border */
.deco-line {
  height: 1px;
  background: var(--fors33-border);
  margin: 1rem 0;
}
.deco-line.accent {
  background: linear-gradient(90deg, transparent, var(--fors33-accent), transparent);
  opacity: 0.7;
}

/* Minimal grid panel — background only, no image */
.deco-grid-panel {
  min-height: 120px;
  background-color: var(--fors33-bg);
  background-image:
    linear-gradient(var(--fors33-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--fors33-border) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--fors33-border);
}

/* Dot / node marker */
.deco-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fors33-accent);
  flex-shrink: 0;
}

/* Focal hero block — one soft shape, CSS-only (gradient + pseudo-element) */
.hero-visual {
  position: relative;
  min-height: 200px;
  background: var(--fors33-bg);
  border: 1px solid var(--fors33-border);
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-visual::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 60%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--fors33-accent), transparent);
  opacity: 0.5;
}

/* Variant: cone/arc shape (subtle inverted triangle) */
.hero-visual.hero-cone::after {
  width: 0;
  height: 0;
  left: 50%;
  bottom: 20%;
  transform: translateX(-50%);
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-top: 60px solid transparent;
  border-bottom: 1px solid var(--fors33-accent);
  opacity: 0.35;
  background: none;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* Section wrapper for hybrid strip: mix of deco panels + one hero */
.hybrid-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.hybrid-strip .hero-visual {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 0 auto;
}
.hybrid-strip .deco-grid-panel {
  min-height: 100px;
}
