/* Mirai Hit Labs: black and white, thin lines, clean geometry, almost no shadows.
   Typography from the identity: Michroma (brand, titles) and Manrope (text). */
:root {
    --ink: #111111;
    --paper: #ffffff;
    --mist: #f5f7ff;
    --line: #d8dce3;
    --muted: #525965;
    --soft: #8a919c;
    --radius: 14px;
    --radius-lg: 22px;
    --wrap: 1180px;
    --font-brand: "Michroma", "Eurostile", "Arial Black", sans-serif;
    --font-text: "Manrope", "Segoe UI", Arial, sans-serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 30; padding: 10px 14px; color: var(--paper); background: var(--ink); border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }

/* Type. */
.eyebrow { margin: 0; font: 400 11px/1.6 var(--font-text); letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.brand-title { margin: 0; font: 400 clamp(1.9rem, 4.6vw, 3.4rem)/1.12 var(--font-brand); letter-spacing: 0.04em; text-transform: uppercase; }
.section-title { margin: 0; font: 400 clamp(1.25rem, 2.6vw, 1.75rem)/1.2 var(--font-brand); letter-spacing: 0.08em; text-transform: uppercase; }
.lead { margin: 0; max-width: 620px; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.65; }
.rule { display: block; width: 75px; height: 2px; background: var(--ink); }

/* Buttons. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--paper); background: var(--ink); font: 700 13px/1 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.btn:hover { color: var(--ink); background: var(--paper); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { color: var(--paper); background: var(--ink); }
.on-dark .btn { border-color: var(--paper); color: var(--ink); background: var(--paper); }
.on-dark .btn:hover { color: var(--paper); background: transparent; }
.on-dark .btn--ghost { color: var(--paper); background: transparent; }
.on-dark .btn--ghost:hover { color: var(--ink); background: var(--paper); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* Header. */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img { width: 168px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.site-nav a { font: 600 12px/1 var(--font-text); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.site-nav .btn { min-height: 40px; padding: 0 18px; font-size: 11px; }

/* Hero. */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__pillars { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 10px/1.6 var(--font-text); letter-spacing: 0.33em; text-transform: uppercase; color: var(--muted); }
.hero__pillars li + li::before { content: "/"; margin-right: 14px; color: var(--line); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__mark { position: relative; display: grid; place-items: center; aspect-ratio: 674 / 453; }
.hero__mark img { width: 100%; height: auto; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ink) 20%, var(--ink) 80%, transparent); opacity: 0.18; }

/* Pillars (identity concepts). */
.concepts { border-bottom: 1px solid var(--line); }
.concepts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.concept { display: grid; align-content: start; gap: 14px; padding: 36px 28px 40px; }
.concept + .concept { border-left: 1px solid var(--line); }
.concept img { height: 44px; width: auto; }
.concept h3 { margin: 0; font: 700 13px/1.5 var(--font-text); letter-spacing: 0.2em; text-transform: uppercase; }
.concept p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Catalog. */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head > div { display: grid; gap: 12px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; }
.plugin-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); transition: border-color 0.18s ease, transform 0.18s ease; }
.plugin-card:hover, .plugin-card:focus-within { border-color: var(--ink); transform: translateY(-2px); }
.plugin-card__cover { position: relative; aspect-ratio: 1; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--mist); }
.plugin-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.plugin-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.plugin-card__placeholder img { width: 46%; height: auto; opacity: 0.85; }
.plugin-card__badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--paper); font: 700 10px/1 var(--font-text); letter-spacing: 0.18em; text-transform: uppercase; }
.plugin-card__badge--dark { color: var(--paper); background: var(--ink); }
.plugin-card__body { display: grid; align-content: start; gap: 8px; padding: 20px 20px 22px; }
.plugin-card__meta { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.plugin-card__title { margin: 0; font: 400 1.05rem/1.3 var(--font-brand); letter-spacing: 0.06em; text-transform: uppercase; }
.plugin-card__link { text-decoration: none; }
.plugin-card__link::after { content: ""; position: absolute; inset: 0; }
.plugin-card__tagline { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.plugin-card__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font: 700 1.1rem/1.2 var(--font-text); }
.price s { margin-right: 8px; color: var(--soft); font-weight: 500; font-size: 0.85em; }
.formats { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.formats li { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }

.state { display: grid; justify-items: center; gap: 16px; padding: clamp(40px, 7vw, 72px) 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg); text-align: center; }
.state img { width: 120px; height: auto; }
.state h3 { margin: 0; font: 400 1.05rem/1.4 var(--font-brand); letter-spacing: 0.1em; text-transform: uppercase; }
.state p { margin: 0; max-width: 520px; color: var(--muted); }
.skeleton { border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--mist), #eceff7, var(--mist)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; aspect-ratio: 0.78; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* How it works (dark band). */
.band { color: var(--paper); background: var(--ink); }
.band .eyebrow, .band .lead { color: #b8bec8; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.step { display: grid; align-content: start; gap: 12px; padding: 32px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.step__number { font: 400 12px/1 var(--font-brand); letter-spacing: 0.3em; color: #b8bec8; }
.step h3 { margin: 0; font: 700 15px/1.4 var(--font-text); letter-spacing: 0.18em; text-transform: uppercase; }
.step p { margin: 0; color: #c9ced6; line-height: 1.6; }
.band__wave { width: 160px; height: auto; margin-top: 8px; }

/* FAQ. */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font: 700 16px/1.45 var(--font-text); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--font-brand); transition: transform 0.18s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; max-width: 760px; color: var(--muted); }

/* Plugin page. */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; gap: clamp(28px, 5vw, 64px); padding: 32px 0 clamp(48px, 7vw, 80px); }
.product__cover { position: sticky; top: 96px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--mist); }
.product__cover img { width: 100%; height: 100%; object-fit: cover; }
.product__info { display: grid; gap: 22px; min-width: 0; }
.product__head { display: grid; gap: 12px; }
.product__title { margin: 0; font: 400 clamp(1.8rem, 4vw, 2.8rem)/1.12 var(--font-brand); letter-spacing: 0.04em; text-transform: uppercase; overflow-wrap: anywhere; }
.product__tagline { margin: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }
.buy { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--ink); border-radius: var(--radius-lg); }
.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.buy__price strong { font: 800 2rem/1 var(--font-text); letter-spacing: -0.01em; }
.buy__price s { color: var(--soft); font-size: 1.05rem; }
.buy__price span { color: var(--muted); font-size: 13px; }
.buy__note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.buy .btn { width: 100%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.prose { display: grid; gap: 14px; }
.prose h2 { margin: 0; font: 700 13px/1.4 var(--font-text); letter-spacing: 0.22em; text-transform: uppercase; }
.prose p { margin: 0; color: #2b2f36; white-space: pre-line; overflow-wrap: anywhere; }
.features { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.features li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.features li::before { content: ""; width: 18px; height: 1.5px; margin-top: 12px; background: var(--ink); }
.video { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* Footer. */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding: 48px 0 36px; }
.site-footer__brand { display: grid; gap: 14px; align-content: start; }
.site-footer__brand img { width: 150px; height: auto; }
.site-footer__brand p, .site-footer small { margin: 0; color: var(--muted); font-size: 14px; }
.site-footer h2 { margin: 0 0 12px; font: 700 11px/1.4 var(--font-text); letter-spacing: 0.24em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 28px; border-top: 1px solid var(--line); }

/* Not found. */
.missing { display: grid; justify-items: center; gap: 18px; padding: clamp(72px, 12vw, 140px) 0; text-align: center; }
.missing img { width: 140px; height: auto; }

@media (max-width: 900px) {
    .hero__grid, .product { grid-template-columns: minmax(0, 1fr); }
    .hero__mark { order: -1; max-width: 420px; margin: 0 auto; }
    .product__cover { position: static; max-width: 520px; }
    .concepts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .concept:nth-child(3) { border-left: 0; }
    .concept:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .step, .step + .step { padding: 24px 0; border-left: 0; }
    .step + .step { border-top: 1px solid rgba(255, 255, 255, 0.16); }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-header__logo img { width: 132px; }
    .site-nav a:not(.btn) { display: none; }
    .concepts__grid { grid-template-columns: minmax(0, 1fr); }
    .concept + .concept { border-left: 0; border-top: 1px solid var(--line); }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .facts div:nth-child(even) { padding-left: 0; border-left: 0; }
    .facts div:nth-child(odd) { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .plugin-card, .btn, .faq summary::after { transition: none; }
    .plugin-card:hover { transform: none; }
    .skeleton { animation: none; }
}
.eyebrow[data-loading] { padding: 48px 0; }
.product__cover .plugin-card__placeholder img { width: 40%; height: auto; object-fit: contain; }
