/* Worldrift — worldrift.ai */

:root {
  --bg: #0a0806;
  --bg-elev: #151009;
  --line: #2a2115;
  --ink: #eceae4;
  --muted: #a89c8c;
  --accent: #f08a2e;
  --accent-soft: rgba(240, 138, 46, 0.14);
  --radius: 10px;
  --nav-h: 64px;
  --font: "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--accent); color: #150c02; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }

/* ---------------------------------- nav ---------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.92), rgba(10, 8, 6, 0));
  transition: background-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 8, 6, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 33, 21, 0.6);
}

.nav-logo img { height: 22px; width: auto; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(240, 138, 46, 0.45);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-chip { margin-left: auto; }
}

/* ---------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Tilted thumbnail wall, streaming-service style. Populated by main.js. */
.wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wall-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(170vw, 2000px);
  display: flex;
  gap: clamp(10px, 1.2vw, 22px);
  transform: translate(-50%, -50%) perspective(1300px) rotateX(16deg) rotateZ(-8deg) scale(1.22);
}

.wall-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 22px);
  animation: wall-drift 90s linear infinite;
}

.wall-col:nth-child(even) { animation-direction: reverse; }
.wall-col:nth-child(2) { animation-duration: 104s; }
.wall-col:nth-child(3) { animation-duration: 82s; }
.wall-col:nth-child(4) { animation-duration: 118s; }
.wall-col:nth-child(5) { animation-duration: 88s; }
.wall-col:nth-child(6) { animation-duration: 110s; }

@keyframes wall-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.wall-col img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .wall-col { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 44%, rgba(10, 8, 6, 0.62) 0%, rgba(10, 8, 6, 0.30) 55%, rgba(10, 8, 6, 0) 100%),
    linear-gradient(180deg, rgba(10, 8, 6, 0.78) 0%, rgba(10, 8, 6, 0.18) 30%, rgba(10, 8, 6, 0.30) 62%, var(--bg) 96%);
}

.hero-veil::after {
  /* faint amber horizon glow above the fold line */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28vh;
  background: radial-gradient(ellipse 65% 100% at 50% 100%, rgba(240, 138, 46, 0.12), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-h) + 4vh) clamp(16px, 5vw, 48px) 10vh;
  max-width: 880px;
}

.hero-logo {
  width: clamp(260px, 44vw, 500px);
  height: auto;
  margin: 0 auto 3.5vh;
  filter: drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55));
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  margin: 18px auto 30px;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #d6d0c6;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
  text-wrap: balance;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #1c0f02;
}

.btn-primary:hover { background: #ff9d43; }

.btn-ghost {
  border: 1px solid rgba(236, 234, 228, 0.35);
  background: rgba(10, 8, 6, 0.35);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover { border-color: rgba(236, 234, 228, 0.7); }

.hero-platforms {
  margin-top: 34px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #cfc8bc;
  background: rgba(21, 16, 9, 0.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(4px);
}

.platform-chip svg { color: var(--accent); }

/* -------------------------------- sections -------------------------------- */

.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) clamp(16px, 5vw, 48px) 0;
}

.section-wide { max-width: 1500px; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  margin-bottom: 18px;
}

.lede {
  max-width: 720px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
}

/* pillars */

.pillars {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.pillar {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.pillar h3 { font-size: 19px; margin-bottom: 10px; color: var(--accent); }
.pillar p { font-size: 15.5px; color: #c9c1b4; }

/* ------------------------------- spotlight ------------------------------- */

.spotlight {
  position: relative;
  margin-top: 34px;
  border-radius: 14px;
  overflow: hidden;
  height: clamp(340px, 40vw, 580px);
  background: var(--bg-elev);
}

.spot-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.spot-slide.active { opacity: 1; pointer-events: auto; }

.spot-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, 0.86) 0%, rgba(10, 8, 6, 0.35) 46%, rgba(10, 8, 6, 0) 75%),
    linear-gradient(0deg, rgba(10, 8, 6, 0.82) 0%, rgba(10, 8, 6, 0) 40%);
}

.spot-copy {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 4vw, 56px);
  bottom: clamp(20px, 4vw, 48px);
  max-width: min(560px, 82%);
}

.spot-copy h3 {
  font-size: clamp(24px, 3vw, 40px);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.spot-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

.spot-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e8ddcd;
  background: rgba(21, 16, 9, 0.72);
  border: 1px solid rgba(240, 138, 46, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}

.spot-copy p {
  font-size: clamp(14px, 1.35vw, 16.5px);
  color: #ddd6ca;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.spot-dots {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 34px);
  display: flex;
  gap: 8px;
}

.spot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(236, 234, 228, 0.32);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.spot-dot.active { background: var(--accent); transform: scale(1.25); }

@media (max-width: 640px) {
  .spotlight { height: clamp(400px, 115vw, 500px); }
  .spot-copy p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* --------------------------------- shelves -------------------------------- */

.shelf { margin-top: 46px; }

.shelf h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.shelf-viewport { position: relative; }

.row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.row::-webkit-scrollbar { display: none; }

.card {
  position: relative;
  flex: 0 0 clamp(230px, 23vw, 320px);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg-elev);
  transition: transform 0.18s ease;
}

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

.card:hover { transform: scale(1.035); z-index: 2; }

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-name {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.7);
  transition: opacity 0.15s ease;
}

.card-desc {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: end;
  padding: 12px 14px;
  font-size: 12.8px;
  line-height: 1.45;
  color: #e6e0d5;
  background: linear-gradient(0deg, rgba(8, 6, 4, 0.92) 0%, rgba(8, 6, 4, 0.55) 55%, rgba(8, 6, 4, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.card:hover .card-desc, .card:focus-visible .card-desc { opacity: 1; }
.card:hover .card-name { opacity: 0; }

.card-desc strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink); }

.row-arrow {
  position: absolute;
  top: 0;
  bottom: 6px;
  width: 44px;
  border: none;
  cursor: pointer;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(10, 8, 6, 0.85), rgba(10, 8, 6, 0));
  font-size: 26px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
}

.row-arrow.right {
  right: 0;
  background: linear-gradient(270deg, rgba(10, 8, 6, 0.85), rgba(10, 8, 6, 0));
}

.row-arrow.left { left: 0; }

.shelf-viewport:hover .row-arrow { opacity: 1; }

@media (hover: none) {
  .row-arrow { display: none; }
  .card-desc { display: none; }
}

/* -------------------------------- features -------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(48px, 7vh, 84px);
}

.feature:nth-child(odd) .feature-copy { order: -1; }

.feature figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.feature-copy h3 { font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 12px; }
.feature-copy p { color: var(--muted); font-size: 16px; }

@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(odd) .feature-copy { order: 0; }
}

/* -------------------------------- platforms -------------------------------- */

.platforms {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.platform-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.platform-card h3 { font-size: 24px; margin-bottom: 8px; }
.platform-card p { color: var(--muted); font-size: 15.5px; max-width: 420px; }

.soon-chip {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

/* -------------------------------- contact -------------------------------- */

.contact-row {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-mail {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 2px solid rgba(240, 138, 46, 0.35);
  transition: border-color 0.15s ease;
}

.contact-mail:hover { border-color: var(--accent); }

.btn-copy { padding: 9px 18px; font-size: 14px; cursor: pointer; font-family: var(--font); }

/* --------------------------------- footer --------------------------------- */

.footer {
  margin-top: clamp(72px, 12vh, 130px);
  padding: 44px clamp(16px, 5vw, 48px) 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.footer img { height: 18px; width: auto; margin: 0 auto 16px; opacity: 0.85; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

.footer-fine { margin-top: 10px; font-size: 12.5px; color: #6f6558; }

/* -------------------------------- reveals --------------------------------- */

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

.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
