:root {
  color-scheme: light;
  --bg: #FFFAF5;
  --surface: #FFFFFF;
  --surface-2: #FFF1E6;
  --border: #F0D9C6;
  --text: #1C1210;
  --muted: #6B5B50;
  --accent: #C2410C;
  --accent-btn: #EA580C;
  --accent-hover: #9A3412;
  --accent-press: #7C2D12;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(234, 88, 12, .10);
  --ring: #EA580C;
  --success: #166534;
  --warning: #854D0E;
  --danger: #B91C1C;
  --glass: rgba(255, 250, 245, .88);
  --shadow: 0 6px 24px rgba(194, 65, 12, .10);
  --accent-gradient: linear-gradient(135deg, #FF9142, #FF6A00);
  --glow: radial-gradient(60% 50% at 80% 0%, rgba(255, 122, 26, .18), transparent);
  --glow-opacity: .5;
  --radius-button: 12px;
  --radius-card: 16px;
  --radius-panel: 24px;
  --ease: 250ms ease-out;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  font-family: Inter, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F0D0C;
    --surface: #1A1614;
    --surface-2: #231D1A;
    --border: #3A302A;
    --text: #FAF7F4;
    --muted: #B7A99E;
    --accent: #FF7A1A;
    --accent-btn: #FF7A1A;
    --accent-hover: #FF9142;
    --accent-press: #E8620A;
    --on-accent: #1A0E05;
    --accent-soft: rgba(255, 122, 26, .14);
    --ring: #FFB27A;
    --success: #4ADE80;
    --warning: #FBBF24;
    --danger: #F87171;
    --glass: rgba(15, 13, 12, .88);
    --shadow: 0 8px 32px rgba(0, 0, 0, .45);
    --glow-opacity: 1;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F0D0C;
  --surface: #1A1614;
  --surface-2: #231D1A;
  --border: #3A302A;
  --text: #FAF7F4;
  --muted: #B7A99E;
  --accent: #FF7A1A;
  --accent-btn: #FF7A1A;
  --accent-hover: #FF9142;
  --accent-press: #E8620A;
  --on-accent: #1A0E05;
  --accent-soft: rgba(255, 122, 26, .14);
  --ring: #FFB27A;
  --success: #4ADE80;
  --warning: #FBBF24;
  --danger: #F87171;
  --glass: rgba(15, 13, 12, .88);
  --shadow: 0 8px 32px rgba(0, 0, 0, .45);
  --glow-opacity: 1;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 112px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }
h1, h2 { letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 18px; }
p { text-wrap: pretty; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 72px; }
.eyebrow { margin-bottom: 16px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.icon { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-small { width: 20px; height: 20px; flex-basis: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius-button); background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center; transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.button:hover { background: var(--accent-hover); box-shadow: 0 4px 24px var(--accent-soft); transform: translateY(-1px); }
.button:active { background: var(--accent-press); transform: translateY(0); }
.button-small { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.button-outline { color: var(--text); background: transparent; border-color: var(--border); }
.button-outline:hover, .button-outline:active { background: var(--accent-soft); border-color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 30; transform: translateY(-180%); padding: 12px 20px; border-radius: var(--radius-button); background: var(--surface); color: var(--text); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--glass); border-bottom: 1px solid var(--border); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.brand img { width: 44px; height: 44px; flex: 0 0 44px; }
.brand-marketplace { display: block; }
.header-nav { display: flex; gap: 24px; margin-left: auto; }
.header-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: none; }
.header-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-button); background: transparent; color: var(--text); cursor: pointer; transition: background var(--ease); }
.theme-toggle:hover { background: var(--accent-soft); }
.theme-toggle[data-current-theme="light"] .sun-icon, .theme-toggle[data-current-theme="dark"] .moon-icon { display: none; }

.hero-wrap { position: relative; isolation: isolate; }
/* Keep the light-theme accent above 4.5:1 even at the brightest point. */
.hero-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--glow); opacity: var(--glow-opacity); }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-block: 72px; }
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1 { max-width: 660px; font-size: clamp(48px, 5.3vw, 64px); line-height: 1.06; font-weight: 750; }
h1 span { display: block; color: var(--accent); }
.hero-description { max-width: 530px; margin-top: 24px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 12px; }
.hero-art { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.hero-art::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: var(--accent-soft); filter: blur(48px); }
.radar { position: relative; width: 100%; height: auto; overflow: visible; color: var(--accent); }
.radar-grid { color: var(--border); }
.radar-orbit { transform-origin: 240px 240px; animation: orbit 48s linear infinite; }
.radar-core { fill: var(--surface); stroke: var(--border); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .15)); }
.radar-shield { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@keyframes orbit { to { transform: rotate(360deg); } }

.bento-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
.bento-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 176px; padding: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); transition: border-color var(--ease); }
.bento-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.bento-card h2 { position: relative; z-index: 1; min-width: 0; overflow-wrap: anywhere; font-size: 24px; line-height: 1.2; }
.bento-card > .icon { color: var(--accent); }
.bento-brand { grid-column: span 5; grid-row: span 2; min-height: 368px; padding: 32px; background: radial-gradient(ellipse at bottom right, var(--accent-soft), transparent 75%), var(--surface); }
.bento-brand h2 { max-width: 280px; font-size: 32px; }
.bento-brand > .icon { margin-bottom: auto; }
.bento-emblem { position: absolute; width: 230px; height: 230px; right: -28px; top: 40px; color: var(--accent); opacity: .13; transform: rotate(12deg); }
.bento-browser { grid-column: span 7; flex-direction: row; align-items: center; gap: 24px; }
.bento-browser h2 { max-width: 250px; }
.browser-art { width: 156px; height: 112px; flex: 0 1 156px; color: var(--accent); }
.bento-private { grid-column: span 4; }
.bento-telegram { grid-column: span 3; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.section-heading > p { color: var(--muted); font-size: 16px; }
.section-heading > p { max-width: 520px; }
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.audience-card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.audience-card h3 { margin-bottom: 12px; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.audience-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 1024px) { .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .audience-grid { grid-template-columns: minmax(0, 1fr); } }
.pricing-line-title { margin-top: 32px; overflow-wrap: anywhere; }
.pricing-line-description { margin: 8px 0 16px; color: var(--muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.plan-title { min-height: 64px; }
.plan h3, .plan h4 { font-size: 18px; }
.plan-price { margin-top: 24px; font-family: var(--font-mono); font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 24px; font-weight: 500; }
.monthly-price { margin-top: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.plan .button { width: 100%; padding-inline: 8px; margin-top: 32px; font-size: 14px; gap: 8px; }
.plan-featured { border-color: var(--accent); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface); box-shadow: 0 0 32px var(--accent-soft); }
.plan-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--accent); font-size: 12px; font-weight: 650; }
.plan-badge .icon { width: 20px; height: 20px; flex-basis: 20px; }
.pricing-note { margin-top: 16px; color: var(--muted); font-size: 12px; }
.pricing-info { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; margin-top: 32px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.pricing-info > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-content: start; }
.info-icon { display: grid; place-items: center; width: 44px; height: 44px; grid-row: span 3; border-radius: var(--radius-button); background: var(--accent-soft); color: var(--accent); }
.pricing-info h3 { padding-top: 8px; }
.pricing-info p { grid-column: 2; margin-top: 12px; color: var(--muted); font-size: 14px; }
.pricing-info .text-link { grid-column: 2; margin-top: 8px; }

.faq-section { display: grid; grid-template-columns: 1fr 1.8fr; gap: 72px; border-top: 1px solid var(--border); }
.faq-heading > p:last-child { margin-top: 24px; color: var(--muted); font-size: 14px; }
.faq-heading a, .faq-answer a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
.faq-list { min-width: 0; }
details { border-bottom: 1px solid var(--border); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-block: 24px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 650; line-height: 1.5; }
summary::-webkit-details-marker { display: none; }
summary .icon { color: var(--accent); transition: transform var(--ease); }
details[open] summary .icon { transform: rotate(45deg); }
summary:hover { color: var(--accent); }
.faq-answer { padding: 0 32px 24px 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

.site-footer { padding-block: 48px 24px; border-top: 1px solid var(--border); background: var(--surface); font-size: 12px; }
.footer-main { display: grid; grid-template-columns: 1.15fr 1fr 1.2fr; gap: 32px; }
.footer-name { margin-bottom: 16px; color: var(--text); font-size: 16px; font-weight: 700; }
.footer-company { color: var(--muted); }
.footer-label { margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.footer-contacts a, .footer-documents a { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; min-height: 44px; padding-block: 8px; color: var(--muted); overflow-wrap: anywhere; }
.footer-disclaimer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); }

/* Content remains visible if JavaScript or IntersectionObserver is unavailable. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity var(--ease), transform var(--ease); }
  .reveal-pending:not(:focus-within) { opacity: 0; transform: translateY(16px); }
}

@media (max-width: 1000px) {
  .header-inner { gap: 24px; }
  .header-nav { gap: 16px; }
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  h1 { font-size: 48px; }
  .hero-description { font-size: 16px; }
  .bento-brand { grid-column: span 6; }
  .bento-browser { grid-column: span 6; }
  .bento-browser h2 { font-size: 24px; }
  .browser-art { width: 100px; flex-basis: 100px; }
  .bento-private, .bento-telegram { grid-column: span 3; }
  .bento-private h2, .bento-telegram h2 { font-size: 18px; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-title { min-height: 60px; }
  .pricing-info { gap: 32px; }
  .faq-section { gap: 32px; grid-template-columns: 1fr 1.5fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-documents { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 32px; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 80px; gap: 16px; justify-content: space-between; }
  .header-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 48px 32px; gap: 0; }
  h1 { max-width: 600px; font-size: clamp(44px, 7.8vw, 64px); }
  .hero-art { width: min(100%, 400px); justify-self: center; margin-top: 16px; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-brand { grid-column: 1 / -1; grid-row: auto; min-height: 240px; }
  .bento-brand h2 { max-width: 300px; }
  .bento-emblem { top: -16px; right: 0; }
  .bento-browser { grid-column: 1 / -1; min-height: 156px; }
  .browser-art { flex-basis: 156px; }
  .bento-private, .bento-telegram { grid-column: span 1; min-height: 176px; }
  .section { padding-block: 48px; }
  .section-heading { align-items: start; flex-direction: column; gap: 24px; }
  .pricing-info { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .faq-section { grid-template-columns: 1fr; gap: 24px; }
  .faq-heading > p:last-child { margin-top: 16px; }
}

@media (max-width: 540px) {
  html { scroll-padding-top: 140px; }
  .container { width: calc(100% - 32px); }
  .header-inner { display: grid; grid-template-columns: 1fr 44px; gap: 8px 12px; padding-block: 12px; }
  .brand { font-size: 14px; }
  .header-actions { display: contents; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .header-cta { grid-column: 1 / -1; min-height: 44px; padding-block: 8px; }
  .hero { padding-top: 32px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: .03em; }
  h1 { font-size: clamp(40px, 11.7vw, 56px); }
  .hero-description { margin-top: 24px; }
  .hero-actions { margin-top: 24px; gap: 8px; }
  .hero-actions .button { width: 100%; padding-inline: 12px; }
  .hero-actions .text-link { gap: 8px; font-size: 14px; }
  .hero-note { margin-top: 12px; }
  .hero-art { width: min(100%, 340px); margin-top: 8px; }
  .bento-grid { gap: 12px; padding-bottom: 0; }
  .bento-card { padding: 24px; }
  .bento-brand { min-height: 232px; }
  .bento-brand h2 { max-width: 250px; }
  .bento-browser { gap: 12px; }
  .bento-browser h2 { font-size: 24px; }
  .browser-art { flex-basis: 88px; width: 88px; }
  .bento-private, .bento-telegram { padding: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 12px; }
  .plan-title { grid-row: span 2; min-height: 0; padding-top: 4px; }
  .plan-price { margin-top: 0; text-align: right; }
  .monthly-price { grid-column: 2; margin-top: 0; text-align: right; }
  .plan .button { grid-column: 1 / -1; margin-top: 16px; }
  .plan-badge { max-width: 116px; font-size: 12px; line-height: 1.4; }
  .pricing-info { padding: 24px 16px; }
  .pricing-info > div { column-gap: 12px; }
  .pricing-info h3 { padding-top: 0; line-height: 1.35; }
  .pricing-info .text-link { gap: 8px; }
  summary { font-size: 16px; gap: 16px; }
  .faq-answer { padding-right: 0; }
  .site-footer { padding-top: 32px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-documents { display: block; }
}

@media (max-width: 360px) {
  .bento-grid { grid-template-columns: minmax(0, 1fr); }
  .bento-card { grid-column: 1 / -1; overflow: visible; overflow-wrap: anywhere; }
  .bento-emblem { width: 180px; height: 180px; top: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .button, .theme-toggle, .info-icon { border: 1px solid ButtonText; }
  .plan-featured { outline: 2px solid Highlight; }
  :focus-visible { outline-color: Highlight; }
  .hero-art, .bento-emblem, .browser-art { display: none; }
}
