:root {
    --bg: #15131f;
    --bg-soft: #1d1928;
    --panel: rgba(31, 28, 42, 0.9);
    --panel-strong: rgba(22, 20, 33, 0.96);
    --panel-muted: rgba(37, 33, 50, 0.84);
    --border: rgba(244, 239, 226, 0.16);
    --border-strong: rgba(244, 239, 226, 0.28);
    --text: #f4efe2;
    --text-soft: #c4bcab;
    --text-dim: #8e869c;
    --brand: #ee4b55;
    --gold: #f4b942;
    --silver: #d8deea;
    --teal: #1d8a8a;
    --blue: #3558d4;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.22);
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --coin-stack-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='22' viewBox='0 0 34 22'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(1 9)'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23FFD45C' stroke='%23C78311' stroke-width='1.4'/%3E%3Ccircle cx='5.4' cy='5.2' r='1.6' fill='%23FFF5BF' opacity='.95'/%3E%3Cpath d='M4 8h8' stroke='%23E6A626' stroke-width='1' stroke-linecap='round' opacity='.75'/%3E%3C/g%3E%3Cg transform='translate(11 1)'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23FFC83D' stroke='%23AF6806' stroke-width='1.4'/%3E%3Ccircle cx='5.4' cy='5.2' r='1.6' fill='%23FFF1A6' opacity='.95'/%3E%3Cpath d='M4 8h8' stroke='%23D18A13' stroke-width='1' stroke-linecap='round' opacity='.78'/%3E%3C/g%3E%3Cg transform='translate(18 8)'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23E6EBF4' stroke='%23939EAE' stroke-width='1.4'/%3E%3Ccircle cx='5.4' cy='5.2' r='1.6' fill='%23FFFFFF' opacity='.95'/%3E%3Cpath d='M4 8h8' stroke='%23A8B2C2' stroke-width='1' stroke-linecap='round' opacity='.8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 16%, rgba(238, 75, 85, 0.18), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(53, 88, 212, 0.16), transparent 24%),
        radial-gradient(circle at 58% 72%, rgba(29, 138, 138, 0.14), transparent 22%),
        linear-gradient(180deg, #171521 0%, #15131f 48%, #14111d 100%);
    color: var(--text);
    font: 16px/1.65 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0.36;
}

body::before {
    top: 148px;
    left: 4vw;
    width: 280px;
    height: 280px;
    border: 4px solid rgba(238, 75, 85, 0.34);
    border-radius: 999px;
    box-shadow: 0 0 0 52px rgba(244, 185, 66, 0.08);
}

body::after {
    right: -70px;
    top: 190px;
    width: 360px;
    height: 360px;
    background: linear-gradient(135deg, rgba(244, 185, 66, 0.2), rgba(238, 75, 85, 0.06));
    clip-path: polygon(15% 0%, 100% 34%, 66% 100%, 0% 70%);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
iframe {
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 40px;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.page-shell::before {
    left: 18%;
    top: 620px;
    width: 290px;
    height: 290px;
    background: rgba(244, 185, 66, 0.2);
    transform: rotate(18deg);
}

.page-shell::after {
    right: 2%;
    top: 540px;
    width: 300px;
    height: 420px;
    background: rgba(53, 88, 212, 0.22);
    clip-path: polygon(22% 0%, 100% 12%, 82% 100%, 0% 80%);
}

.surface {
    background: linear-gradient(180deg, rgba(34, 30, 46, 0.94), rgba(25, 22, 36, 0.94));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.site-main {
    display: grid;
    gap: 28px;
}

.topbar,
.site-footer {
    position: relative;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0 28px;
}

.topbar__brand,
.topbar__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar__meta {
    justify-content: flex-end;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-lockup__mark {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.62), transparent 18%),
        radial-gradient(circle at 74% 76%, rgba(255, 209, 107, 0.16), transparent 28%),
        linear-gradient(145deg, #0e6f78, #163f63);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px rgba(11, 76, 76, 0.44);
}

.brand-lockup__mark::before,
.brand-lockup__mark::after {
    content: "";
    position: absolute;
}

.brand-lockup__mark::before {
    left: 11px;
    bottom: 11px;
    width: 30px;
    height: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) left 0 bottom 0 / 5px 9px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) left 9px bottom 0 / 5px 14px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) left 18px bottom 0 / 5px 19px no-repeat,
        linear-gradient(140deg, transparent 43%, #ffd56a 44%, #ffd56a 58%, transparent 59%) left 8px top 3px / 18px 10px no-repeat,
        linear-gradient(45deg, transparent 40%, #ffd56a 41%, #ffd56a 60%, transparent 61%) right 0 top 0 / 10px 10px no-repeat;
    opacity: 0.98;
}

.brand-lockup__mark::after {
    right: 7px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.52), transparent 26%),
        linear-gradient(145deg, #ffd56a, #e9a928);
    box-shadow: inset 0 0 0 1px rgba(96, 62, 0, 0.18), 0 4px 10px rgba(233, 169, 40, 0.3);
}

.brand-lockup__title,
h1,
h2,
h3,
h4,
.price-line,
.hero-stat strong,
.metric-card strong,
.widget-mock__value,
.feed-card__value,
.report-teaser__value {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
}

.brand-lockup__title {
    display: block;
    font-size: 2.05rem;
    font-weight: 800;
    line-height: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--brand));
    box-shadow: 0 0 0 4px rgba(238, 75, 85, 0.12);
}

.brand-lockup .eyebrow::before,
.section-head .eyebrow::before,
.hero__copy > .eyebrow::before,
.form-panel__copy .eyebrow::before,
.report-summary > .eyebrow::before,
.report-visual .eyebrow::before,
.site-footer .eyebrow::before {
    display: none;
}

.brand-nav,
.lang-switch,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(25, 22, 36, 0.72);
}

.brand-nav {
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
}

.brand-nav__link,
.lang-switch__link,
.mini-pill {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);
    transition: 0.2s ease;
}

.brand-nav__link:hover,
.lang-switch__link:hover,
.lang-switch__link.is-active,
.mini-pill {
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.lang-switch__link.is-active {
    background: rgba(244, 239, 226, 0.1);
}

.theme-toggle {
    position: relative;
    gap: 0;
    min-width: 150px;
    padding: 4px;
    cursor: pointer;
    color: var(--text-soft);
}

.theme-toggle__option {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    padding: 10px 14px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
}

.theme-toggle__glider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(238, 75, 85, 0.92), rgba(244, 185, 66, 0.92));
    box-shadow: 0 10px 22px rgba(238, 75, 85, 0.2);
    transition: transform 0.22s ease;
}

html[data-theme="light"] .theme-toggle__glider {
    transform: translateX(100%);
    background: linear-gradient(135deg, rgba(13, 94, 86, 0.92), rgba(221, 178, 102, 0.92));
    box-shadow: 0 10px 22px rgba(13, 94, 86, 0.18);
}

.mini-pill {
    white-space: nowrap;
}

.mini-pill--count {
    flex: 0 0 auto;
}

.header-search {
    display: grid;
    grid-template-columns: minmax(180px, 240px) auto;
    gap: 10px;
    align-items: center;
}

.header-search input[type="text"] {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.header-search__button {
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(244, 239, 226, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.header-search__button:hover {
    border-color: rgba(244, 185, 66, 0.28);
    background: rgba(244, 185, 66, 0.08);
}

.hero,
.report-hero,
.widget-stage {
    display: grid;
    gap: 24px;
}

.hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
    align-items: start;
}

.hero__copy,
.form-panel,
.report-hero,
.widget-stage,
.site-footer,
.data-panel,
.story-card,
.showcase-card,
.feed-card {
    position: relative;
    overflow: hidden;
}

.hero__copy,
.form-panel,
.report-hero,
.widget-stage,
.site-footer {
    padding: 32px;
}

.hero__copy::before,
.form-panel::before,
.report-hero::before,
.widget-stage::before {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
    opacity: 0.44;
}

.hero__copy::before {
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    background: rgba(29, 138, 138, 0.13);
    border-radius: 32px;
    transform: rotate(18deg);
}

.form-panel::before {
    right: -36px;
    top: -20px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(244, 185, 66, 0.16), transparent 70%);
}

.report-hero::before {
    left: 50%;
    top: -44px;
    width: 180px;
    height: 180px;
    background: rgba(244, 185, 66, 0.12);
    transform: translateX(-50%) rotate(24deg);
}

.widget-stage::before {
    left: -40px;
    bottom: -48px;
    width: 180px;
    height: 180px;
    background: rgba(53, 88, 212, 0.14);
    border-radius: 28px;
    transform: rotate(18deg);
}

h1 {
    margin: 16px 0 18px;
    max-width: 10ch;
    font-size: clamp(3.15rem, 7vw, 5.75rem);
    line-height: 0.93;
    font-weight: 800;
}

h2 {
    margin: 0;
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    line-height: 1;
    font-weight: 800;
}

h3,
h4 {
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0;
}

.hero__lead,
.form-panel__lead,
.section-head p,
.story-card p,
.feed-card p,
.showcase-card p,
.site-footer p {
    color: var(--text-soft);
}

.hero__lead {
    max-width: 38rem;
    font-size: 1.08rem;
}

.hero-points,
.quick-list,
.benefit-list {
    display: grid;
    gap: 12px;
}

.hero-points {
    margin-top: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-point,
.quick-list__item,
.benefit-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
}

.hero-point__dot,
.quick-list__tick,
.benefit-list__icon {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--brand));
}

.benefit-list__icon {
    background: linear-gradient(135deg, var(--teal), var(--gold));
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    color: #fff8ea;
    background: linear-gradient(135deg, #ef4b55, #c93d46);
    box-shadow: 0 16px 36px rgba(238, 75, 85, 0.28);
}

.button--secondary {
    color: var(--text);
    border-color: rgba(244, 239, 226, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.button--ghost {
    color: var(--text-soft);
    border-color: rgba(244, 239, 226, 0.1);
    background: transparent;
}

.hero-stats,
.metric-grid {
    display: grid;
    gap: 14px;
}

.hero-stats {
    margin-top: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat,
.metric-card {
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.hero-stat strong,
.metric-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.hero-stat span,
.metric-card span {
    display: block;
    margin-top: 8px;
    color: var(--text-dim);
}

.form-panel {
    display: grid;
    gap: 22px;
}

.form-panel__copy {
    display: grid;
    gap: 10px;
}

.estimator-form {
    display: grid;
    gap: 12px;
}

.form-label {
    font-weight: 700;
}

.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 17px 18px;
    border: 1px solid rgba(244, 239, 226, 0.14);
    border-radius: 18px;
    background: rgba(15, 13, 23, 0.56);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: var(--text-dim);
}

input[type="text"]:focus,
textarea:focus {
    border-color: rgba(244, 185, 66, 0.52);
    box-shadow: 0 0 0 4px rgba(244, 185, 66, 0.09);
    background: rgba(18, 16, 28, 0.82);
}

.status {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.status--error {
    color: #ff9aa1;
}

.report-teaser,
.featured-widget {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(17, 15, 25, 0.9);
}

.report-teaser__label,
.widget-stage__badge,
.featured-widget__note span,
.story-card__label,
.showcase-card__eyebrow,
.feed-card__eyebrow {
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.report-teaser strong,
.featured-widget__copy p,
.showcase-card__domain,
.feed-card__domain {
    font-size: 1.18rem;
    font-weight: 700;
}

.report-teaser__value {
    font-size: clamp(2.15rem, 4vw, 3.2rem);
    line-height: 1;
}

.mini-toplist__value,
.feed-card__value,
.report-teaser__value,
.leaderboard-row__score strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mini-toplist__value::before,
.feed-card__value::before,
.report-teaser__value::before,
.leaderboard-row__score strong::before {
    content: "";
    flex: 0 0 auto;
    width: 26px;
    height: 18px;
    background: center / contain no-repeat var(--coin-stack-icon);
    filter: drop-shadow(0 4px 8px rgba(233, 169, 40, 0.16));
}

.report-teaser__chips,
.featured-widget__note,
.showcase-card__foot,
.feed-card__meta,
.widget-mock__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-teaser__chips span,
.featured-widget__note strong,
.showcase-card__foot span,
.feed-card__meta span,
.widget-mock__meta span,
.action-chip {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    font-size: 0.92rem;
}

.featured-widget__copy {
    display: grid;
    gap: 8px;
}

.featured-widget__frame {
    display: flex;
    justify-content: center;
    padding: 16px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(29, 138, 138, 0.2), rgba(238, 75, 85, 0.08)),
        rgba(12, 11, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-widget__frame iframe {
    border-radius: 14px;
}

.mini-toplist {
    display: grid;
    gap: 10px;
    padding: 14px 14px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(14, 12, 21, 0.82);
}

.mini-toplist__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-toplist__head span,
.mini-toplist__head a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mini-toplist__head span {
    color: var(--text);
}

.mini-toplist__head a {
    color: var(--text-dim);
}

.mini-toplist__tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-toplist__tab {
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.mini-toplist__tab.is-active {
    background: rgba(244, 239, 226, 0.1);
    color: var(--text);
}

.mini-toplist__table {
    display: grid;
}

.mini-toplist__row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 40px;
    padding: 5px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-toplist__row:last-child {
    border-bottom: 0;
}

.mini-toplist__row:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(2px);
}

.mini-toplist__place {
    font: 800 1.1rem/1 Georgia, "Times New Roman", serif;
    letter-spacing: -0.04em;
    color: rgba(244, 239, 226, 0.46);
}

.mini-toplist__row:nth-child(1) .mini-toplist__place,
.mini-toplist__row:nth-child(1) .mini-toplist__value {
    color: var(--brand);
}

.mini-toplist__row:nth-child(2) .mini-toplist__place,
.mini-toplist__row:nth-child(2) .mini-toplist__value {
    color: var(--gold);
}

.mini-toplist__row:nth-child(3) .mini-toplist__place,
.mini-toplist__row:nth-child(3) .mini-toplist__value {
    color: #29b8b2;
}

.mini-toplist__domain,
.mini-toplist__value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-toplist__domain {
    font-weight: 700;
    color: var(--text);
}

.mini-toplist__value {
    font-weight: 700;
    color: rgba(244, 239, 226, 0.82);
}

.mini-toplist__row.tone--gold .mini-toplist__domain {
    color: #f4d38a;
}

.mini-toplist__row.tone--brand .mini-toplist__domain {
    color: #ff9aa1;
}

.mini-toplist__row.tone--ink .mini-toplist__domain {
    color: #cfd5f6;
}

.section-block {
    display: grid;
    gap: 22px;
    scroll-margin-top: 24px;
}

.discovery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 18px;
}

.discovery-grid--search-only {
    grid-template-columns: minmax(0, 820px);
}

.section-head {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.section-head--compact {
    max-width: 820px;
}

.section-head--compact h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.02;
}

.leaderboard-panel,
.archive-panel {
    padding: 28px;
}

.leaderboard-panel,
.archive-panel,
.archive-result {
    position: relative;
    overflow: hidden;
}

.leaderboard-panel__head,
.archive-panel__copy {
    display: grid;
    gap: 8px;
}

.leaderboard-panel__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
}

.leaderboard-panel__eyebrow,
.archive-panel__eyebrow,
.archive-results__label {
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.leaderboard-panel__text,
.archive-panel__copy p {
    color: var(--text-soft);
}

.leaderboard-panel__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 54px;
    padding: 0 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(238, 75, 85, 0.18), rgba(244, 185, 66, 0.2));
    border: 1px solid rgba(244, 239, 226, 0.14);
    font: 700 1.1rem/1 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.leaderboard-table,
.archive-results {
    display: grid;
    gap: 12px;
}

.leaderboard-row,
.archive-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(14, 12, 21, 0.74);
}

.leaderboard-row {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.leaderboard-row:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
}

.leaderboard-row__place {
    min-width: 2.4ch;
    font: 800 clamp(1.9rem, 3vw, 2.6rem)/1 Georgia, "Times New Roman", serif;
    letter-spacing: -0.04em;
}

.leaderboard-row:nth-child(1) .leaderboard-row__place {
    color: var(--brand);
}

.leaderboard-row:nth-child(2) .leaderboard-row__place {
    color: var(--gold);
}

.leaderboard-row:nth-child(3) .leaderboard-row__place {
    color: var(--teal);
}

.leaderboard-row__main,
.leaderboard-row__score,
.archive-result__main,
.archive-result__actions,
.archive-search,
.archive-search__row,
.archive-suggestions,
.archive-result__meta {
    display: grid;
}

.leaderboard-row__main,
.archive-result__main {
    gap: 8px;
    min-width: 0;
}

.leaderboard-row__main strong,
.archive-result__main strong {
    font-size: 1.12rem;
    line-height: 1.15;
    word-break: break-word;
}

.leaderboard-row__meta,
.archive-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leaderboard-row__meta span,
.archive-result__meta span,
.archive-suggestion,
.archive-link {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-soft);
    font-size: 0.88rem;
}

.leaderboard-row__score {
    justify-items: end;
    gap: 8px;
    text-align: right;
}

.leaderboard-row__score strong {
    font-size: 1.3rem;
    line-height: 1;
}

.archive-panel {
    display: grid;
    align-content: start;
    gap: 18px;
}

.archive-search {
    gap: 12px;
}

.archive-search__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.archive-results__label {
    margin-bottom: 2px;
}

.archive-result {
    grid-template-columns: minmax(0, 1fr) auto;
}

.archive-result__actions {
    gap: 10px;
    justify-items: end;
}

.archive-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 700;
}

.archive-link--muted {
    color: var(--text-soft);
}

.archive-suggestions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.archive-suggestion {
    text-align: center;
    font-weight: 700;
}

.showcase-grid,
.feed-grid,
.story-grid,
.detail-grid {
    display: grid;
    gap: 18px;
}

.showcase-grid,
.feed-grid,
.story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-card,
.feed-card,
.story-card,
.data-panel {
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.showcase-card:hover,
.feed-card:hover,
.story-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.showcase-card,
.feed-card {
    display: grid;
    gap: 12px;
    min-height: 260px;
}

.showcase-card__hook,
.feed-card__value {
    color: var(--gold);
    font-size: 1.45rem;
    line-height: 1.1;
}

.card-link {
    color: var(--text);
    font-weight: 700;
}

.report-block {
    display: grid;
    gap: 22px;
}

.report-hero {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.2fr);
    align-items: stretch;
}

.report-visual,
.widget-mock,
.widget-frame {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        rgba(18, 16, 27, 0.88);
}

.report-visual::before,
.widget-mock::before {
    content: "";
    position: absolute;
    right: -44px;
    top: -44px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(244, 239, 226, 0.06);
}

.report-visual strong {
    display: block;
    margin: 14px 0 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
}

.report-visual__line {
    display: block;
    color: var(--text-soft);
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.78);
}

.report-summary {
    display: grid;
    align-content: center;
    gap: 16px;
}

.price-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 0.92;
}

.price-line::before {
    content: "";
    width: 34px;
    height: 22px;
    background: center / contain no-repeat var(--coin-stack-icon);
    filter: drop-shadow(0 8px 14px rgba(215, 146, 23, 0.22));
}

.action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.public-link {
    display: grid;
    gap: 6px;
}

.public-link span {
    color: var(--text-dim);
}

.public-link a {
    color: var(--text);
    word-break: break-word;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
}

.story-card strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    margin: 8px 0 10px;
}

.panel__header {
    margin-bottom: 16px;
}

.triple-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-panel {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.mini-panel h4 {
    margin-bottom: 12px;
}

.metric-table {
    width: 100%;
    border-collapse: collapse;
}

.metric-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: top;
}

.metric-table tr:last-child td {
    border-bottom: 0;
}

.metric-table td:first-child {
    color: var(--text-soft);
    padding-right: 14px;
}

.metric-table td:last-child {
    text-align: right;
    color: var(--text);
}

.widget-stage {
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
}

.widget-stage__preview,
.widget-stage__content {
    display: grid;
    gap: 16px;
}

.widget-stage__badge {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(244, 185, 66, 0.1);
    border: 1px solid rgba(244, 185, 66, 0.24);
    color: var(--gold);
}

.widget-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
}

.widget-mock {
    min-height: 260px;
    display: grid;
    align-content: start;
    gap: 12px;
    background:
        linear-gradient(145deg, rgba(29, 138, 138, 0.18), rgba(238, 75, 85, 0.08)),
        rgba(18, 16, 27, 0.92);
}

.widget-mock__brand {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.widget-mock__domain {
    font-size: 1.2rem;
    font-weight: 700;
}

.widget-mock__value {
    font-size: 2.65rem;
    line-height: 1;
}

.widget-code {
    display: grid;
    gap: 12px;
}

.widget-code__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.code-preview,
#widget-code {
    min-height: 160px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(11, 10, 17, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    white-space: pre-wrap;
    word-break: break-word;
}

.site-footer {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.tone--brand {
    border-color: rgba(238, 75, 85, 0.42);
    box-shadow: inset 0 0 0 1px rgba(238, 75, 85, 0.08);
}

.tone--gold {
    border-color: rgba(244, 185, 66, 0.42);
    box-shadow: inset 0 0 0 1px rgba(244, 185, 66, 0.08);
}

.tone--ink {
    border-color: rgba(106, 120, 160, 0.26);
}

.tone--rose {
    border-color: rgba(238, 75, 85, 0.34);
}

.tone--sky {
    border-color: rgba(53, 88, 212, 0.38);
}

html[data-theme="light"] {
    --bg: #f6efe3;
    --bg-soft: #efe5d5;
    --panel: rgba(255, 252, 246, 0.94);
    --panel-strong: rgba(255, 250, 242, 0.98);
    --panel-muted: rgba(244, 236, 224, 0.92);
    --border: rgba(13, 62, 73, 0.14);
    --border-strong: rgba(13, 62, 73, 0.24);
    --text: #163741;
    --text-soft: #4d6870;
    --text-dim: #7e8f95;
    --shadow: 0 26px 70px rgba(95, 79, 47, 0.12);
    --shadow-soft: 0 14px 38px rgba(95, 79, 47, 0.09);
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at 12% 18%, rgba(29, 138, 138, 0.12), transparent 25%),
        radial-gradient(circle at 82% 14%, rgba(244, 185, 66, 0.18), transparent 26%),
        radial-gradient(circle at 58% 72%, rgba(238, 75, 85, 0.1), transparent 24%),
        linear-gradient(180deg, #fbf6ee 0%, #f6efe3 46%, #f3e8d8 100%);
}

html[data-theme="light"] body::before {
    border-color: rgba(13, 62, 73, 0.16);
    box-shadow: 0 0 0 52px rgba(244, 185, 66, 0.1);
}

html[data-theme="light"] body::after {
    background: linear-gradient(135deg, rgba(13, 94, 86, 0.12), rgba(244, 185, 66, 0.15));
}

html[data-theme="light"] .page-shell::before {
    background: rgba(244, 185, 66, 0.14);
}

html[data-theme="light"] .page-shell::after {
    background: rgba(53, 88, 212, 0.12);
}

html[data-theme="light"] .surface {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 242, 232, 0.96));
    box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .brand-nav,
html[data-theme="light"] .lang-switch,
html[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(13, 62, 73, 0.1);
}

html[data-theme="light"] .brand-nav__link,
html[data-theme="light"] .lang-switch__link,
html[data-theme="light"] .mini-pill {
    background: rgba(13, 62, 73, 0.04);
    border-color: rgba(13, 62, 73, 0.08);
    color: var(--text-soft);
}

html[data-theme="light"] .lang-switch__link.is-active,
html[data-theme="light"] .brand-nav__link:hover,
html[data-theme="light"] .lang-switch__link:hover,
html[data-theme="light"] .mini-pill {
    color: var(--text);
    border-color: rgba(13, 62, 73, 0.14);
    background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .header-search input[type="text"] {
    background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .header-search__button {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(13, 62, 73, 0.12);
    color: var(--text);
}

html[data-theme="light"] .button--secondary,
html[data-theme="light"] .button--ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(13, 62, 73, 0.12);
    color: var(--text);
}

html[data-theme="light"] .hero-stat,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .hero-point,
html[data-theme="light"] .quick-list__item,
html[data-theme="light"] .benefit-list__item,
html[data-theme="light"] .mini-panel,
html[data-theme="light"] .report-teaser,
html[data-theme="light"] .featured-widget,
html[data-theme="light"] .leaderboard-row,
html[data-theme="light"] .archive-result {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(13, 62, 73, 0.1);
}

html[data-theme="light"] .featured-widget__frame,
html[data-theme="light"] .widget-frame,
html[data-theme="light"] .widget-mock,
html[data-theme="light"] .report-visual {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(245, 236, 222, 0.92)),
        rgba(255, 252, 246, 0.92);
    border-color: rgba(13, 62, 73, 0.12);
}

html[data-theme="light"] .mini-toplist,
html[data-theme="light"] .mini-toplist__row {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 236, 222, 0.92)),
        rgba(255, 252, 246, 0.92);
    border-color: rgba(13, 62, 73, 0.12);
}

html[data-theme="light"] .mini-toplist__head {
    border-bottom-color: rgba(13, 62, 73, 0.08);
}

html[data-theme="light"] .mini-toplist__head a {
    color: var(--text-soft);
}

html[data-theme="light"] .mini-toplist__tabs {
    background: rgba(13, 62, 73, 0.04);
    border-color: rgba(13, 62, 73, 0.08);
}

html[data-theme="light"] .mini-toplist__tab {
    color: var(--text-soft);
}

html[data-theme="light"] .mini-toplist__tab.is-active {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
}

html[data-theme="light"] .mini-toplist__row {
    border-bottom-color: rgba(13, 62, 73, 0.08);
}

html[data-theme="light"] .mini-toplist__row:hover {
    background: rgba(13, 62, 73, 0.03);
}

html[data-theme="light"] .mini-toplist__place {
    color: rgba(13, 62, 73, 0.4);
}

html[data-theme="light"] .mini-toplist__domain {
    color: var(--text);
}

html[data-theme="light"] .mini-toplist__value {
    color: var(--text-soft);
}

html[data-theme="light"] input[type="text"],
html[data-theme="light"] textarea,
html[data-theme="light"] .code-preview,
html[data-theme="light"] #widget-code {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(13, 62, 73, 0.12);
    color: var(--text);
}

html[data-theme="light"] .report-teaser__chips span,
html[data-theme="light"] .featured-widget__note strong,
html[data-theme="light"] .showcase-card__foot span,
html[data-theme="light"] .feed-card__meta span,
html[data-theme="light"] .widget-mock__meta span,
html[data-theme="light"] .action-chip,
html[data-theme="light"] .leaderboard-row__meta span,
html[data-theme="light"] .archive-result__meta span,
html[data-theme="light"] .archive-suggestion,
html[data-theme="light"] .archive-link {
    background: rgba(13, 62, 73, 0.05);
    color: var(--text-soft);
}

html[data-theme="light"] .leaderboard-panel__pill {
    background: linear-gradient(135deg, rgba(238, 75, 85, 0.12), rgba(221, 178, 102, 0.18));
    border-color: rgba(13, 62, 73, 0.12);
    color: var(--text);
}

html[data-theme="light"] .archive-link {
    color: var(--text);
}

html[data-theme="light"] .status--error {
    color: #b93b4e;
}

html[data-theme="light"] .tone--brand {
    border-color: rgba(238, 75, 85, 0.24);
}

html[data-theme="light"] .tone--gold {
    border-color: rgba(221, 178, 102, 0.3);
}

html[data-theme="light"] .tone--ink,
html[data-theme="light"] .tone--sky,
html[data-theme="light"] .tone--rose {
    border-color: rgba(13, 62, 73, 0.14);
}

@media (max-width: 1100px) {
    .hero,
    .report-hero,
    .widget-stage,
    .discovery-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid,
    .feed-grid,
    .story-grid,
    .metric-grid,
    .triple-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    h1 {
        max-width: 12ch;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 20px, 1240px);
        padding-top: 14px;
    }

    .topbar,
    .topbar__brand,
    .topbar__meta,
    .form-row,
    .header-search,
    .archive-search__row,
    .hero-stats,
    .showcase-grid,
    .feed-grid,
    .story-grid,
    .metric-grid,
    .triple-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .topbar__brand,
    .topbar__meta,
    .hero-actions {
        align-items: stretch;
    }

    .topbar,
    .topbar__brand,
    .topbar__meta {
        flex-direction: column;
    }

    .topbar__meta {
        width: 100%;
    }

    .mini-pill,
    .brand-lockup {
        width: fit-content;
    }

    .brand-nav,
    .lang-switch,
    .theme-toggle,
    .header-search {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .hero__copy,
    .form-panel,
    .report-hero,
    .widget-stage,
    .site-footer,
    .leaderboard-panel,
    .archive-panel,
    .showcase-card,
    .feed-card,
    .story-card,
    .data-panel {
        padding: 22px;
    }

    .hero-points,
    .archive-suggestions,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .mini-toplist__row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .mini-toplist__domain,
    .mini-toplist__value {
        font-size: 0.92rem;
    }

    .form-row {
        display: grid;
        gap: 12px;
    }

    .leaderboard-row,
    .archive-result {
        grid-template-columns: 1fr;
    }

    .leaderboard-row__score,
    .archive-result__actions {
        justify-items: start;
        text-align: left;
    }

    .button,
    .form-row .button {
        width: 100%;
    }

    .price-line {
        font-size: clamp(2.25rem, 11vw, 3.3rem);
    }

    body::before,
    body::after,
    .page-shell::before,
    .page-shell::after {
        opacity: 0.16;
        transform: scale(0.78);
    }
}
