/* ── Detective Game Landing ───────────────────────────── */
:root {
  --bg: #1a1410;
  --card: #231a13;
  --border: #3d2e24;
  --text: #d4c5b2;
  --muted: #8b7355;
  --gold: #c4a97d;
  --accent: #7a9a6a;
  --danger: #b85450;
  --radius: 6px;
}

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

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

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

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Header ──────────────────────────────────────────── */
.header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.header .container {
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-size: 20px; color: var(--gold); letter-spacing: 3px;
  text-transform: uppercase;
}
.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
  padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; color: var(--muted); transition: all .2s;
}
.lang-switch a.active, .lang-switch a:hover {
  border-color: var(--gold); color: var(--gold); text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(196,169,125,.08) 0%, transparent 70%);
}
.hero h1 {
  font-size: 48px; font-weight: normal; color: var(--gold);
  letter-spacing: 4px; line-height: 1.2; margin-bottom: 16px;
}
.hero .tagline {
  font-size: 18px; color: var(--muted); font-style: italic; max-width: 520px;
  margin: 0 auto 32px;
}
.hero .cta {
  display: inline-block; padding: 14px 40px; font-size: 16px;
  border: 2px solid var(--gold); color: var(--gold); border-radius: var(--radius);
  letter-spacing: 1px; transition: all .2s;
}
.hero .cta:hover { background: var(--gold); color: var(--bg); text-decoration: none; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 64px 0; }
.section:nth-child(even) { background: var(--card); }
.section h2 {
  font-size: 28px; font-weight: normal; color: var(--gold);
  text-align: center; letter-spacing: 2px; margin-bottom: 12px;
}
.section .subtitle {
  text-align: center; color: var(--muted); font-style: italic;
  margin-bottom: 40px; font-size: 15px;
}

/* ── Chat Mockup ─────────────────────────────────────── */
.chat-demo {
  max-width: 520px; margin: 0 auto; background: #1a1410;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.chat-header {
  padding: 12px 16px; background: #1f1711; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--gold); letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.chat-header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; line-height: 1.6; }
.msg.narrator {
  align-self: flex-start; background: var(--card);
  border-left: 3px solid var(--gold);
}
.msg.player {
  align-self: flex-end; background: #2a1f18; border: 1px solid var(--border);
}
.msg .tag {
  font-size: 10px; color: var(--gold); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 4px;
}
.msg .time-tag {
  font-size: 10px; color: var(--muted); margin-top: 6px;
}

/* ── Features ────────────────────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-top: 16px;
}
.feature {
  background: #1a1410; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
}
.feature .icon { font-size: 32px; margin-bottom: 12px; }
.feature h3 {
  font-size: 17px; color: var(--gold); font-weight: normal;
  margin-bottom: 8px; letter-spacing: 1px;
}
.feature p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── How it works ────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 24px; max-width: 560px; margin: 0 auto; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: #1a1410; border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold); display: flex;
  align-items: center; justify-content: center; font-size: 18px;
}
.step h3 { font-size: 16px; color: var(--gold); font-weight: normal; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); }

/* ── Link section ────────────────────────────────────── */
.link-section {
  text-align: center; padding: 56px 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(196,169,125,.06) 0%, transparent 70%);
}
.link-section h2 { margin-bottom: 8px; }
.game-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 12px 32px; background: var(--gold); color: var(--bg);
  border-radius: var(--radius); font-size: 16px; letter-spacing: 1px;
  transition: opacity .2s;
}
.game-link:hover { opacity: .85; text-decoration: none; }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 32px 0;
  text-align: center; font-size: 13px; color: var(--muted);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; letter-spacing: 2px; }
  .hero { padding: 48px 0 36px; }
  .features { grid-template-columns: 1fr; }
  .chat-demo { max-width: 100%; }
}

@media (prefers-color-scheme: light) {
  /* Telegram users get dark anyway, but just in case */
  :root {
    --bg: #f5f0eb; --card: #ede6dd; --border: #d4c5b2;
    --text: #2a1f18; --muted: #6b5d4f;
  }
}
