/* FapTitans promo site — unique "titan fantasy" light theme
   Palette: warm parchment, deep violet ink, rose accent, titan gold. */
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #2e2347;
  --muted: #6f6483;
  --accent: #c0396b;
  --accent-soft: #fbe4ec;
  --gold: #d99a2b;
  --gold-soft: #fdf0d5;
  --line: #ecdce4;
  --shadow: 0 10px 30px rgba(46, 35, 71, 0.08);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--accent); }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name {
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--ink) 30%, var(--accent) 70%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav a.nav-link {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 10px;
}
.main-nav a.nav-link:hover { background: var(--accent-soft); color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-play {
  background: linear-gradient(120deg, var(--gold), #f0b94e);
  color: #3a2805; box-shadow: 0 8px 20px rgba(217, 154, 43, 0.35);
}
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-light { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.btn-lg { padding: 15px 34px; font-size: 1.1rem; }

/* ---------- Hero (index) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(192, 57, 107, 0.16), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(217, 154, 43, 0.18), transparent 55%),
    linear-gradient(180deg, #fdf6f0, var(--bg));
  padding: 64px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero-tagline { font-size: 1.15rem; color: var(--muted); max-width: 30em; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 22px; box-shadow: 0 24px 60px rgba(46, 35, 71, 0.22);
  border: 6px solid var(--surface);
}
.stat-chip {
  position: absolute; background: var(--surface); border-radius: 14px; padding: 10px 16px;
  box-shadow: var(--shadow); font-weight: 800; font-size: 0.9rem; border: 1px solid var(--line);
}
.stat-chip small { display: block; font-weight: 600; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.stat-dpc { top: 18px; left: -18px; color: var(--accent); }
.stat-dps { bottom: 26px; right: -12px; color: var(--gold); }

/* ---------- Hero (subpages) ---------- */
.hero-subpage {
  background:
    radial-gradient(720px 300px at 90% -20%, rgba(217, 154, 43, 0.16), transparent 60%),
    linear-gradient(180deg, #fdf4ee, var(--bg));
  padding: 52px 0 56px; border-bottom: 1px solid var(--line);
}
.hero-subpage .hero-kicker { margin-bottom: 12px; }
.hero-subpage h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.hero-subpage .hero-tagline { max-width: 44em; margin-bottom: 0; }
.hero-subpage img.hero-art {
  margin-top: 28px; border-radius: 20px; box-shadow: var(--shadow);
  border: 6px solid var(--surface); max-height: 420px; object-fit: cover; width: 100%;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 800;
  color: var(--gold); margin-bottom: 8px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-intro { color: var(--muted); max-width: 46em; margin-bottom: 30px; }

/* ---------- Facts table ---------- */
.facts-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.fact-cell { background: var(--surface); padding: 16px 20px; }
.fact-cell dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.fact-cell dd { font-weight: 700; margin-top: 2px; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); border-top: 4px solid var(--accent);
}
.feature-card:nth-child(3n+2) { border-top-color: var(--gold); }
.feature-card:nth-child(3n) { border-top-color: var(--ink); }
.feature-icon {
  font-size: 1.7rem; line-height: 1; margin-bottom: 12px;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--accent-soft); border-radius: 14px;
}
.feature-card:nth-child(3n+2) .feature-icon { background: var(--gold-soft); }
.feature-card:nth-child(3n) .feature-icon { background: #efe9f7; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- About / prose ---------- */
.prose p { margin-bottom: 16px; color: var(--muted); }
.prose p strong { color: var(--ink); }
.prose h3 { margin: 26px 0 10px; font-size: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--muted); }
.prose li { margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gallery-item img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(30, 20, 45, 0.75));
  color: #fff; font-size: 0.82rem; font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(20, 12, 30, 0.9); place-items: center; padding: 20px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(960px, 94vw); max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; background: rgba(255, 255, 255, 0.15);
  color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
}
.lightbox-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #e9e2f2; font-size: 0.9rem; }

/* ---------- Quotes ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quote-card blockquote { color: var(--muted); font-size: 0.98rem; margin-bottom: 14px; }
.quote-card blockquote::before { content: "\201C"; font-size: 2.2rem; color: var(--gold); font-weight: 800; line-height: 0.6; display: block; margin-bottom: 8px; }
.quote-author { font-weight: 800; font-size: 0.88rem; color: var(--ink); }
.quote-author small { display: block; font-weight: 600; color: var(--muted); font-size: 0.78rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--ink) 0%, #4a3166 55%, var(--accent) 130%);
  border-radius: 22px; padding: 44px 40px; color: #fff; text-align: center;
  display: grid; gap: 8px; justify-items: center;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.cta-banner p { color: #d9cfe6; max-width: 34em; margin-bottom: 14px; }

/* ---------- Subpage content layouts ---------- */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.content-grid .prose { grid-column: 1 / -1; }
.media-block { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.media-block img { width: 100%; }
.media-block figcaption { padding: 10px 14px; font-size: 0.82rem; color: var(--muted); background: var(--surface); }

.heroes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); }
.hero-card h3 { font-size: 1.05rem; }
.hero-card .hero-role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 800; margin-bottom: 8px; }
.hero-card p { color: var(--muted); font-size: 0.95rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-wrap table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table-wrap th { background: var(--ink); color: #fff; text-align: left; padding: 12px 16px; font-size: 0.85rem; letter-spacing: 0.04em; }
.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.table-wrap tr:nth-child(even) td { background: #faf6f2; }

.faq-list { max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-size: 1.02rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 700; transition: transform 0.2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 26px; margin-top: 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.copyright { color: var(--muted); font-size: 0.85rem; }
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lang-switch a {
  color: var(--ink); text-decoration: none; font-size: 0.82rem; font-weight: 700;
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; background: var(--bg);
}
.lang-switch a:hover { background: var(--accent-soft); color: var(--accent); }
.lang-switch a.lang-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav .btn-play { text-align: center; margin-top: 6px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 44px 0 52px; }
  .stat-dpc { left: 8px; }
  .stat-dps { right: 8px; }
  .facts-wrap { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .heroes-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-banner { padding: 34px 22px; }
}
