:root {
  --onyx: #0E0A04;
  --bronze: #1D1507;
  --line: rgba(247, 220, 138, 0.16);
  --line-strong: rgba(247, 220, 138, 0.4);
  --gold-deep: #8E6B17;
  --gold: #D4AF37;
  --gold-light: #F7DC8A;
  --text: #FFF8E6;
  --muted: #CFC3A3;

  --display: "Cinzel", Georgia, serif;
  --body: "Hind Siliguri", system-ui, sans-serif;

  --wrap: 1080px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(80% 50% at 20% 0%, rgba(255, 226, 150, 0.22), rgba(255, 226, 150, 0) 70%),
    repeating-linear-gradient(45deg, rgba(247, 220, 138, 0.045) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(-45deg, rgba(247, 220, 138, 0.045) 0 1px, transparent 1px 140px),
    linear-gradient(180deg, #2E220A 0%, var(--bronze) 520px, var(--onyx) 1400px);
  background-color: var(--onyx);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

:lang(bn) body, body:lang(bn) { line-height: 1.75; }

img, svg { display: block; }

a { color: var(--gold-light); }
a:hover { color: #FFF1C2; }

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--onyx);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  color: var(--onyx);
}
.btn-gold:hover { color: var(--onyx); filter: brightness(1.06); }

.btn-ghost {
  background: rgba(14, 10, 4, 0.55);
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
}
.btn-ghost:hover { background: rgba(247, 220, 138, 0.08); }

.btn-small { min-height: 44px; padding: 0 16px; font-size: 16px; }
.btn-large { min-height: 60px; padding: 0 26px; font-size: 19px; }

/* ---------- Header ---------- */

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

.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-light); text-decoration: none; }
.brand-gem { width: 40px; height: 35px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }

.top-actions { display: flex; align-items: center; gap: 8px; }

.lang {
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.lang:hover { border-color: var(--gold); }

@media (max-width: 420px) {
  .brand-name { display: none; }
}

/* ---------- Invite banner ---------- */

.invite {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.1);
}
.invite-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.invite-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.invite-text p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.invite-code { display: flex; align-items: center; gap: 12px; }
.code {
  font-family: var(--body);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
}

/* ---------- Hero ---------- */

.hero { padding: 40px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero { padding: 72px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 6.4vw, 58px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--gold-light);
  max-width: 15ch;
}
:lang(bn) .hero h1 {
  font-family: var(--body);
  line-height: 1.3;
  max-width: 14em;
}

.lead { margin: 20px 0 0; font-size: 20px; color: var(--muted); max-width: 36em; }
.lead.small { font-size: 18px; margin-top: 12px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 520px) {
  .cta .btn { width: 100%; }
}

.meta { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

.notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(14, 10, 4, 0.6);
  font-size: 16px;
  color: var(--text);
  max-width: 34em;
}

.hero-phone {
  width: 100%;
  max-width: 340px;
  height: auto;
  justify-self: center;
}
@media (min-width: 880px) {
  .hero-phone { max-width: 440px; }
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; border-top: 1px solid var(--line); }

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  color: var(--gold-light);
}
:lang(bn) .section h2 { font-family: var(--body); }

.section h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; }
.section p { margin: 6px 0 0; color: var(--muted); max-width: 34em; }

/* Numbered steps: both lists are real sequences */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
@media (min-width: 800px) {
  .steps:not(.steps-tight) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 60px;
  min-height: 44px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--gold-light);
}
.steps-tight { gap: 18px; margin-top: 0; }
.steps-tight > li p { margin: 0; padding-top: 8px; color: var(--text); }

.install { display: grid; gap: 28px; }
@media (min-width: 880px) {
  .install { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
}

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid var(--line); }
.faq h2 { margin-bottom: 16px; }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 10px 0;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0 0 18px; }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  padding-block: clamp(36px, 8vw, 88px);
}
.legal h1 {
  margin: 0 0 16px;
  color: var(--gold-light);
  font: 700 clamp(32px, 6vw, 48px)/1.2 var(--display);
}
.legal h1:lang(bn) { font-family: var(--body); }
.legal h2 { margin: 32px 0 6px; color: var(--gold-light); font-size: 22px; }
.legal p, .legal ul { margin: 0; color: var(--muted); }
.legal ul { padding-inline-start: 24px; }
.legal ul + p { margin-top: 12px; }
.legal li + li { margin-top: 6px; }
.legal .js-support { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--gold-light); }
.foot-links a[aria-current="page"] { color: var(--gold-light); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

[hidden] { display: none !important; }
