:root {
  --bg: #07140f;
  --panel: #0c1f17;
  --panel-2: #10281d;
  --gold: #e8c66a;
  --gold-soft: #f3dfa2;
  --ink: #e7efe9;
  --muted: #9fb7a8;
  --line: rgba(224, 190, 96, 0.22);
  --danger: #ffb4a8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(38, 92, 67, 0.28), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(224, 190, 96, 0.08), transparent 36%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.65;
}

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

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

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(4, 9, 6, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--gold);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 70px 0 34px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0.05em;
  margin: 0 0 18px;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.lead {
  font-size: 18px;
  color: #cfe0d6;
  max-width: 600px;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(90deg, #c79f45, var(--gold) 55%, #fff1b8);
  color: #1a1405;
  box-shadow: 0 10px 30px rgba(224, 190, 96, 0.18);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--gold);
  background: rgba(7, 20, 15, 0.55);
}

.table-art {
  position: relative;
  aspect-ratio: 1.55;
  border-radius: 22px;
  border: 11px solid #3f2a16;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.07), transparent 34%),
    radial-gradient(circle at 50% 50%, #1d6b49 0%, #0d3f2b 62%, #08291d 100%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 3px rgba(224, 190, 96, 0.18),
    inset 0 0 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.table-art::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(224, 190, 96, 0.16);
  border-radius: 14px;
  pointer-events: none;
}

.ball {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -4px -6px 12px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.35);
}

.ball.b1 { left: 18%; top: 24%; background: radial-gradient(circle at 32% 28%, #fff, #e8d27a 40%, #b58a1f); }
.ball.b2 { left: 48%; top: 36%; background: radial-gradient(circle at 32% 28%, #fff, #7fb4ff 40%, #1d4f9e); }
.ball.b3 { left: 32%; top: 62%; background: radial-gradient(circle at 32% 28%, #fff, #ff9a86 40%, #a52d22); }
.ball.cue { left: 70%; top: 55%; background: radial-gradient(circle at 32% 28%, #fff, #ffffff 55%, #cfd8d2); }

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 34px 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(16, 40, 29, 0.94), rgba(8, 22, 16, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.card:hover { transform: translateY(-3px); border-color: var(--line); }
.card .tag { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.card h3 { margin: 0; font-size: 20px; color: var(--gold-soft); font-family: Georgia, serif; }
.card p { margin: 0; font-size: 13px; color: var(--muted); }
.card a { margin-top: auto; font-size: 13px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 0 48px;
}

.feature {
  padding: 14px 16px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.feature b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }

.doc {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.doc h1 { font-size: clamp(38px, 6vw, 58px); }
.doc h2 { color: var(--gold); font-size: 24px; margin: 30px 0 10px; }
.doc h3 { color: var(--gold-soft); font-size: 18px; margin: 22px 0 8px; }
.doc p, .doc li { color: #d6e2da; font-size: 15px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 5px 0; }

.lang-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lang-nav a {
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-section { padding-top: 10px; }
.lang-section + .lang-section { margin-top: 38px; border-top: 1px solid rgba(255, 255, 255, 0.07); }

.note {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(224, 190, 96, 0.07);
  border: 1px solid var(--line);
  color: #e8dcc0;
  font-size: 14px;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

footer nav { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 46px; }
  .mode-grid, .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nav { display: none; }
  .mode-grid, .features { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
}
