:root {
  --bg-deep: #050816;
  --bg-panel: rgba(12, 18, 38, 0.72);
  --bg-panel-strong: rgba(8, 12, 28, 0.88);
  --border-subtle: rgba(100, 180, 255, 0.14);
  --border-accent: rgba(100, 200, 255, 0.35);
  --text-primary: #e6ecff;
  --text-muted: #8da0c7;
  --accent-cyan: #5bc8ff;
  --accent-cyan-dim: rgba(91, 200, 255, 0.55);
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --nav-height: clamp(52px, 6vh, 68px);
  --footer-height: clamp(56px, 7vh, 76px);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-stack);
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image: url('/assets/background.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Deep-space tint overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(80, 180, 255, 0.08), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(120, 90, 255, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.35), rgba(5, 8, 22, 0.55));
  pointer-events: none;
  z-index: 0;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(5, 10, 24, 0.92), rgba(5, 10, 24, 0.78));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.brand-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 1vw, 0.68rem);
  letter-spacing: 0.22em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  opacity: 0.9;
}

.brand-name {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-cyan);
  outline: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

/* ============ MAIN / HERO ============ */
.main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--nav-height);
  padding-bottom: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  width: 100%;
  max-width: min(1200px, 92vw);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-shell {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(70vh, 640px);
  border-radius: clamp(10px, 1.5vw, 18px);
  background: var(--bg-panel-strong);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 0 0 1px rgba(100, 200, 255, 0.04) inset,
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(80, 160, 255, 0.08);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-shell:hover {
  border-color: var(--border-accent);
  box-shadow:
    0 0 0 1px rgba(100, 200, 255, 0.08) inset,
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(80, 160, 255, 0.14);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  background: radial-gradient(ellipse at center, rgba(20, 32, 60, 0.55), rgba(5, 10, 24, 0.85) 75%);
}

.play-glyph {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent-cyan);
  text-shadow: 0 0 24px var(--accent-cyan-dim);
  opacity: 0.85;
}

.placeholder-label {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ============ FOOTER ============ */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 3vw, 40px);
  background: linear-gradient(0deg, rgba(5, 10, 24, 0.92), rgba(5, 10, 24, 0.78));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.footer-brand {
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-mark {
  color: var(--accent-cyan);
  font-size: 1.1em;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.9vw, 0.72rem);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero {
    padding: clamp(16px, 3vw, 32px);
  }
  .video-shell {
    aspect-ratio: 16 / 10;
    max-height: 60vh;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 56px;
    --footer-height: 64px;
  }
  .navbar {
    padding: 0 16px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .brand-eyebrow { font-size: 0.55rem; }
  .brand-name { font-size: 0.95rem; }
  .hero {
    padding: 16px;
  }
  .video-shell {
    aspect-ratio: 4 / 3;
    max-height: 55vh;
  }
  .footer-inner {
    gap: 1px;
  }
}

@media (max-width: 420px) {
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 0.78rem;
    padding: 4px 1px;
  }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
