/* ==========================================================================
   HORIZONX-INSPIRED CINEMATIC DESIGN SYSTEM V2
   Ali Akbar Junaydullayev — Digital Economy × Software × AI
   ========================================================================== */

:root {
  /* Surface Layers (Deep Obsidian to Elevated Surface) */
  --bg-obsidian: #020204;
  --bg-deep: #050507;
  --bg-surface-1: #09090d;
  --bg-surface-2: #0f0f15;
  --bg-surface-elevated: #15151e;
  --bg-surface-interactive: #1a1a26;
  --bg-glass-nav: rgba(5, 5, 8, 0.82);
  --bg-glass-card: rgba(13, 13, 19, 0.68);

  /* Foreground & Typography */
  --text-primary: #fcfdfe;
  --text-secondary: #9aa0a6;
  --text-muted: #5f6368;
  --text-dim: #3c4043;

  /* Restrained Accents */
  --accent-sapphire: #38bdf8;
  --accent-sapphire-glow: rgba(56, 189, 248, 0.25);
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-violet: #a855f7;
  --accent-champagne: #dfb15b;
  --accent-champagne-light: #fef08a;

  /* Architectural Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(56, 189, 248, 0.35);
  --border-gold: rgba(223, 177, 91, 0.3);

  /* Gradients */
  --grad-sapphire-violet: linear-gradient(135deg, #38bdf8 0%, #818cf8 45%, #c084fc 100%);
  --grad-champagne: linear-gradient(135deg, #dfb15b 0%, #fef08a 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.0) 100%);

  /* Typography Fonts */
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --container-max: 1380px;
  --header-height: 80px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  /* Transitions */
  --trans-instant: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-obsidian);
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

/* Subtle architectural grid pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2.25rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-instant), border-color var(--trans-instant), transform var(--trans-instant);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

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

/* --------------------------------------------------------------------------
   EDITORIAL SIGNAL TAGS & STATUS CHIPS (HORIZONX PATTERN)
   -------------------------------------------------------------------------- */
.signal-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  backdrop-filter: blur(10px);
  transition: border-color var(--trans-instant), color var(--trans-instant);
}

.signal-tag:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-sapphire);
  box-shadow: 0 0 8px var(--accent-sapphire);
}

.signal-dot.live {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.signal-dot.violet {
  background-color: var(--accent-violet);
  box-shadow: 0 0 8px var(--accent-violet);
}

.signal-dot.gold {
  background-color: var(--accent-champagne);
  box-shadow: 0 0 8px var(--accent-champagne);
}

/* --------------------------------------------------------------------------
   SECTION HEADERS WITH EDITORIAL INDEX (HORIZONX PATTERN)
   -------------------------------------------------------------------------- */
.section-space {
  padding: 9rem 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .section-space {
    padding: 5.5rem 0;
  }
}

.section-editorial-header {
  margin-bottom: 5rem;
}

.section-index-rail {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-index-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-sapphire);
}

.section-index-line {
  height: 1px;
  flex: 1;
  max-width: 80px;
  background: var(--border-medium);
}

.section-index-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-main-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  color: var(--text-primary);
  max-width: 960px;
  line-height: 1.08;
  letter-spacing: -0.038em;
}

.section-lead-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin-top: 1.35rem;
  line-height: 1.65;
}
