/* ── Fonts (from Synlight launcher brand) ── */
@font-face {
  font-family: 'TT Norms Pro';
  src: url('../assets/fonts/TTNormsProVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms Pro Mono';
  src: url('../assets/fonts/TTNormsProMonoVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Root variables (Synlight brand palette) ── */
:root {
  --accent: #EB6700;
  --accent-dark: #853A00;
  --accent-light: #FF7A1A;
  --accent-glow: rgba(235, 103, 0, 0.35);
  --gradient-primary: linear-gradient(83.31deg, #CD4C5A 0.48%, #EB6700 91.35%);
  --bg-primary: #020202;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.25);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(235, 103, 0, 0.3);
}

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

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html.is-unlocked {
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'TT Norms Pro', Arial, sans-serif;
}

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

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

/* ══════════════════════════════════════
   INTRO VIDEO
   ══════════════════════════════════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.intro.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Landscape screens are close enough to the video's native 16:9 that
   cover fills edge-to-edge with negligible crop; portrait/mobile screens
   crop too aggressively with cover, so they keep the full logo via contain. */
@media (orientation: landscape) {
  .intro__video {
    object-fit: cover;
  }
}

.intro__skip {
  position: absolute;
  bottom: 32px;
  right: 32px;
  padding: 10px 20px;
  background: rgba(2, 2, 2, 0.04);
  border: 1px solid rgba(2, 2, 2, 0.1);
  border-radius: 999px;
  color: rgba(2, 2, 2, 0.55);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.8s forwards;
}

.intro__skip:hover {
  background: rgba(235, 103, 0, 0.1);
  border-color: var(--border-accent);
  color: var(--accent-dark);
}

/* ══════════════════════════════════════
   TRANSITION GLASS
   ══════════════════════════════════════ */
.transition-glass {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(2, 2, 2, 0.4);
  transition: opacity 700ms cubic-bezier(.22,1,.36,1);
}

.transition-glass.is-active {
  opacity: 1;
}

/* ══════════════════════════════════════
   SITE
   ══════════════════════════════════════ */
.site {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.02);
  transition:
    opacity 700ms cubic-bezier(.22,1,.36,1) 150ms,
    filter 700ms cubic-bezier(.22,1,.36,1) 150ms,
    transform 900ms cubic-bezier(.22,1,.36,1) 150ms;
}

.site.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* ── Backdrop: fixed, viewport-sized, clips its own decoration so
   oversized glow blobs never leak into the document's scrollable area ── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Top accent beam ── */
.top-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 6;
  background: linear-gradient(90deg, transparent 0%, rgba(205, 76, 90, 0.7) 30%, var(--accent-light) 50%, rgba(205, 76, 90, 0.7) 70%, transparent 100%);
  box-shadow: 0 0 24px 1px rgba(235, 103, 0, 0.5);
}

/* ── Background decoration ── */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.bg-glow--top {
  top: -25%;
  right: -15%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: driftTop 16s ease-in-out infinite alternate;
}

.bg-glow--bottom {
  bottom: -30%;
  left: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(205, 76, 90, 0.22) 0%, transparent 70%);
  animation: driftBottom 20s ease-in-out infinite alternate;
}

@keyframes driftTop {
  from { transform: translate(0, 0) scale(1); opacity: 0.9; }
  to { transform: translate(-4%, 3%) scale(1.08); opacity: 1; }
}

@keyframes driftBottom {
  from { transform: translate(0, 0) scale(1); opacity: 0.8; }
  to { transform: translate(3%, -4%) scale(1.06); opacity: 1; }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 75%);
}

/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 24px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 12px 12px 22px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.nav__logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(235, 103, 0, 0.55));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gradient-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px rgba(235, 103, 0, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  box-shadow: 0 0 26px rgba(235, 103, 0, 0.55);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 48px;
  overflow: hidden;
}

.hero__ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64vw, 760px);
  transform: translate(-50%, -54%);
  opacity: 0.06;
  filter: grayscale(1) brightness(2.6) blur(1px);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(235, 103, 0, 0.07);
  border: 1px solid var(--border-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-light);
  margin-bottom: 28px;
  animation: slideUp 0.7s cubic-bezier(.22,1,.36,1) 0.1s both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px 2px rgba(255, 122, 26, 0.7);
  animation: pulseDot 2s ease-in-out infinite;
}

.hero__title {
  position: relative;
  z-index: 1;
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  animation: slideUp 0.7s cubic-bezier(.22,1,.36,1) 0.25s both;
}

.hero__title--accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(235, 103, 0, 0.4));
}

.hero__subtitle {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  animation: slideUp 0.7s cubic-bezier(.22,1,.36,1) 0.4s both;
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  animation: slideUp 0.7s cubic-bezier(.22,1,.36,1) 0.55s both;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--gradient-primary);
  box-shadow: 0 0 24px rgba(235, 103, 0, 0.35);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--primary:hover {
  box-shadow: 0 0 40px rgba(235, 103, 0, 0.6);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: rgba(235, 103, 0, 0.06);
  transform: translateY(-2px);
}

.hero__scroll {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  animation: fadeIn 0.7s ease 1s both, bounceY 2.2s ease-in-out 1.7s infinite;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__scroll:hover {
  color: var(--accent-light);
  border-color: var(--border-accent);
}

/* ══════════════════════════════════════
   ECOSYSTEM (studio / launcher / univers)
   ══════════════════════════════════════ */
.ecosystem {
  position: relative;
  z-index: 10;
  padding: 90px 24px 100px;
  text-align: center;
}

.ecosystem__label {
  font-family: 'TT Norms Pro Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.ecosystem__heading {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 52px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}

.feature {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  background: rgba(235, 103, 0, 0.06);
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(235, 103, 0, 0.1);
  color: var(--accent-light);
  margin-bottom: 20px;
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature__index {
  position: absolute;
  top: 28px;
  right: 26px;
  font-family: 'TT Norms Pro Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.feature__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.feature__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.footer__logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer__discord {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer__discord:hover {
  color: var(--accent-light);
}

.footer__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__legal a {
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: var(--text-secondary);
}

.footer__sep {
  color: var(--text-muted);
}

.footer__lang {
  display: flex;
  align-items: center;
  gap: 2px;
}

.footer__lang-btn {
  background: none;
  border: none;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer__lang-btn:hover {
  color: var(--text-secondary);
}

.footer__lang-btn.is-active {
  color: var(--accent-light);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 860px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature__index {
    top: 24px;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    padding: 16px 16px 0;
  }

  .nav {
    padding: 10px 10px 10px 18px;
  }

  .nav__link {
    display: none;
  }

  .hero {
    padding: 56px 20px 40px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
