/* ══════════════════════════════════════════════════════
   NYX AI — Style System
   Brand palette: Obsidian → Midnight → Storm → Horizon
   ══════════════════════════════════════════════════════ */

:root {
  --obsidian:      #0B0F14;
  --midnight:      #0F1B2A;
  --storm:         #16263A;
  --storm-light:   #1E3450;
  --horizon:       #FFFFFF;
  --lunar:         #E4EAF2;
  --lunar-muted:   #8899AA;
  --glow:          rgba(245, 247, 250, 0.08);
  --glow-strong:   rgba(245, 247, 250, 0.15);

  --font-serif:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--obsidian);
  color: var(--lunar);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ══════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════ */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video background — full bleed, covers viewport, graded to night */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  /* Night grading: deep blue moonlit ocean — intense blue, bright crests */
  filter: brightness(0.65) saturate(0.7) contrast(1.8) sepia(0.4) hue-rotate(190deg);
}

/* Overlay: midnight tint + vignette + bottom fade into first section */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* Subtle midnight tint — let moonlit highlights punch through */
    linear-gradient(to bottom,
      rgba(10, 18, 32, 0.30) 0%,
      rgba(10, 18, 32, 0.10) 30%,
      transparent 50%,
      rgba(11, 15, 20, 0.20) 70%,
      rgba(11, 15, 20, 0.70) 90%,
      var(--obsidian) 100%
    ),
    /* Vignette for edge framing */
    radial-gradient(ellipse at center 45%, transparent 35%, rgba(11, 15, 20, 0.45) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  transform: translateY(-8%);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.35em;
  color: var(--horizon);
  margin-bottom: 1.5rem;
  text-shadow:
    0 0 30px rgba(200, 220, 255, 0.25),
    0 0 60px rgba(11, 15, 20, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.horizon-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--horizon), transparent);
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeIn 1.5s ease-out 0.8s forwards;
}

.tagline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  color: var(--horizon);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-shadow:
    0 0 25px rgba(200, 220, 255, 0.2),
    0 0 50px rgba(11, 15, 20, 0.7),
    0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 1s forwards;
}

.subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  color: var(--lunar);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  text-shadow:
    0 0 20px rgba(11, 15, 20, 0.9),
    0 0 40px rgba(11, 15, 20, 0.7);
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 1.3s forwards;
}

.powered-by {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--lunar-muted);
  letter-spacing: 0.08em;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 1.5s forwards;
}

.powered-by a {
  color: var(--lunar);
  border-bottom: 1px solid rgba(228, 234, 242, 0.2);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.powered-by a:hover {
  color: var(--horizon);
  border-color: var(--horizon);
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 1.8s forwards;
}

/* ── Buttons ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--horizon);
  color: var(--obsidian);
  border-color: var(--horizon);
}

.btn-primary:hover {
  background: transparent;
  color: var(--horizon);
  border-color: var(--horizon);
}

.btn-ghost {
  background: transparent;
  color: var(--lunar);
  border-color: rgba(216, 222, 233, 0.3);
}

.btn-ghost:hover {
  border-color: var(--horizon);
  color: var(--horizon);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

/* ── Scroll indicator ─────────────────────────────── */

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease-out 2.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--lunar-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════
   SECTIONS — Shared
   ══════════════════════════════════════════════════════ */

.section {
  padding: 8rem 2rem;
  position: relative;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.section-dark {
  background:
    linear-gradient(to bottom,
      var(--obsidian) 0%,
      var(--midnight) 12%,
      var(--midnight) 88%,
      var(--obsidian) 100%
    );
}

/* ── Blended section transitions ─────────────────── */
/* Pseudo-elements create smooth colour bleeds between sections */

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 0;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 0;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lunar-muted);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--horizon);
  line-height: 1.3;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.section-body {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.7;
  color: var(--lunar);
  max-width: 640px;
  margin: 0 auto;
}

.section-body.muted {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--lunar-muted);
  margin-top: 0;
  line-height: 1.8;
}

/* ── Sovereignty ──────────────────────────────────── */

#sovereignty {
  background:
    linear-gradient(to bottom,
      var(--obsidian) 0%,
      var(--midnight) 35%,
      var(--midnight) 65%,
      var(--obsidian) 100%
    );
}

.philosophy-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--storm-light), transparent);
  margin: 3rem auto;
}

/* ── Capabilities ─────────────────────────────────── */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: rgba(216, 222, 233, 0.06);
  border: 1px solid rgba(216, 222, 233, 0.06);
}

.capability-card {
  padding: 2.5rem 2rem;
  background: rgba(15, 27, 42, 0.85);
  text-align: left;
  transition: background 0.4s ease;
}

.capability-card:hover {
  background: rgba(22, 38, 58, 0.9);
}

.capability-icon {
  color: var(--lunar-muted);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.capability-card h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--horizon);
  margin-bottom: 0.75rem;
}

.capability-card p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--lunar-muted);
  line-height: 1.7;
}

/* ── Architecture ─────────────────────────────────── */

#architecture {
  background:
    linear-gradient(to bottom,
      var(--obsidian) 0%,
      rgba(15, 27, 42, 0.4) 40%,
      rgba(15, 27, 42, 0.4) 60%,
      var(--obsidian) 100%
    );
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: rgba(216, 222, 233, 0.06);
  border: 1px solid rgba(216, 222, 233, 0.06);
}

.arch-item {
  padding: 2rem 1.5rem;
  background: rgba(11, 15, 20, 0.85);
  text-align: center;
  transition: background 0.3s ease;
}

.arch-item:hover {
  background: rgba(22, 38, 58, 0.5);
}

.arch-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lunar-muted);
  margin-bottom: 0.5rem;
}

.arch-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--horizon);
  letter-spacing: 0.01em;
}

.providers-row {
  margin-top: 4rem;
  text-align: center;
}

.providers-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lunar-muted);
  margin-bottom: 1rem;
}

.providers-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.provider {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--lunar);
  letter-spacing: 0.02em;
}

.provider-sep {
  color: var(--storm-light);
  margin: 0 0.3rem;
}

/* ── CTA Section ──────────────────────────────────── */

.section-cta {
  background:
    linear-gradient(to bottom,
      var(--obsidian) 0%,
      var(--midnight) 30%,
      var(--midnight) 60%,
      var(--obsidian) 100%
    );
  padding: 10rem 2rem;
}

.cta-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--horizon);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.cta-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--lunar-muted);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */

footer {
  border-top: 1px solid rgba(216, 222, 233, 0.04);
  padding: 3rem 2rem;
  background: var(--obsidian);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--lunar-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--lunar-muted);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

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

.footer-copy {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(136, 153, 170, 0.5);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ── Scroll-triggered reveal ──────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .capabilities-grid,
  .arch-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .section-cta {
    padding: 6rem 1.5rem;
  }

  .hero-content {
    transform: translateY(0);
  }

  .brand-name {
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .providers-list {
    gap: 0.3rem;
  }

  .provider-sep {
    display: none;
  }

  .providers-list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ── Selection styling ────────────────────────────── */

::selection {
  background: var(--storm);
  color: var(--horizon);
}
