/* Romania Rage Roleplay — landing 2026 (FiveM) */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07080d;
  --bg-soft: #0c0e16;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f5f7;
  --muted: #9aa0ae;
  --accent: #ff4d2e;
  --accent-2: #ff9a3d;
  --accent-glow: rgba(255, 77, 46, 0.35);
  --radius: 18px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(255, 77, 46, 0.45); color: #fff; }

/* ─── ambient background: grid + orbs + skyline + beams + particles ─── */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(180deg, #05060a 0%, var(--bg) 30%, #0a0b13 78%, #0d0f18 100%);
}
.bg-fx::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}
/* film grain (inline SVG noise) */
.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* city skyline on the horizon */
.skyline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(100%, 1500px);
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}
/* warm haze rising behind the skyline */
.bg-fx::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42vh;
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(255, 77, 46, 0.13), transparent 70%),
    radial-gradient(40% 60% at 78% 100%, rgba(255, 154, 61, 0.09), transparent 70%);
  animation: haze 9s ease-in-out infinite;
}
@keyframes haze {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
/* sweeping light beams */
.beam {
  position: absolute;
  top: -20%;
  width: 260px;
  height: 140%;
  background: linear-gradient(180deg, transparent, rgba(255, 154, 61, 0.05) 35%, rgba(255, 77, 46, 0.07) 55%, transparent);
  filter: blur(24px);
  transform: rotate(18deg);
  animation: beam-sweep 16s ease-in-out infinite;
}
.beam-1 { left: 12%; }
.beam-2 { left: 62%; animation-delay: -8s; width: 200px; }
@keyframes beam-sweep {
  0%, 100% { transform: rotate(14deg) translateX(-60px); opacity: 0.5; }
  50% { transform: rotate(22deg) translateX(60px); opacity: 1; }
}
/* floating particles canvas */
#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 {
  width: 560px; height: 560px;
  top: -180px; right: -80px;
  background: radial-gradient(circle, rgba(255,77,46,0.32), transparent 65%);
  animation: drift-1 22s ease-in-out infinite;
}
.orb-2 {
  width: 480px; height: 480px;
  top: 32%; left: -200px;
  background: radial-gradient(circle, rgba(255,154,61,0.2), transparent 65%);
  animation: drift-2 28s ease-in-out infinite;
}
.orb-3 {
  width: 620px; height: 620px;
  bottom: -260px; left: 42%;
  background: radial-gradient(circle, rgba(120,60,255,0.16), transparent 65%);
  animation: drift-3 34s ease-in-out infinite;
}
@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-90px, 70px) scale(1.12); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(110px, -60px) scale(0.92); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -90px) scale(1.08); }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ─── topbar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid var(--card-border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-name em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav a.link:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ─── buttons (with sheen sweep) ─── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 13px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  cursor: pointer;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 28px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 38px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); }
.btn-discord {
  color: #fff;
  background: #5865f2;
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.35);
}
.btn-discord:hover { transform: translateY(-2px) scale(1.02); background: #6a76f5; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; border-radius: 11px; }

/* ─── hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 84px 0 50px;
  min-height: 72vh;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(255, 154, 61, 0.08);
  border: 1px solid rgba(255, 154, 61, 0.22);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3dff8b;
  box-shadow: 0 0 10px #3dff8b;
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #ffd23d, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 32px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.connect-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 11px 18px;
  font-size: 0.93rem;
}
.connect-chip .lbl { color: var(--muted); font-weight: 500; }
.connect-chip code {
  font-family: 'Space Grotesk', monospace;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.03em;
}

.hero-visual { position: relative; text-align: center; perspective: 900px; }
.hero-visual::before {
  content: '';
  position: absolute;
  left: 50%; top: 60%;
  width: 78%; height: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  filter: blur(16px);
  z-index: 0;
  animation: glow-breathe 5.5s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 30px 45px rgba(0,0,0,0.55));
  animation: floaty 5.5s ease-in-out infinite;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotateY(var(--tiltY, 0deg)) rotateX(var(--tiltX, 0deg)); }
  50% { transform: translateY(-14px) rotateY(var(--tiltY, 0deg)) rotateX(var(--tiltX, 0deg)); }
}

/* ─── stats strip ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 10px 0 30px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.stat:hover {
  border-color: rgba(255, 77, 46, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(255, 77, 46, 0.12);
}
.stat .ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,77,46,0.16), rgba(255,154,61,0.1));
  border: 1px solid rgba(255, 77, 46, 0.25);
}
.stat .ico svg { width: 22px; height: 22px; stroke: var(--accent-2); }
.stat strong { font-family: var(--font-display); font-size: 1.02rem; display: block; }
.stat span { color: var(--muted); font-size: 0.86rem; }

/* ─── car marquee ─── */
.marquee-section { padding: 40px 0 10px; overflow: hidden; }
.marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee .m-item {
  flex-shrink: 0;
  width: 260px;
  margin: 0 18px;
  padding: 18px 14px 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.marquee .m-item:hover { border-color: rgba(255, 77, 46, 0.4); transform: translateY(-5px); }
.marquee img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,0.45));
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-fade {
  position: relative;
}
.marquee-fade::before,
.marquee-fade::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-fade::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

/* ─── sections ─── */
.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 46px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-head h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: rgba(255, 77, 46, 0.4);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 40px rgba(255, 77, 46, 0.1);
}
.card .ico {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255,77,46,0.16), rgba(255,154,61,0.1));
  border: 1px solid rgba(255, 77, 46, 0.25);
  transition: transform 0.25s;
}
.card:hover .ico { transform: scale(1.1) rotate(-4deg); }
.card .ico svg { width: 23px; height: 23px; stroke: var(--accent-2); }
.card h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ─── steps ─── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  transition: border-color 0.25s, transform 0.25s;
}
.step:hover { border-color: rgba(255, 77, 46, 0.4); transform: translateY(-5px); }
.step .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255,77,46,0.9), rgba(255,154,61,0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}
.step strong { font-family: var(--font-display); font-size: 1.03rem; display: block; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9rem; }
.step a { color: var(--accent-2); text-decoration: none; }
.step a:hover { text-decoration: underline; }
.step code {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85em;
  color: var(--accent-2);
  background: rgba(255, 154, 61, 0.1);
  border: 1px solid rgba(255, 154, 61, 0.2);
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
}

/* ─── final CTA ─── */
.cta-banner {
  position: relative;
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(255, 77, 46, 0.3);
  background:
    radial-gradient(600px 240px at 50% -40%, rgba(255, 77, 46, 0.22), transparent 70%),
    var(--bg-soft);
  padding: 66px 30px;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255,77,46,0.6) 12%, transparent 26%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-border 7s linear infinite;
  pointer-events: none;
}
@keyframes spin-border { to { transform: rotate(360deg); } }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p { color: var(--muted); max-width: 34rem; margin: 0 auto 30px; }
.cta-banner .cta-row { justify-content: center; margin-bottom: 0; }

/* ─── footer ─── */
footer {
  border-top: 1px solid var(--card-border);
  margin-top: 80px;
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner .muted { color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ─── reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }

/* ─── responsive ─── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 56px; min-height: 0; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 420px; }
  .stats, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav a.link { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; }
  .connect-chip { width: 100%; justify-content: center; flex-wrap: wrap; }
  .marquee .m-item { width: 200px; margin: 0 12px; }
}

/* ─── reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .orb, .hero h1 em, .hero-visual img, .hero-visual::before,
  .marquee, .cta-banner::before, .eyebrow .dot,
  .beam, .bg-fx::before { animation: none !important; }
  #fx-canvas { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
