:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #eef4ff;
  --text: #101828;
  --muted: #667085;
  --line: #d9e2ef;
  --brand: #1359ff;
  --brand-strong: #073fcc;
  --accent: #0fa3b1;
  --ok: #0f9f6e;
  --warn: #b7791f;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(19, 89, 255, .16), transparent 30rem),
    radial-gradient(circle at 80% 10%, rgba(15, 163, 177, .12), transparent 28rem),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.65; margin: 0; }
ul { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.9; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 12px; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 30; }
.skip-link:focus { left: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: rgba(246, 248, 251, .80); border-bottom: 1px solid rgba(217, 226, 239, .75); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; color: #fff; font-weight: 900; letter-spacing: -.04em; background: linear-gradient(145deg, var(--brand), var(--accent)); box-shadow: 0 12px 28px rgba(19, 89, 255, .24); }
.brand-text { display: grid; gap: 2px; }
.brand-text strong { font-size: 15px; }
.brand-text small { color: var(--muted); font-size: 12px; }
.top-nav { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 650; font-size: 14px; }
.top-nav a { padding: 10px 12px; border-radius: 999px; }
.top-nav a:hover { color: var(--text); background: rgba(19, 89, 255, .08); }
.nav-pill { color: #fff !important; background: var(--text) !important; }
.hero-section { padding: 76px 0 54px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); gap: 34px; align-items: center; }
.hero-copy h1 { margin: 14px 0 18px; font-size: clamp(38px, 5vw, 66px); line-height: .98; letter-spacing: -.055em; max-width: 820px; }
.hero-copy p { font-size: 18px; max-width: 680px; }
.eyebrow { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(19, 89, 255, .16); border-radius: 999px; color: var(--brand-strong); background: rgba(19, 89, 255, .07); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 18px 30px rgba(19, 89, 255, .22); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--text); }
.download-panel { background: rgba(255,255,255,.86); border: 1px solid rgba(217, 226, 239, .95); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.panel-head strong { display: block; font-size: 18px; margin-bottom: 5px; }
.panel-head span:not(.status-dot) { color: var(--muted); font-size: 14px; line-height: 1.45; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 10px; background: rgba(15, 159, 110, .11); color: var(--ok); font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.download-form label { display: block; font-weight: 800; margin-bottom: 9px; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.input-row input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; outline: none; font: inherit; background: #fff; }
.input-row input:focus { border-color: rgba(19, 89, 255, .55); box-shadow: 0 0 0 4px rgba(19, 89, 255, .10); }
.input-row button { min-height: 54px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--text); color: #fff; font-weight: 850; cursor: pointer; }
.input-row button:hover { background: #000; }
.form-hint { margin-top: 10px; font-size: 13px; }
.mock-result { margin-top: 16px; border-radius: 16px; background: var(--surface-strong); border: 1px solid rgba(19, 89, 255, .13); padding: 14px; }
.mock-result strong { display: block; margin-bottom: 4px; }
.platform-section, .how-section, .faq-section { padding: 56px 0; }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.section-title.align-left { text-align: left; margin: 0; }
.section-title h2 { margin: 14px 0 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -.04em; }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.platform-card { position: relative; min-height: 190px; display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: var(--radius-md); background: rgba(255,255,255,.82); border: 1px solid rgba(217, 226, 239, .95); box-shadow: 0 10px 30px rgba(16, 24, 40, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.platform-card:hover, .platform-card.is-active { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(19, 89, 255, .26); }
.platform-icon { width: 52px; height: 52px; border-radius: 18px; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--text), #344054); font-weight: 950; text-transform: uppercase; }
.platform-body { display: grid; gap: 8px; }
.platform-body strong { font-size: 20px; }
.platform-body small { color: var(--muted); line-height: 1.5; }
.platform-state { position: absolute; right: 16px; top: 16px; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 850; }
.platform-state.on { background: rgba(15, 159, 110, .1); color: var(--ok); }
.platform-state.off { background: rgba(183, 121, 31, .11); color: var(--warn); }
.steps-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.steps-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.steps-list article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.steps-list span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 13px; background: rgba(19, 89, 255, .09); color: var(--brand); font-weight: 900; margin-bottom: 14px; }
.steps-list h3 { margin: 0 0 8px; }
.faq-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 28px; align-items: start; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 850; }
details p { margin-top: 10px; }
.site-footer { padding: 42px 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.58); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; }
.footer-brand { font-weight: 950; margin-bottom: 8px; }
.site-footer h3 { margin: 0 0 10px; font-size: 15px; }
.state-page { min-height: 58vh; display: grid; align-items: center; padding: 70px 0; }
.state-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.state-card h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.05em; margin: 14px 0 12px; }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .download-panel { max-width: 760px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid, .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { height: auto; padding: 14px 0; align-items: flex-start; }
  .brand-text small { display: none; }
  .top-nav { overflow-x: auto; max-width: 58vw; padding-bottom: 3px; justify-content: flex-start; }
  .top-nav a { white-space: nowrap; padding: 9px 10px; }
  .hero-section { padding: 42px 0 36px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy p { font-size: 16px; }
  .download-panel { padding: 18px; border-radius: 22px; }
  .panel-head { flex-direction: column; }
  .input-row { grid-template-columns: 1fr; }
  .input-row button, .input-row input { width: 100%; }
  .platform-grid, .steps-list, .footer-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: auto; }
  .platform-section, .how-section, .faq-section { padding: 40px 0; }
}
@media (max-width: 390px) {
  .hero-copy h1 { font-size: 34px; }
  .brand-mark { width: 38px; height: 38px; }
  .top-nav { max-width: 52vw; }
}

/* Build02/Build04/Build10 resolver result states */
.result-card { display: grid; gap: 14px; }
.result-card.is-loading { background: rgba(19, 89, 255, .08); border-color: rgba(19, 89, 255, .18); }
.result-card.is-success { background: rgba(15, 159, 110, .08); border-color: rgba(15, 159, 110, .20); }
.result-card.is-warning { background: rgba(183, 121, 31, .10); border-color: rgba(183, 121, 31, .22); }
.result-card.is-error { background: rgba(180, 35, 24, .08); border-color: rgba(180, 35, 24, .20); }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.result-head strong { display: block; margin-bottom: 4px; }
.result-head span { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; background: rgba(255,255,255,.72); border: 1px solid rgba(16,24,40,.08); color: var(--text); font-size: 12px; font-weight: 900; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-grid > div, .normalized-url, .next-card { border: 1px solid rgba(16,24,40,.08); background: rgba(255,255,255,.70); border-radius: 14px; padding: 12px; min-width: 0; }
.result-grid small, .normalized-url small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.result-grid b { font-size: 14px; }
.normalized-url code { display: block; overflow-wrap: anywhere; white-space: normal; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; color: var(--text); font-size: 12px; }
.next-card strong { display: block; margin-bottom: 5px; }
.input-row button:disabled { opacity: .68; cursor: wait; }
@media (max-width: 720px) {
  .result-head { flex-direction: column; }
  .result-grid { grid-template-columns: 1fr; }
}

/* Build03/Build10 public media preview + download job states */
.media-list { display: grid; gap: 14px; }
.media-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: stretch; border: 1px solid rgba(16,24,40,.08); background: rgba(255,255,255,.72); border-radius: 18px; padding: 12px; }
.media-thumb { border-radius: 15px; overflow: hidden; min-height: 126px; background: rgba(19,89,255,.08); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.media-type { border-radius: 999px; padding: 5px 9px; background: rgba(19,89,255,.09); color: var(--brand); font-size: 12px; font-weight: 900; }
.media-body h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.media-body p { margin: 0; font-size: 13px; color: var(--muted); }
.media-download-btn { min-height: 40px; margin-top: 4px; }
.next-card code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .media-card { grid-template-columns: 1fr; }
  .media-thumb { min-height: 190px; }
  .media-download-btn { width: 100%; }
}

/* Build10 restricted/source-paste flow */
.restricted-card { gap: 18px; }
.restricted-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.restricted-steps article { border: 1px solid rgba(16,24,40,.08); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.72); display: grid; gap: 5px; }
.restricted-steps b { font-size: 12px; color: var(--brand-strong); text-transform: uppercase; letter-spacing: .06em; }
.restricted-steps span { font-weight: 800; color: var(--text); font-size: 13px; }
.restricted-source-row { display: grid; gap: 9px; }
.restricted-source-row label, .consent-line { font-weight: 800; color: var(--text); }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.copy-row input, .restricted-source-row textarea { width: 100%; border: 1px solid rgba(16,24,40,.12); border-radius: 16px; background: rgba(255,255,255,.88); color: var(--text); font: inherit; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.copy-row input { padding: 12px 13px; min-width: 0; }
.restricted-source-row textarea { min-height: 220px; padding: 14px; resize: vertical; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; }
.copy-row input:focus, .restricted-source-row textarea:focus { border-color: rgba(19,89,255,.42); box-shadow: 0 0 0 4px rgba(19,89,255,.08); }
.consent-line { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.consent-line input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.restricted-actions { display: flex; justify-content: flex-end; }
.session-bound-note { padding: 12px; border-radius: 14px; background: rgba(183,121,31,.10); border: 1px solid rgba(183,121,31,.20); display: grid; gap: 4px; }
.session-bound-note p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .restricted-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .copy-row { grid-template-columns: 1fr; }
  .restricted-actions { justify-content: stretch; }
  .restricted-actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  .restricted-steps { grid-template-columns: 1fr; }
  .restricted-source-row textarea { min-height: 260px; font-size: 12px; }
}

.telegram-guide-section { padding: 76px 0; background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
.telegram-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.guide-card { border: 1px solid rgba(15, 23, 42, .1); background: rgba(255,255,255,.92); border-radius: 28px; padding: 28px; box-shadow: 0 18px 45px rgba(15, 23, 42, .08); }
.guide-card h2 { margin: 10px 0 12px; font-size: clamp(1.45rem, 2vw, 2rem); }
.guide-card p { color: #526071; line-height: 1.7; }
.guide-card ol { margin: 18px 0 22px; padding-left: 20px; color: #334155; line-height: 1.75; }
.guide-card code { background: #eef4ff; border-radius: 8px; padding: 2px 6px; }
@media (max-width: 820px) { .telegram-guide-grid { grid-template-columns: 1fr; } .guide-card { padding: 22px; border-radius: 22px; } }

/* Build10 SEO + provider expansion polish */
.seo-hero .media-chip-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 0}
.media-chip-row span{display:inline-flex;align-items:center;border:1px solid rgba(15,23,42,.12);background:rgba(255,255,255,.72);border-radius:999px;padding:.42rem .72rem;font-size:.82rem;color:#334155}
.notice-card{margin-top:1rem;border:1px solid rgba(245,158,11,.28);background:linear-gradient(135deg,rgba(255,251,235,.9),rgba(255,255,255,.85));border-radius:18px;padding:1rem;color:#78350f}
.notice-card strong{display:block;margin-bottom:.28rem;color:#92400e}.notice-card p{margin:0;color:#78350f}.expanded-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.platform-state.off{background:#f1f5f9;color:#475569;border:1px solid rgba(100,116,139,.2)}
@media (max-width:1100px){.expanded-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.expanded-grid{grid-template-columns:1fr}.seo-hero .media-chip-row{gap:.4rem}.media-chip-row span{font-size:.78rem}.top-nav a:not(.nav-pill){display:none}}

.pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}.pricing-card{background:rgba(255,255,255,.88);border:1px solid rgba(15,23,42,.1);border-radius:24px;padding:24px;box-shadow:0 18px 50px rgba(15,23,42,.08)}.pricing-card.is-featured{border-color:rgba(37,99,235,.45);box-shadow:0 22px 70px rgba(37,99,235,.16)}.pricing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.pricing-head span{font-weight:800;font-size:22px}.pricing-head strong{font-size:13px;color:#2563eb;text-align:right}.pricing-card ul{padding-left:18px;margin:18px 0;display:grid;gap:8px;color:#334155}.license-box{background:rgba(255,255,255,.9);border:1px solid rgba(15,23,42,.1);border-radius:24px;padding:20px;display:grid;gap:12px;box-shadow:0 18px 50px rgba(15,23,42,.08)}.license-box input[type=text]{width:100%;border:1px solid rgba(15,23,42,.16);border-radius:14px;padding:14px 16px;font-size:15px;background:#fff}.pricing-note code,.notice-card code{background:#eef2ff;border-radius:8px;padding:2px 6px}@media(max-width:980px){.pricing-grid{grid-template-columns:1fr}.pricing-head{display:block}.pricing-head strong{display:block;text-align:left;margin-top:6px}.license-box .input-row{grid-template-columns:1fr}.license-box .input-row button{width:100%}}

/* Build12 landing UX hotfix: dark mode + compact copy */
html[data-theme="dark"] {
  --bg: #07111f;
  --surface: #0d1728;
  --surface-strong: #111e33;
  --text: #eef4ff;
  --muted: #a8b3c7;
  --line: rgba(148, 163, 184, .22);
  --brand: #6ea8ff;
  --brand-strong: #9fc2ff;
  --accent: #31d0de;
  --ok: #4ade80;
  --warn: #fbbf24;
  --shadow: 0 22px 70px rgba(0, 0, 0, .38);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(76, 120, 255, .22), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(49, 208, 222, .14), transparent 28rem),
    var(--bg);
}
.theme-toggle {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
html[data-theme="dark"] .theme-toggle { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .site-header { background: rgba(7, 17, 31, .82); border-bottom-color: var(--line); }
html[data-theme="dark"] .download-panel,
html[data-theme="dark"] .platform-card,
html[data-theme="dark"] .steps-list article,
html[data-theme="dark"] details,
html[data-theme="dark"] .state-card,
html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .pricing-card,
html[data-theme="dark"] .license-box {
  background: rgba(13, 23, 40, .86);
  border-color: var(--line);
}
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .input-row input,
html[data-theme="dark"] .license-box input[type=text],
html[data-theme="dark"] .copy-row input,
html[data-theme="dark"] .restricted-source-row textarea {
  background: rgba(255,255,255,.08);
  border-color: var(--line);
  color: var(--text);
}
html[data-theme="dark"] .input-row input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: rgba(238,244,255,.52); }
html[data-theme="dark"] .input-row button { background: #eef4ff; color: #07111f; }
html[data-theme="dark"] .mock-result,
html[data-theme="dark"] .result-grid > div,
html[data-theme="dark"] .normalized-url,
html[data-theme="dark"] .next-card,
html[data-theme="dark"] .media-card,
html[data-theme="dark"] .restricted-steps article,
html[data-theme="dark"] .media-chip-row span,
html[data-theme="dark"] .result-head span {
  background: rgba(255,255,255,.07);
  border-color: var(--line);
}
html[data-theme="dark"] .site-footer { background: rgba(7,17,31,.72); border-top-color: var(--line); }
html[data-theme="dark"] .notice-card { background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.28); color: #fde68a; }
html[data-theme="dark"] .notice-card strong,
html[data-theme="dark"] .notice-card p { color: #fde68a; }
.platform-section, .how-section, .faq-section { padding: 42px 0; }
.steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-copy p, .section-title p, .panel-head span:not(.status-dot), .platform-body small { line-height: 1.55; }
@media (max-width: 900px) { .steps-list { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .theme-toggle { padding: 9px 10px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-actions .btn { width: 100%; }
}
