:root {
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f1;
  --card: #fff;
  --border: #23321422;
  --text: #182016;
  --muted: #60695b;
  --soft: #607d1510;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f7f1;
    --card: #fff;
    --border: #23321422;
    --text: #182016;
    --muted: #60695b;
    --soft: #607d1510;
  }
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #83ad35;
  outline-offset: 5px;
}
.page { max-width: 1120px; padding: 0 48px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.header { display: flex; justify-content: space-between; align-items: center; min-height: 124px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 28px; font-weight: 750; letter-spacing: -1.6px; }
.brand > span { display: flex; }
.brand-dot { color: var(--accent); font-size: 8px; margin: 3px 0 0 4px; }
.theme-toggle { border: 1px solid var(--border); border-radius: 100px; background: var(--card); color: var(--muted); min-height: 44px; padding: 8px 16px; font-size: 12px; }
main { flex: 1; display: grid; align-items: center; padding: 45px 0 80px; }
.welcome { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 112px); align-items: center; }
.eyebrow, .entry-caption, .guide-heading { font-size: 10px; font-weight: 650; letter-spacing: 1.8px; }
.eyebrow { color: var(--muted); }
h1 { font-size: clamp(38px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -2.6px; font-weight: 700; margin: 18px 0 22px; }
h1 > span { color: var(--muted); }
.description { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 32px; }
.entry-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; padding: 28px; background: var(--accent); color: #162000; }
.entry-caption { opacity: .7; font-size: 9px; }
.entry-card h2 { position: relative; margin: 14px 0 10px; font-size: 25px; letter-spacing: -.9px; line-height: 1.2; }
.entry-card p { position: relative; margin: 0 0 24px; font-size: 13px; line-height: 1.65; }
.telegram-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 17px; border-radius: 14px; background: #162000; color: #f3f5ef; font-size: 14px; font-weight: 650; }
.telegram-button:hover { background: #25331b; }
.telegram-button svg { flex-shrink: 0; width: 20px; height: 20px; fill: currentColor; }
.button-arrow { margin-left: auto; font-size: 20px; font-weight: 400; }
.telegram-unavailable { width: 100%; margin-top: 12px; border: 0; background: #b42332; color: #fff; font-family: inherit; cursor: pointer; justify-content: flex-start; text-align: left; }
.telegram-unavailable:hover { background: #941c29; }
.telegram-unavailable:active { background: #7b1722; }
.telegram-unavailable:focus-visible { outline: 3px solid #162000; outline-offset: 3px; }
.telegram-unavailable svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.telegram-unavailable .question-dot { fill: currentColor; stroke: none; }
.entry-card small { position: relative; display: block; margin-top: 12px; font-size: 10px; text-align: center; }
.orb { position: absolute; z-index: -1; width: 160px; height: 160px; right: -48px; top: -30px; border: 1px solid #16200012; border-radius: 50%; box-shadow: 0 0 0 20px #16200005, 0 0 0 43px #16200004; transform: rotate(-25deg); }
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border: 1px solid #16200012; border-radius: 50%; transform: scaleX(.4); }
.orb::after { transform: scaleY(.4); }
.telegram-help { margin-top: 18px; }
.telegram-help summary { width: fit-content; padding: 8px 0; min-height: 44px; cursor: pointer; font-size: 12px; color: var(--muted); }
.help-content { font-size: 12px; color: var(--muted); }
.help-content p { margin: 4px 0 12px; }
.bot-address { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.bot-address a { color: var(--text); overflow-wrap: anywhere; }
.bot-address button { margin-left: auto; background: transparent; border: 0; color: var(--muted); min-height: 44px; font-size: 11px; padding: 8px 0 8px 8px; }
.copy-status:not(:empty) { margin-top: 8px; }
.guide { border-top: 1px solid var(--border); padding-top: 26px; }
.guide-heading { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; letter-spacing: 1.1px; }
.small-dot { width: 5px; height: 5px; flex-shrink: 0; background: var(--accent); border-radius: 50%; }
.guide > h2 { font-size: 33px; line-height: 1.2; font-weight: 600; letter-spacing: -1.1px; margin: 25px 0 34px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 27px; }
.steps li { display: flex; gap: 18px; }
.step-number { font-size: 11px; color: var(--muted); line-height: 23px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 14px; font-weight: 600; margin: 0 0 5px; }
.steps p { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 0; }
.guide-note { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--border); margin-top: 30px; padding-top: 22px; color: var(--muted); }
.guide-note > span { font-size: 24px; color: var(--accent); }
.guide-note p { font-size: 11px; line-height: 1.7; margin: 0; }
footer { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 10px; padding: 22px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
footer > span:first-child { display: flex; align-items: flex-start; gap: 3px; color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: -.5px; }
.footer-dot { color: var(--accent); font-size: 5px; margin-top: 2px; }
@media (max-width: 740px) {
  .page { max-width: 500px; padding: 0 24px; }
  .header { min-height: 92px; padding-top: env(safe-area-inset-top); }
  .brand { font-size: 24px; }
  .brand img { width: 34px; height: 34px; }
  main { padding: 28px 0 44px; }
  .welcome { grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: 43px; letter-spacing: -2px; }
  .description { font-size: 14px; margin-bottom: 26px; }
  .entry-card { padding: 24px; }
  .entry-card h2 { font-size: 24px; }
  .guide > h2 { font-size: 27px; margin: 22px 0 28px; }
  .guide > h2 br { display: none; }
  .guide-heading { font-size: 8px; }
}
@media (max-width: 360px) {
  .page { padding: 0 18px; }
  h1 { font-size: 38px; }
  .entry-card { padding: 20px; }
  .entry-card h2 { font-size: 22px; }
  .telegram-button { font-size: 12px; padding: 13px; }
  .wide-only { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .telegram-button, .theme-toggle { transition: background .15s ease; }
}
