/* Echoes of Legends — cinematic dark theme */
:root {
  --bg: #07070a;
  --bg-elevated: #111116;
  --bg-card: #16161d;
  --bg-card-hover: #1c1c26;
  --border: rgba(212, 175, 55, 0.18);
  --border-strong: rgba(212, 175, 55, 0.4);
  --gold: #d4af37;
  --gold-soft: #c9a84c;
  --gold-dim: #8a7130;
  --text: #f2efe6;
  --text-muted: #a8a39a;
  --text-dim: #6e6a62;
  --danger-soft: #3a2a1a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.brand:hover { color: var(--gold); }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.nav-links {
  display: none;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #b8922e);
  color: #111 !important;
  font-weight: 600;
  font-size: 0.85rem;
}
.nav-cta:hover { filter: brightness(1.08); color: #111 !important; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.nav-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.75rem 0 1rem;
}
.nav-panel.open { display: block; }
.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.nav-panel a {
  display: block;
  padding: 0.7rem 0.4rem;
  color: var(--text-muted);
  border-radius: 8px;
}
.nav-panel a:hover {
  color: var(--gold);
  background: var(--bg-elevated);
}

@media (min-width: 840px) {
  .menu-toggle, .nav-panel { display: none !important; }
  .nav-links { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.16), transparent 55%),
    radial-gradient(ellipse at 80% 40%, rgba(90, 60, 20, 0.25), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}
.hero h1 span { color: var(--gold); }
.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8922e);
  color: #111;
}
.btn-primary:hover { filter: brightness(1.08); color: #111; }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}
.btn-block { width: 100%; }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.social-row a { color: var(--text-muted); }
.social-row a:hover { color: var(--gold); }

.hero-card {
  background: linear-gradient(160deg, rgba(22, 22, 29, 0.95), rgba(12, 12, 16, 0.95));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.hero-card-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hero-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.hero-stat span {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .hero { padding: 5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1.35fr 0.9fr; gap: 3rem; }
}

/* Sections */
section { padding: 3.5rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-kicker {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.alt-bg {
  background: linear-gradient(180deg, rgba(17, 17, 22, 0.7), rgba(7, 7, 10, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Offer cards */
.offer-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
}
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}
.offer-card.featured {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), var(--shadow);
}
.offer-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  background: var(--gold);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.offer-badge.soon {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--border-strong);
}
.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.offer-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.offer-card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.offer-card li { margin-bottom: 0.35rem; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
}

.portfolio-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.portfolio-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  color: inherit;
}
.thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #000;
  overflow: hidden;
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65));
}
.play-badge span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.92);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.portfolio-meta {
  padding: 0.9rem 1rem 1.05rem;
}
.portfolio-meta h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
}
.portfolio-meta p {
  margin: 0.35rem 0 0;
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
  padding-top: 0.75rem;
}
@media (min-width: 800px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-card.popular {
  border-color: var(--gold);
  position: relative;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15), var(--shadow);
}
.price-card.popular::before {
  content: "Most popular";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.price-amount small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}
.price-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.price-card li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.price-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.75rem;
  top: 0.55rem;
}
.price-disclaimer {
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Coming soon / waitlist */
.waitlist-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .waitlist-grid { grid-template-columns: 1fr 1fr; }
}
.waitlist-card {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: rgba(22, 22, 29, 0.5);
}
.waitlist-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.waitlist-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .contact-box { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.contact-box h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.contact-box p {
  margin: 0;
  color: var(--text-muted);
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.footer-brand strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }
.footer-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* 404 */
.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.page-404 p { color: var(--text-muted); margin: 0 0 1.5rem; }


@media (max-width: 420px) {
  .nav-cta { display: none; }
  .brand span { font-size: 0.85rem; }
}
