@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/GolosText-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101011;
  --surface: #171719;
  --ink: #f7f3ee;
  --muted: #aaa6a2;
  --line: #313033;
  --accent: #ff7845;
  --display: "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, sans-serif;
  --mono: Consolas, monospace;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --section-space: 6rem;
  --hero-dot-tail: 3.25rem;
  --motion: 200ms;
  --reveal-time: 1100ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; font-style: normal; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); font-synthesis: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
[hidden]:not([hidden="until-found" i]), dialog:not([open]) { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(100% - 6rem, 75rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: .75rem; left: 1rem; background: var(--ink); color: var(--bg); padding: .65rem 1rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid #252527; }
.header-inner { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.brand { display: inline-flex; align-items: center; white-space: nowrap; font: 700 1.28rem/1 var(--display); letter-spacing: -.025em; }
.brand > span:last-child { color: var(--accent); }
.nav, .header-actions, .hero-actions { display: flex; align-items: center; }
.nav { gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a { color: var(--muted); font-size: .925rem; white-space: nowrap; transition: color 150ms; }
.nav a:hover { color: var(--ink); }
.header-actions { gap: .65rem; }
.button { display: inline-flex; justify-content: center; align-items: center; text-align: center; min-height: 3rem; padding: .75rem 1rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.25; transition: background var(--motion), border-color var(--motion); }
.header-actions .button { min-height: 2.75rem; padding: .5rem .75rem; font-size: .88rem; white-space: nowrap; }
.login-button:hover { background: var(--surface); }
.primary { background: var(--accent); color: #1c110d; border-color: var(--accent); }
.primary:hover { background: #ff936c; border-color: #ff936c; }
.secondary { border-color: #403d3e; background: #161617; }
.secondary:hover { background: #242325; border-color: #656064; }

.hero-region { position: relative; isolation: isolate; padding-bottom: var(--hero-dot-tail); --dot-spacing: 25px; }
.hero-dots {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, #d1906652 1px, transparent 1.2px) 0 0 / var(--dot-spacing) var(--dot-spacing);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 63%, #000a calc(100% - var(--hero-dot-tail)), transparent);
}
.hero-dots[data-drawn] { background: none; }
.hero { display: grid; justify-items: center; text-align: center; padding-block: clamp(3.1rem, 6vw, 4.35rem) 1.25rem; }
.hero-copy { width: 100%; max-width: 64rem; min-width: 0; }
.hero h1 { font: 700 clamp(2.2rem, 5.7vw, 4.55rem)/1.08 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.lede { max-width: 37rem; margin: 1.35rem auto 1.6rem; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.hero-actions { justify-content: center; gap: .65rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: min(100%, 36rem);
  height: clamp(6.5rem, 16vw, 10.75rem);
  margin-top: 1rem;
}
#hero-word { display: block; grid-area: 1 / 1; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.hero-word-fallback { display: grid; grid-area: 1 / 1; place-items: center; font: 700 clamp(2.5rem, 9vw, 6rem)/1 var(--display); letter-spacing: -.065em; pointer-events: none; }
.has-hero-word .hero-word-fallback { visibility: hidden; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: #141415e8; }
.stat { display: flex; align-items: center; gap: .95rem; min-width: 0; padding: 1.6rem 1.75rem 1.85rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong, .stat div span { display: block; }
.stat strong { font: 700 clamp(1.6rem, 3.3vw, 2.45rem)/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.035em; white-space: nowrap; }
.stat div span { color: var(--muted); font-size: .875rem; margin-top: .25rem; }
.stat-icon { display: grid; flex: none; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid #513127; border-radius: 6px; color: var(--accent); background: #261b18; }
.stat-icon i { display: block; position: relative; }
.person-icon { width: 15px; height: 7px; border: 1px solid; border-radius: 8px 8px 2px 2px; margin-top: 9px; }
.person-icon::before { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid; border-radius: 50%; top: -9px; left: 3px; }
.target-icon { width: 16px; height: 16px; border: 1px solid; border-radius: 50%; }
.target-icon::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid; }
.server-icon { width: 16px; height: 16px; border: 1px solid; border-radius: 2px; }
.server-icon::before { content: ""; position: absolute; inset: 4px 0; border-block: 1px solid; }

.section { padding-top: var(--section-space); scroll-margin-top: var(--space-2); }
[data-reveal-pending]:not(:focus-within) { opacity: 0; }
.section-heading { margin-bottom: 1.65rem; }
.about { padding-top: calc(var(--section-space) - var(--hero-dot-tail)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem 3rem; }
.about .section-heading { margin: 0; }
.about-copy { max-width: 34rem; color: var(--muted); }
.about-copy p + p { margin-top: .85rem; }
.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.section-heading h2 { font: 700 clamp(1.75rem, 3.4vw, 2.75rem)/1.15 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.section-heading p { color: var(--muted); max-width: 25rem; }
.dashboard { background: #141416; border: 1px solid #3b393c; border-radius: 10px; overflow: hidden; }
.window-bar { display: flex; align-items: center; justify-content: space-between; min-height: 3.1rem; gap: .65rem; padding: .6rem 1.05rem; border-bottom: 1px solid var(--line); background: #1b1b1d; }
.window-lights { display: flex; gap: .32rem; }
.window-lights i { width: .45rem; height: .45rem; background: #777174; border-radius: 50%; }
.window-lights i:first-child { background: #c06d50; }
.window-address { color: var(--muted); font: .83rem/1.25 var(--mono); text-align: center; }
.dashboard-layout { display: grid; grid-template-columns: minmax(11rem, 19%) 1fr; min-height: 24rem; }
.dashboard-nav { padding: 1.05rem .7rem; border-right: 1px solid var(--line); }
.dashboard-brand { display: flex; align-items: center; margin: .3rem .45rem 1.25rem; font-weight: 700; font-size: .93rem; }
.dashboard-nav button { display: block; min-height: 2.75rem; width: 100%; margin-bottom: .28rem; text-align: left; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 5px; padding: .5rem .65rem; font-size: .9375rem; }
.dashboard-nav button:hover { background: var(--surface); }
.dashboard-nav button[aria-selected="true"] { border-color: #57362b; color: #ffad8d; background: #2c201c; }
.dashboard-body { min-width: 0; padding: 1.45rem; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; gap: .5rem; }
.dashboard-heading h3 { font: 700 1.48rem/1.2 var(--display); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.dashboard-metrics > div, .chart-wrap { padding: .78rem .85rem; background: #1b1b1d; border: 1px solid #302e31; border-radius: 6px; }
.dashboard-metrics small { display: block; color: var(--muted); font-size: .79rem; }
.dashboard-metrics strong { display: block; font: 700 1.55rem/1.2 var(--display); margin-top: .28rem; }
.chart-wrap { margin-top: .6rem; }
.chart-heading, .chart-axis { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.chart-heading strong { font-size: .925rem; }
.chart-heading span, .chart-axis { color: var(--muted); font-size: .75rem; }
.chart { position: relative; height: 7.8rem; margin-top: .6rem; background: repeating-linear-gradient(to top, #333034 0 1px, transparent 1px 25%); }
.chart::before, .chart::after { content: ""; position: absolute; inset: 0; }
.chart::before { background: linear-gradient(#ff784569, #ff784507); transform: translateY(2px); clip-path: polygon(0 82%,5% 74%,10% 79%,15% 60%,21% 66%,27% 51%,32% 61%,37% 48%,42% 54%,47% 33%,52% 39%,57% 60%,62% 46%,67% 53%,72% 28%,77% 34%,82% 20%,88% 38%,94% 27%,100% 14%,100% 100%,0 100%); }
.chart::after { background: var(--accent); clip-path: polygon(0 82%,5% 74%,10% 79%,15% 60%,21% 66%,27% 51%,32% 61%,37% 48%,42% 54%,47% 33%,52% 39%,57% 60%,62% 46%,67% 53%,72% 28%,77% 34%,82% 20%,88% 38%,94% 27%,100% 14%,100% 16%,94% 29%,88% 40%,82% 22%,77% 36%,72% 30%,67% 55%,62% 48%,57% 62%,52% 41%,47% 35%,42% 56%,37% 50%,32% 63%,27% 53%,21% 68%,15% 62%,10% 81%,5% 76%,0 84%); }
.chart-axis { margin-top: .35rem; }
.preview-table { width: 100%; border-collapse: collapse; font-size: .875rem; table-layout: fixed; }
.preview-table th, .preview-table td { overflow-wrap: anywhere; padding: .76rem .55rem; text-align: left; border-bottom: 1px solid var(--line); }
.preview-table th { color: var(--muted); font-weight: 700; }

.pricing-grid, .addon-grid, .review-grid { display: grid; gap: .85rem; }
.pricing-grid, .addon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan, .addon { padding: 1.45rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; }
.plan-discount { margin-top: -.5rem; margin-bottom: .6rem; color: var(--accent); font-size: .8rem; }
.plan.featured { border-color: #a45032; background: linear-gradient(155deg,#291d1a,#171719 57%); }
.plan h3, .addon h3 { font: 700 1.22rem/1.25 var(--display); }
.price { display: flex; align-items: baseline; gap: .4rem; margin-top: .8rem; flex-wrap: wrap; }
.price strong { font: 700 clamp(1.75rem, 3vw, 2.65rem)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.price span, .plan li, .addon p { color: var(--muted); }
.plan ul { display: grid; gap: .45rem; padding: 1.05rem 0 0; margin: 1.15rem 0 1.55rem; list-style: none; border-top: 1px solid var(--line); width: 100%; }
.plan li { display: flex; gap: .55rem; font-size: .92rem; }
.plan li::before { content: "✓"; color: var(--accent); }
.plan .button { width: 100%; margin-top: auto; }
.addon-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.addon-icon {
  position: absolute;
  top: 50%;
  left: -2.6rem;
  transform: translateY(-50%);
  color: #ff966b;
  font: 400 clamp(7.8rem, 12vw, 10.5rem)/1 "Segoe UI Symbol", system-ui, sans-serif;
  opacity: .135;
  transition: opacity var(--motion);
}
.addon:hover .addon-icon, .addon:focus-visible .addon-icon { opacity: .21; }
.addon p { margin-top: .55rem; }
.addon { display: flex; flex-direction: column; min-height: 11.5rem; color: var(--ink); text-decoration: none; }
.addon-link { margin-top: auto; padding-top: var(--space-3); color: #ffad8d; font-size: .875rem; }
.addon:focus-visible::before { opacity: 1; }
.review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.review blockquote { font-size: 1.125rem; line-height: 1.6; }
.review figcaption { margin-top: auto; }
.review-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; color: var(--ink); }
.review-by { display: grid; gap: .22rem; line-height: 1.25; }
.review-by small { color: #ffad8d; font-size: .82rem; }
.review-link:hover small, .review-link:focus-visible small { text-decoration: underline; }
.site-footer { margin-top: 6rem; background: #141415; border-top: 1px solid var(--line); }
.footer-inner { padding-block: 2.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.footer-inner h2 { font: 700 clamp(1.15rem, 2.5vw, 1.6rem)/1.25 var(--display); }
.footer-inner h2 span { color: var(--accent); }
.footer-inner p { margin-top: .35rem; color: var(--muted); }
.footer-end { padding-block: 1.3rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

dialog { position: fixed; color: var(--ink); background: #191719; width: min(25rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow-y: auto; padding: var(--space-3); border-radius: 12px; border: 1px solid #65534b; box-shadow: 0 24px 80px #000b, 0 -8px 48px #ff78450c; }
dialog::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #ff784500, var(--accent), #ff784500); }
dialog::backdrop { background: #09080bce; backdrop-filter: blur(6px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-1); gap: var(--space-2); }
.dialog-context { color: #d7c9bf; font-size: .875rem; }
.close-dialog { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; color: var(--ink); background: transparent; border: 1px solid #786c66; border-radius: 6px; font-size: 1.5rem; line-height: 1; }
.close-dialog:hover { border-color: var(--accent); background: #302322; }
dialog h2 { font: 700 1.75rem/1.2 var(--display); letter-spacing: -.03em; }
.auth-plan { color: #ffac8c; margin-top: var(--space-1); font-size: .875rem; }
#auth-form { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
#auth-form label { display: grid; gap: var(--space-1); font-size: .875rem; }
#auth-form input { width: 100%; min-width: 0; min-height: 2.75rem; padding: .75rem; border-radius: 6px; border: 1px solid #786c66; color: var(--ink); background: var(--bg); font-size: 1rem; line-height: 1.25; }
#auth-form input::placeholder { color: var(--muted); opacity: 1; }
#auth-form input[aria-invalid="true"] { border-color: var(--accent); }
#auth-submit { width: 100%; }
.form-hint { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.field-error { color: #ffb59c; font-size: .875rem; line-height: 1.5; }
.auth-separator { display: flex; align-items: center; gap: .75rem; color: var(--muted); margin-block: var(--space-2); font-size: .8125rem; }
.auth-separator::before, .auth-separator::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-providers { display: flex; justify-content: center; gap: .75rem; }
.provider-button { display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid #786c66; border-radius: 8px; background: #211e20; color: var(--ink); transition: background var(--motion), border-color var(--motion); }
.provider-button:hover { background: #332624; border-color: var(--accent); }
.local-art { display: grid; place-items: center; flex: none; overflow: clip; background: #272426; color: var(--ink); font-weight: 700; }
.local-art > * { grid-area: 1 / 1; }
.local-art.has-image .asset-fallback { display: none; }
.provider-art { width: 1.5rem; height: 1.5rem; border-radius: 0; background: transparent; font-size: .75rem; }
.provider-art img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.review-avatar { width: 2.5rem; height: 2.5rem; border-radius: 4px; }
.review-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.auth-result { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid #81523e; color: #f1c0aa; font-size: .875rem; line-height: 1.5; }
.auth-result:focus { outline-offset: 4px; }
.text-button { display: block; min-height: 2.75rem; color: #ffac8c; background: transparent; padding: .5rem 0; border: 0; text-align: center; line-height: 1.5; font-size: .875rem; }
.text-button:hover { text-decoration: underline; }
#auth-switch { width: 100%; margin-top: var(--space-2); border-top: 1px solid var(--line); padding-top: var(--space-2); }
.source-link { display: inline-flex; align-items: center; min-height: 2.75rem; width: fit-content; color: #ffad8d; text-decoration: underline; text-underline-offset: 4px; }
.source-link:hover { color: var(--ink); }

.od-stat, .od-field { display: grid; gap: .25rem; }
.od-stat > *, .od-field > * { display: block; min-width: 0; }
.section-heading > *, .dashboard-heading > * { min-width: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.price span { white-space: nowrap; }
.dashboard-metrics strong { white-space: nowrap; }
.addon { position: relative; isolation: isolate; transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 300ms var(--ease); }
.addon::before { content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none; border: 1px solid var(--accent); border-radius: inherit; box-shadow: 0 0 16px #ff78452b, 0 8px 32px #ff78451f; opacity: 0; transition: opacity 300ms var(--ease); }
.addon-grid { perspective: 1000px; }
@media (hover: hover) and (pointer: fine) {
  .addon[data-tilting]::before { opacity: 1; }
}

@media (max-width: 65rem) {
  .shell { width: calc(100% - 4rem); }
  .header-inner { gap: 1rem; }
  .nav { gap: 1rem; }
  .stat { padding-inline: 1rem; }
}

@media (max-width: 52rem) {
  .shell { width: calc(100% - 3rem); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 0 1rem; padding-block: .35rem .12rem; }
  .header-actions { margin-left: auto; }
  .nav { order: 1; width: 100%; gap: 1.4rem; }
  .nav a { min-height: 2.35rem; }
  .stat { gap: .55rem; }
  .stat-icon { width: 2rem; height: 2rem; }
  .section { --section-space: 4.3rem; }
  .plan, .addon { padding: 1rem; }
}

@media (max-width: 40rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { gap: 0 .45rem; }
  .header-inner .brand { font-size: 1.1rem; }
  .header-actions { gap: .25rem; }
  .header-actions .button { padding-inline: .45rem; }
  .header-register { display: none; }
  .nav { justify-content: space-between; gap: .4rem; }
  .hero { padding-block: 2.3rem .85rem; }
  .hero h1 { font-size: clamp(2.1rem, 7.4vw, 3.2rem); }
  .lede { margin-block: 1.05rem 1.25rem; }
  .about { grid-template-columns: 1fr; }
  .stats { margin-top: var(--space-2); }
  .stat { flex-direction: column; align-items: flex-start; padding: .85rem .5rem .8rem .72rem; }
  .stat strong { font-size: clamp(1.16rem, 5.4vw, 1.78rem); }
  .stat div span { font-size: clamp(.75rem, 3.25vw, .875rem); line-height: 1.25; }
  .section { --section-space: 3.4rem; }
  .split { display: grid; gap: .65rem; }
  .section-heading { margin-bottom: 1rem; }
  .window-bar { padding-inline: .6rem; gap: .3rem; }
  .window-address { font-size: .75rem; }
  .dashboard-layout { display: block; min-height: 21rem; }
  .dashboard-nav { display: flex; padding: .55rem; gap: .25rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-brand { display: none; }
  .dashboard-nav button { text-align: center; padding: .45rem .2rem; margin: 0; }
  .dashboard-body { padding: .85rem .6rem; }
  .dashboard-heading h3 { font-size: 1.26rem; }
  .dashboard-metrics { gap: .3rem; }
  .dashboard-metrics > div { padding: .45rem .34rem; }
  .dashboard-metrics small { line-height: 1.2; }
  .preview-table td, .preview-table th { padding-inline: .28rem; }
  .pricing-grid, .addon-grid, .review-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1.55rem; }
  .site-footer { margin-top: 3.5rem; }
}


@media (max-width: 40rem) {
  .dashboard-heading { flex-wrap: wrap; }
  .dashboard-metrics small { font-size: .75rem; line-height: 1.5; min-height: 2.25rem; }
  .window-bar { flex-wrap: wrap; justify-content: flex-start; }
  .window-address { flex: 1; }
  .window-lights { display: none; }
  .chart-heading { align-items: flex-start; flex-direction: column; }
  .footer-end { flex-wrap: wrap; }
  .plan, .addon { padding: var(--space-3); }
  dialog { padding: 1.25rem; }
  .dialog-top .brand { font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .addon { transform: none !important; }
  [data-reveal-pending]:not(:focus-within) { opacity: 1; }
}

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