/* Ludus landing — тёмная римская эстетика, в духе arena-doors / style.css */
:root {
  --bg: #0a0908;
  --bg-elevated: #111318;
  --panel: #181b22;
  --text: #e8e2d6;
  --muted: #8a8680;
  --gold: #e8d9b0;
  --gold-dim: #9a9078;
  --gold-bright: #f0c080;
  --ember: #c87830;
  --pvp: #e8803a;
  --pvp-glow: rgba(200, 100, 30, 0.35);
  --accent-green: #4a7a62;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --max-w: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

/* ── Nav ── */
.ld-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.92), transparent);
  backdrop-filter: blur(8px);
  transition: background 0.3s;
}

.ld-nav.is-scrolled {
  background: rgba(10, 9, 8, 0.95);
  border-bottom: 1px solid rgba(232, 217, 176, 0.08);
}

.ld-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.ld-logo img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: filter 0.2s;
}

.ld-logo:hover img {
  filter: drop-shadow(0 4px 16px rgba(232, 217, 176, 0.25));
}

.ld-hero-logo {
  width: min(200px, 52vw);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.55));
  animation: ld-fade-up 0.8s ease both;
}

.ld-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.ld-nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

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

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
}

.ld-btn--primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--ember));
  color: #14120e;
  box-shadow: 0 4px 24px var(--pvp-glow);
}

.ld-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--pvp-glow);
}

.ld-btn--ghost {
  background: transparent;
  border: 1px solid rgba(232, 217, 176, 0.25);
  color: var(--gold);
}

.ld-btn--ghost:hover {
  background: rgba(232, 217, 176, 0.06);
  border-color: rgba(232, 217, 176, 0.4);
}

/* ── Hero ── */
.ld-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ld-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, #3a1a00 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(90, 60, 30, 0.15) 0%, transparent 50%);
}

.ld-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.55;
  animation: ld-ken-burns 20s ease-in-out infinite alternate;
}

.ld-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 9, 8, 0.5) 0%, transparent 30%, rgba(10, 9, 8, 0.85) 75%, var(--bg) 100%),
    linear-gradient(to right, rgba(10, 9, 8, 0.7) 0%, transparent 40%, transparent 60%, rgba(10, 9, 8, 0.7) 100%);
}

@keyframes ld-ken-burns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.ld-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ld-ember {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-bright);
  border-radius: 50%;
  opacity: 0;
  animation: ld-float-ember 6s ease-in-out infinite;
  box-shadow: 0 0 8px var(--pvp);
}

@keyframes ld-float-ember {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1.5); }
}

.ld-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 6rem 1.5rem 4rem;
}

.ld-hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(232, 217, 176, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
  animation: ld-fade-up 0.8s ease both;
}

.ld-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 1rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
  animation: ld-fade-up 0.8s 0.1s ease both;
}

.ld-hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  font-style: italic;
  margin: 0 0 0.5rem;
  animation: ld-fade-up 0.8s 0.2s ease both;
}

.ld-hero-tagline--en {
  font-size: 0.9rem;
  color: rgba(138, 134, 128, 0.8);
  animation: ld-fade-up 0.8s 0.25s ease both;
}

.ld-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: ld-fade-up 0.8s 0.35s ease both;
}

.ld-hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  animation: ld-fade-up 0.8s 0.45s ease both;
}

.ld-stat {
  text-align: center;
}

.ld-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.ld-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.25rem;
}

@keyframes ld-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Sections ── */
.ld-section {
  padding: 5rem 1.5rem;
  position: relative;
}

.ld-section--dark {
  background: var(--bg-elevated);
}

.ld-section--sand {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(58, 26, 0, 0.2) 0%, transparent 60%),
    var(--bg);
}

.ld-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.ld-section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.ld-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.ld-section-head p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.ld-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Feature cards (arena doors style) ── */
.ld-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ld-feature-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}

.ld-feature-card:hover {
  transform: translateY(-6px);
}

.ld-feature-card--pvp {
  border-color: #5a3a20;
}
.ld-feature-card--pvp:hover {
  box-shadow: 0 16px 48px var(--pvp-glow);
  border-color: #9a6030;
}

.ld-feature-card--ludus {
  border-color: #3a4a30;
}
.ld-feature-card--ludus:hover {
  box-shadow: 0 16px 48px rgba(74, 122, 98, 0.25);
  border-color: #5a8a62;
}

.ld-feature-card--dynasty {
  border-color: #4a3a50;
}
.ld-feature-card--dynasty:hover {
  box-shadow: 0 16px 48px rgba(160, 120, 200, 0.2);
  border-color: #7a5a9a;
}

.ld-feature-bg {
  position: absolute;
  inset: 0;
}

.ld-feature-card--pvp .ld-feature-bg {
  background: radial-gradient(ellipse at 50% 100%, #3a1800 0%, #1a0e06 50%, #100c08 100%);
}
.ld-feature-card--ludus .ld-feature-bg {
  background: radial-gradient(ellipse at 50% 100%, #1a2a18 0%, #0e140c 50%, #0a0c08 100%);
}
.ld-feature-card--dynasty .ld-feature-bg {
  background: radial-gradient(ellipse at 50% 100%, #2a1830 0%, #140a18 50%, #0c0810 100%);
}

.ld-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  mix-blend-mode: luminosity;
}

.ld-feature-body {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ld-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ld-feature-card--pvp .ld-feature-icon {
  background: rgba(200, 100, 30, 0.15);
  color: var(--pvp);
}
.ld-feature-card--ludus .ld-feature-icon {
  background: rgba(74, 122, 98, 0.15);
  color: #6aba82;
}
.ld-feature-card--dynasty .ld-feature-icon {
  background: rgba(160, 120, 200, 0.12);
  color: #c0a0e8;
}

.ld-feature-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: var(--gold);
}

.ld-feature-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Split showcase ── */
.ld-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ld-split-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(232, 217, 176, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ld-split-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.ld-split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.6), transparent 50%);
  pointer-events: none;
}

.ld-split-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.ld-split-text p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.ld-check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.ld-check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--text);
}

.ld-check-list li::before {
  content: "⚔";
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.75rem;
}

/* ── Gladiator portraits ── */
.ld-glads {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.ld-glad-portrait {
  position: relative;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(232, 217, 176, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: ld-glad-idle 4s ease-in-out infinite;
}

.ld-glad-portrait:nth-child(2) {
  animation-delay: -2s;
}

@keyframes ld-glad-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ld-glad-portrait:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(200, 100, 30, 0.3);
  animation: none;
}

.ld-glad-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}

.ld-glad-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.95), transparent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

/* ── Buildings grid ── */
.ld-buildings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.ld-building {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.ld-building:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 217, 176, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ld-building img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s;
}

.ld-building:hover img {
  transform: scale(1.08);
}

.ld-building-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.ld-building-latin {
  font-size: 0.65rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ── Cycle diagram ── */
.ld-cycle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.25rem;
  margin-top: 2rem;
  font-size: 0.82rem;
}

.ld-cycle-step {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 217, 176, 0.12);
  border-radius: 6px;
  color: var(--gold-dim);
  white-space: nowrap;
}

.ld-cycle-arrow {
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0.5;
}

/* ── Screenshots strip ── */
.ld-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ld-screenshot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: transform 0.3s;
}

.ld-screenshot:hover {
  transform: scale(1.02);
  z-index: 2;
}

.ld-screenshot img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.ld-screenshot span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
}

/* ── CTA ── */
.ld-cta {
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.ld-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(58, 26, 0, 0.35) 0%, transparent 60%),
    var(--bg-elevated);
}

.ld-cta-content {
  position: relative;
  z-index: 2;
}

.ld-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.ld-cta p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.ld-cta-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(138, 134, 128, 0.7);
}

/* ── Footer ── */
.ld-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ld-split {
    grid-template-columns: 1fr;
  }

  .ld-screenshots {
    grid-template-columns: 1fr;
  }

  .ld-nav-links a:not(.ld-btn) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-hero-img,
  .ld-ember,
  .ld-glad-portrait,
  .ld-reveal {
    animation: none !important;
    transition: none !important;
  }

  .ld-reveal {
    opacity: 1;
    transform: none;
  }
}
