:root {
  color-scheme: dark;
  --page: #111110;
  --surface: #1a1918;
  --raised: #242321;
  --ink: #f1eee8;
  --muted: #bdb7ad;
  --line: #363330;
  --accent: #ffbf00;
  --wash: #382819;
  --on-accent: #201305;
  --radius: 20px;
  font: 16px/1.65 Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 30px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; inset: 8px auto auto 8px; z-index: 2; padding: 8px 12px; background: var(--raised); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); background: var(--surface); }
.masthead-inner, .footer-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 16px; font-weight: 800; line-height: 1.2; }
.brand img { object-fit: contain; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .03em; }
.nav { display: flex; gap: clamp(15px, 3vw, 33px); margin-inline-start: auto; }
.nav a, .footer nav a { color: var(--muted); font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"], .footer nav a:hover { color: var(--accent); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 9px; font-size: 15px; font-weight: 750; white-space: nowrap; }
.button-outline { min-height: 39px; padding: 7px 13px; border-color: var(--line); background: var(--raised); font-size: 14px; }
.button-outline:hover { border-color: #94672e; background: var(--wash); color: var(--accent); }
.button-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 15px #ffbf001c; }
.button-primary:hover { background: #ffd14b; }
.site-actions { display: flex; align-items: center; justify-content: end; min-width: 0; gap: 8px; }
.site-actions > button { min-height: 39px; padding: 7px 13px; font-size: 14px; cursor: pointer; }
.site-profile { position: relative; min-width: 0; }
.site-profile summary { display: flex; align-items: center; gap: 7px; padding: 5px 8px 5px 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); cursor: pointer; list-style: none; }
.site-profile summary::-webkit-details-marker { display: none; }
.site-profile summary:hover, .site-profile[open] summary { border-color: #926634; }
.site-avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--wash); color: var(--accent); font-size: 15px; font-weight: 750; }
.site-avatar > * { grid-area: 1 / 1; }
.site-avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-profile-info { min-width: 0; line-height: 1.2; }
.site-profile-name { display: block; max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 750; }
.site-profile-meta { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; white-space: nowrap; }
.site-role { padding: 1px 4px; border-radius: 4px; background: var(--wash); color: var(--accent); }
#site-balance { overflow: hidden; text-overflow: ellipsis; }
.site-profile-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 2; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.site-profile-menu button { cursor: pointer; }
.site-dialog { width: min(416px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink); }
.site-dialog::backdrop { background: #080807b3; }
.site-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.site-dialog h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.site-dialog p { margin: 12px 0; color: var(--muted); }
.site-dialog-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); cursor: pointer; font-size: 20px; line-height: 1; }
#site-login-dialog {
  --telegram-blue: #2aabee;
  border-color: #38688c;
  background: linear-gradient(155deg, #20384b, #172633 65%);
  color: #f2f8ff;
}
#site-login-dialog p { color: #bed4e5; }
#site-login-dialog .site-dialog-close { border-color: #38607c; background: #223b4d; }
#site-login-dialog :focus-visible { outline-color: var(--telegram-blue); }
.telegram-login-heading { display: flex; align-items: center; gap: 10px; }
.telegram-login-heading img { flex: none; }
.button-telegram { background: var(--telegram-blue); color: #081a24; cursor: pointer; }
.button-telegram:not(:disabled):hover { background: #56c0f3; }
.button-telegram:disabled { opacity: .55; cursor: default; }
.site-status:empty, .site-account-status:empty { display: none; }
.site-payment-options { display: flex; flex-wrap: wrap; gap: 8px; }
.site-payment-options button { cursor: pointer; }
.site-account-status { position: fixed; bottom: 12px; right: 12px; z-index: 2; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 13px; }
.text-link { display: inline-block; color: var(--accent); font-weight: 700; text-underline-offset: .24em; }
.text-link:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: center; gap: clamp(24px, 5vw, 66px); padding-block: clamp(60px, 8vw, 111px); }
.hero h1 { margin: 14px 0 19px; font-size: clamp(37px, 4.65vw, 66px); line-height: 1.17; letter-spacing: -.04em; font-weight: 850; }
.hero h1 span { color: var(--accent); }
.hero-copy > p { max-width: 29em; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin-top: 26px; }
.release-link { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 1px solid #694823; border-radius: 30px; color: #ffe2a3; background: var(--wash); font-size: 13px; font-weight: 700; white-space: nowrap; }
.release-link:hover { border-color: var(--accent); }
.release-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.release-version:empty { display: none; }
.showcase { min-width: 0; padding: 9px 9px 0; border: 1px solid #5b442d; border-radius: 19px; background: var(--surface); box-shadow: 0 20px 52px #0008, 0 0 36px #ffbf0012; }
.showcase-bar, .showcase-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.showcase-bar { padding: 3px 8px 10px; font-weight: 750; }
.showcase-kind { color: var(--muted); font-size: 12px; font-weight: 600; }
.showcase-stage { --glow: #77512a5c; display: grid; align-content: center; justify-items: center; gap: clamp(12px, 2.5vw, 24px); min-height: clamp(218px, 26vw, 330px); padding: 36px 19px; overflow: hidden; border: 1px solid #424037; border-radius: 11px; background: radial-gradient(ellipse at center, var(--glow), #131310bb 78%), conic-gradient(#343029 25%, #282620 0 50%, #343029 0 75%, #282620 0) 0 0 / 28px 28px; }
.showcase-stage[data-tone="ice"] { --glow: #43719a5e; }
.showcase-stage[data-tone="color"] { --glow: #723f885e; }
.preview-main { width: min(100%, 490px); transform: rotate(-5deg); filter: drop-shadow(0 12px 14px #0008); }
.preview-mini { width: 36%; max-width: 176px; justify-self: end; margin-inline-end: 10%; transform: rotate(6deg); filter: drop-shadow(0 10px 10px #0008); }
.showcase-stage img { width: 100%; height: auto; }
.showcase-tools { padding: 9px 6px; color: var(--muted); }
.tone-list { display: flex; gap: 5px; }
.tone-list button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 5px 9px; cursor: pointer; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); font-size: 13px; white-space: nowrap; }
.tone-list button[aria-pressed="true"] { border-color: #94672e; background: var(--wash); color: var(--accent); }
.tone-list button i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: linear-gradient(#ffe5a4, #b57c26); }
.tone-list [data-tone-choice="ice"] i { background: linear-gradient(#a3e2ff, #1451ab); }
.tone-list [data-tone-choice="color"] i { background: linear-gradient(140deg, #4898ff, #ea3ab1); }
.product { padding: 66px 0 50px; border-block: 1px solid var(--line); background: var(--surface); }
.section-intro :is(h1, h2) { margin: 0 0 8px; font-size: clamp(28px, 4.2vw, 43px); line-height: 1.25; letter-spacing: -.026em; }
.section-intro p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.feature { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); }
.feature-art { display: grid; place-items: center; min-height: 149px; padding: 17px; border-bottom: 1px solid var(--line); }
.feature-strip { background: radial-gradient(ellipse at center, #44311f, var(--page) 78%); }
.feature-strip img { width: min(92%, 420px); height: auto; }
.feature-single { display: flex; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(ellipse at center, #302a3a, var(--page) 78%); }
.feature-single img { object-fit: contain; width: 88px; height: 88px; }
.feature-copy { padding: 17px 20px 21px; }
.feature-copy h3, .workflow h3, .release-notes :is(h2, h3) { margin: 0 0 5px; font-size: 19px; line-height: 1.35; }
.feature-copy p { margin: 0; color: var(--muted); }
.workflow { margin-top: 33px; padding-top: 21px; border-top: 1px solid var(--line); }
.workflow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 12px 0 0; list-style: none; }
.workflow li { display: grid; gap: 2px; padding-inline-start: 12px; border-inline-start: 2px solid var(--accent); }
.workflow li span { color: var(--muted); }
.releases { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); gap: 35px; padding-block: 70px 73px; }
.releases .text-link { margin-top: 12px; }
.release-list { border-top: 1px solid var(--line); }
.release-empty { margin: 0; padding-block: 18px; color: var(--muted); }
.release-entry { display: grid; grid-template-columns: 99px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.release-meta { display: grid; justify-items: start; align-content: start; gap: 8px; }
.entry-version { background: var(--wash); border-radius: 6px; padding: 3px 8px; color: var(--accent); font-weight: 800; font-size: 14px; }
.release-meta time { color: var(--muted); font-size: 13px; }
.release-notes ul { padding-inline-start: 20px; margin: 9px 0 0; color: var(--muted); }
.release-notes li { margin-block: 4px; }
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { min-height: 85px; justify-content: space-between; }
.footer nav { display: flex; gap: 19px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 51px; }
  .showcase { max-width: 620px; }
  .preview-main { max-width: 410px; }
  .preview-mini { max-width: 150px; }
}
@media (max-width: 760px) {
  .masthead-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 9px; padding-top: 8px; }
  .masthead-inner > .nav { grid-column: 1 / -1; grid-row: 2; margin: 7px 0; }
  .site-actions { grid-column: 2; grid-row: 1; }
  .nav-open { display: none; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .nav { gap: 12px; }
  .site-actions { gap: 5px; }
  .site-actions > button { padding-inline: 6px; font-size: 12px; }
  .site-profile summary { gap: 4px; padding-inline: 3px 5px; }
  .site-avatar { flex-basis: 27px; width: 27px; height: 27px; }
  .site-profile-meta { gap: 3px; font-size: 10px; }
  .hero { padding-bottom: 46px; }
  .hero h1 { font-size: clamp(33px, 9vw, 48px); }
  .showcase-stage { min-height: 191px; padding-inline: 12px; }
  .showcase-tools { padding-inline: 2px; }
  .tone-list button { padding-inline: 6px; }
  .product { padding-block: 44px; }
  .feature-grid, .workflow ol, .releases { grid-template-columns: 1fr; }
  .releases { gap: 22px; padding-block: 43px 52px; }
  .release-entry { grid-template-columns: 77px minmax(0, 1fr); gap: 11px; }
  .footer-inner { align-items: start; flex-direction: column; gap: 15px; padding-block: 20px; }
}
