/* AniHoshi · Miruro — landing page ("/", frontend/front-page.blade.php), direction B "Masthead".
   Standalone (no site CSS is loaded), so the Miruro tokens are copied from miruro.css here.
   Split hero: big typographic h1 + search on the left, a numbered feature card on the right; a stats band
   from real catalogue counts; the Admin › Settings homepage article; FAQ; a compact footer.
   No anime art or lists on this page. Class prefix: ml-. Dark by default; html[data-theme="light"] switches. */

/* ============ font (bundled with the theme) ============ */
@font-face {
    font-family: "Karla Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url(../fonts/karla-latin-ext-wght-normal.woff2) format("woff2-variations");
    unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Karla Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url(../fonts/karla-latin-wght-normal.woff2) format("woff2-variations");
    unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ tokens (miruro.css palette) ============ */
:root, html[data-theme="dark"] {
    --hs-bg: #121113; --hs-bg-2: #1A191B; --hs-bg-3: #232225; --hs-hover: #2B292D;
    --hs-line: rgba(73, 71, 78, 0.6); --hs-line-2: #49474E;
    --hs-tx: #EEEEF0; --hs-tx-2: #DCDBE0; --hs-tx-3: #B5B2BC; --hs-tx-4: #8E8B95;
    --hs-ac: #BAA7FF;
    --hs-f-body: "Karla Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --hs-f-head: "Karla Variable", ui-sans-serif, system-ui, sans-serif;
    --mr-r-sm: 4px; --mr-r-md: 7px; --mr-r-lg: 8px; --mr-r-xl: 10px; --mr-top: 48px;
    --mr-primary: #BAA7FF; --mr-primary-h: #CDBFFF; --mr-primary-ink: #121113;
    --mr-glass: rgba(238, 238, 240, 0.08); --mr-glass-h: rgba(238, 238, 240, 0.14);
    --ml-ac-rgb: 186, 167, 255; --ml-fg-rgb: 238, 238, 240; --ml-bg-rgb: 18, 17, 19; --ml-card-rgb: 26, 25, 27;
    --ml-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --ml-h1-a: #BAA7FF; --ml-h1-b: rgba(186, 167, 255, 0.55);
    color-scheme: dark;
}
html[data-theme="light"] {
    --hs-bg: #FDFCFD; --hs-bg-2: #FAF9FB; --hs-bg-3: #F2EFF3; --hs-hover: #EAE7EC;
    --hs-line: rgba(208, 205, 215, 0.75); --hs-line-2: #D0CDD7;
    --hs-tx: #211F26; --hs-tx-2: #3A3841; --hs-tx-3: #5C5A64; --hs-tx-4: #6F6C77;
    --hs-ac: #6550B9;
    --mr-primary: #2F265F; --mr-primary-h: #3D3279; --mr-primary-ink: #FFFFFF;
    --mr-glass: rgba(33, 31, 38, 0.06); --mr-glass-h: rgba(33, 31, 38, 0.11);
    --ml-ac-rgb: 101, 80, 185; --ml-fg-rgb: 33, 31, 38; --ml-bg-rgb: 253, 252, 253; --ml-card-rgb: 250, 249, 251;
    --ml-shadow: 0 24px 60px -28px rgba(47, 38, 95, 0.28);
    --ml-h1-a: #2F265F; --ml-h1-b: #6550B9;
    color-scheme: light;
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body.ml {
    margin: 0; background: var(--hs-bg); color: var(--hs-tx);
    font: 400 16px/1.6 var(--hs-f-body);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
.ml a { color: inherit; text-decoration: none; }
.ml svg { display: block; }
.ml button, .ml input { font: inherit; color: inherit; }
.ml h1, .ml h2, .ml h3 { margin: 0; font-family: var(--hs-f-head); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.ml :focus-visible { outline: 2px solid var(--hs-ac); outline-offset: 2px; }
.ml ::selection { background: rgba(var(--ml-ac-rgb), 0.3); }
.ml-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ml-skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: var(--mr-r-md); background: var(--mr-primary); color: var(--mr-primary-ink) !important; font-weight: 600; font-size: 14px; }
.ml-skip:focus { top: 8px; }
.ml-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.ml-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ============ logo (theme logo partial) ============ */
.ml .hs-logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; border-radius: var(--mr-r-sm); }
.ml .hs-logo-text { font-family: var(--hs-f-head); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--hs-tx) !important; }
.ml .hs-logo-text span { color: var(--hs-ac); }
html[data-theme="light"] .ml .hs-logo-text .hs-logo-tail { background: linear-gradient(90deg, #6550B9, #2F265F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ml .hs-logo-img, .ml .site-logo-img { display: block; width: auto; max-height: 32px; }
.ml .hs-logo-mark { width: 32px; height: 32px; }
.ml .hs-logo-o { display: inline-block; height: 0.78em; vertical-align: -0.04em; }
.ml .site-wordmark { color: var(--hs-tx); }

/* ============ top bar ============ */
.ml-top {
    position: sticky; top: 0; z-index: 50; height: var(--mr-top);
    background: rgba(var(--ml-bg-rgb), 0.6); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color 0.2s, background-color 0.2s;
}
.ml-top.is-scrolled { border-bottom-color: var(--hs-line); background: rgba(var(--ml-bg-rgb), 0.86); }
.ml-top .ml-wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.ml-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.ml-nav a { height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--mr-r-md); font-size: 14px; font-weight: 500; color: var(--hs-tx-3); transition: color 0.15s, background-color 0.15s; }
.ml-nav a:hover { color: var(--hs-tx); background: var(--mr-glass); }
.ml-mode { width: 32px; height: 32px; margin-left: 6px; border: 0; border-radius: var(--mr-r-md); background: var(--mr-glass); color: var(--hs-tx-3); display: grid; place-items: center; cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.ml-mode:hover { background: var(--mr-glass-h); color: var(--hs-tx); }
.ml-mode .ml-i { width: 16px; height: 16px; }
.ml-mode .moon, html[data-theme="light"] .ml-mode .sun { display: none; }
html[data-theme="light"] .ml-mode .moon { display: block; }

/* ============ buttons ============ */
.ml-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--mr-r-md); font: 600 14px/1 var(--hs-f-body); white-space: nowrap; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.ml-btn .ml-i { width: 16px; height: 16px; }
.ml-btn-p { background: var(--mr-primary); color: var(--mr-primary-ink) !important; }
.ml-btn-p:hover { background: var(--mr-primary-h); }
.ml-btn-s { background: var(--mr-glass); color: var(--hs-tx) !important; }
.ml-btn-s:hover { background: var(--mr-glass-h); }
.ml-arrow { transition: transform 0.15s; }
.ml-btn:hover .ml-arrow, .ml-go:hover .ml-arrow { transform: translateX(2px); }

/* ============ hero ============ */
.ml-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--mr-top)); padding: calc(var(--mr-top) + 72px) 0 88px; border-bottom: 1px solid var(--hs-line); }
.ml-hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(ellipse 46% 60% at 18% 30%, rgba(var(--ml-ac-rgb), 0.18), transparent 70%), radial-gradient(ellipse 36% 50% at 92% 90%, rgba(var(--ml-ac-rgb), 0.1), transparent 70%); }
.ml-guides { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.ml-guides .ml-wrap { position: relative; height: 100%; }
.ml-guides .ml-wrap::before {
    content: ""; position: absolute; inset: 0 32px; opacity: 0.4;
    background: linear-gradient(90deg, var(--hs-line) 1px, transparent 1px) 0 0 / 25% 100%; border-right: 1px solid var(--hs-line);
    -webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
}
.ml-star { position: absolute; right: -140px; bottom: -200px; z-index: -1; width: 640px; height: 640px; color: rgba(var(--ml-ac-rgb), 0.22); pointer-events: none; }
.ml-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ml-kick { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; font-weight: 600; color: var(--hs-tx-3); }
.ml-kick::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--hs-ac); }
.ml-h1 { margin: 22px 0 24px !important; font-size: clamp(50px, 6.6vw, 96px); line-height: 0.92 !important; letter-spacing: -0.05em !important; overflow-wrap: anywhere; }
.ml-h1 > span { display: block; }
.ml-h1 em { font-style: normal; padding-right: 0.04em; background: linear-gradient(95deg, var(--ml-h1-a) 10%, var(--ml-h1-b) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ml-lead { max-width: 520px; margin: 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--hs-tx-3); }

/* search */
.ml-search { max-width: 560px; margin: 36px 0 0; }
.ml-label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--hs-tx-3); }
.ml-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; background: var(--hs-bg-2); border: 1px solid var(--hs-line-2); border-radius: var(--mr-r-xl); transition: border-color 0.15s, box-shadow 0.15s; }
.ml-field:hover { border-color: rgba(var(--ml-ac-rgb), 0.55); }
.ml-field:focus-within { border-color: var(--hs-ac); box-shadow: 0 0 0 3px rgba(var(--ml-ac-rgb), 0.2); }
.ml-field > .ml-i { color: var(--hs-tx-4); }
.ml-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: 0; font-size: 16px; color: var(--hs-tx); }
.ml-field input::placeholder { color: var(--hs-tx-4); opacity: 1; }
.ml-field input::-webkit-search-cancel-button { display: none; }
.ml-kbd { flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--hs-line); border-radius: var(--mr-r-sm); font: 600 12px/1 var(--hs-f-body); color: var(--hs-tx-4); }
.ml-go { flex: none; width: 40px; height: 40px; border: 0; border-radius: var(--mr-r-md); background: var(--hs-bg-3); color: var(--hs-tx); display: grid; place-items: center; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.ml-go:hover { background: var(--mr-primary); color: var(--mr-primary-ink); }
.ml-go .ml-i { width: 16px; height: 16px; }
.ml-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* feature card */
.ml-feat { position: relative; padding: 24px 28px 8px; border: 1px solid var(--hs-line); border-radius: var(--mr-r-xl); background: rgba(var(--ml-card-rgb), 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--ml-shadow); }
.ml-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.08em !important; line-height: 1.4 !important; text-transform: uppercase; color: var(--hs-ac); }
.ml-feat .ml-eyebrow { margin-bottom: 6px; }
.ml-feat ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hs-line); }
.ml-feat li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--hs-line); }
.ml-feat li:last-child { border-bottom: 0; }
.ml-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: var(--mr-r-md); display: grid; place-items: center; background: var(--hs-bg-2); border: 1px solid var(--hs-line); color: var(--hs-ac); transition: border-color 0.15s; }
.ml-feat li:hover .ml-ico { border-color: rgba(var(--ml-ac-rgb), 0.5); }
.ml-feat h3 { font-size: 16px; letter-spacing: -0.015em; line-height: 1.3; padding-top: 1px; }
.ml-feat p { grid-column: 2 / 4; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--hs-tx-3); }
.ml-n { font-size: 12px; font-weight: 700; color: var(--hs-tx-4); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; padding-top: 3px; }

/* ============ stats band ============ */
.ml-band { border-bottom: 1px solid var(--hs-line); }
.ml-band dl { margin: 0; display: grid; grid-template-columns: repeat(var(--ml-cols, 4), minmax(0, 1fr)); }
.ml-band dl > div { display: flex; flex-direction: column; padding: 40px 28px 44px; border-left: 1px solid var(--hs-line); }
.ml-band dl > div:first-child { border-left: 0; padding-left: 0; }
.ml-band dt { order: 2; margin-top: 6px; font-size: 14px; color: var(--hs-tx-4); }
.ml-band dd { margin: 0; font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.ml-band dd small { font-size: 0.5em; color: var(--hs-ac); margin-left: 2px; vertical-align: 0.5em; }

/* ============ split sections (about, FAQ) ============ */
.ml-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 72px; padding: 104px 0; }
.ml-split + .ml-split { border-top: 1px solid var(--hs-line); }
.ml-side .ml-h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.12; }
.ml-side p { margin: 14px 0 0; color: var(--hs-tx-4); font-size: 14.5px; max-width: 30ch; }
.ml-side .ml-eyebrow { margin: 0; max-width: none; color: var(--hs-ac); font-size: 12px; }
.ml-side p a { color: var(--hs-ac); text-decoration: underline; text-underline-offset: 3px; }
.ml-sticky { position: sticky; top: calc(var(--mr-top) + 32px); }
.ml-jump { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ml-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14.5px; font-weight: 500; color: var(--hs-tx-3); border-radius: var(--mr-r-sm); }
.ml-jump a:hover { color: var(--hs-ac); }
.ml-jump .ml-i { width: 14px; height: 14px; color: var(--hs-tx-4); }

/* article (Admin › Settings homepage content) */
.ml-prose { max-width: 66ch; color: var(--hs-tx-3); font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
.ml-prose > :first-child { margin-top: 0 !important; }
.ml-prose h2 { margin: 0 0 18px; font-size: clamp(24px, 2.6vw, 30px); color: var(--hs-tx); letter-spacing: -0.03em; line-height: 1.15; }
.ml-prose h3, .ml-prose h4 { margin: 30px 0 8px; font-size: 18px; color: var(--hs-tx); letter-spacing: -0.015em; line-height: 1.3; }
.ml-prose p { margin: 0 0 16px; }
.ml-prose h2 + p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--hs-tx-2); }
.ml-prose ul, .ml-prose ol { margin: 0 0 16px; padding-left: 1.2em; }
.ml-prose li { margin: 4px 0; }
.ml-prose a { color: var(--hs-ac); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ml-prose b, .ml-prose strong { color: var(--hs-tx); font-weight: 700; }
.ml-prose img { max-width: 100%; height: auto; border-radius: var(--mr-r-lg); }

/* FAQ */
.ml-faq { border-top: 1px solid var(--hs-line); }
.ml-faq details { border-bottom: 1px solid var(--hs-line); }
.ml-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 600; cursor: pointer; border-radius: var(--mr-r-sm); }
.ml-faq summary::-webkit-details-marker { display: none; }
.ml-faq summary:hover { color: var(--hs-ac); }
.ml-faq summary .ml-i { color: var(--hs-tx-4); transition: transform 0.2s; }
.ml-faq details[open] summary .ml-i { transform: rotate(45deg); color: var(--hs-ac); }
.ml-faq details p { margin: -4px 0 20px; max-width: 64ch; color: var(--hs-tx-3); font-size: 15px; line-height: 1.7; }

/* ============ footer ============ */
.ml-foot { border-top: 1px solid var(--hs-line); padding: 28px 0 32px; font-size: 13px; color: var(--hs-tx-4); }
.ml-foot .ml-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ml-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.ml-foot nav a { font-size: 14px; font-weight: 500; color: var(--hs-tx-3); border-radius: var(--mr-r-sm); }
.ml-foot nav a:hover { color: var(--hs-tx); }
.ml-foot p { flex-basis: 100%; margin: 0; }

/* ============ responsive ============ */
@media (max-width: 1024px) {
    .ml-wrap { padding: 0 24px; }
    .ml-guides .ml-wrap::before { inset: 0 24px; }
    .ml-grid { gap: 48px; }
    .ml-split { gap: 48px; padding: 88px 0; }
    .ml-band dl > div { padding: 32px 20px 36px; }
}
@media (max-width: 900px) {
    .ml-grid { grid-template-columns: 1fr; gap: 56px; }
    .ml-h1 { font-size: clamp(48px, 10vw, 88px); }
    .ml-split { grid-template-columns: 1fr; gap: 28px; padding: 72px 0; }
    .ml-sticky { position: static; }
    .ml-side p { max-width: none; }
    .ml-jump { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
    .ml-band dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ml-band dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .ml-band dl > div:nth-child(n+3) { border-top: 1px solid var(--hs-line); }
    .ml-star { width: 460px; height: 460px; right: -160px; bottom: -140px; }
}
@media (max-width: 560px) {
    .ml-wrap { padding: 0 16px; }
    .ml-guides .ml-wrap::before { inset: 0 16px; background-size: 50% 100%; }
    .ml-nav .ml-opt { display: none; }
    .ml-nav a { padding: 0 8px; }
    .ml-hero { padding: calc(var(--mr-top) + 44px) 0 56px; }
    .ml-h1 { margin: 18px 0 18px !important; }
    .ml-search { margin-top: 28px; }
    .ml-kbd { display: none; }
    .ml-cta .ml-btn { flex: 1 1 auto; }
    .ml-star { width: 340px; height: 340px; right: -170px; bottom: -150px; }
    .ml-feat { padding: 20px 18px 4px; }
    .ml-feat li { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 14px; padding: 18px 0; }
    .ml-ico { width: 36px; height: 36px; }
    .ml-band dl > div { padding: 24px 16px 26px; }
    .ml-band dl > div:nth-child(odd) { padding-left: 0; }
    .ml-split { padding: 56px 0; }
    .ml-foot nav { margin-left: 0; flex-basis: 100%; }
}
@media (hover: none) { .ml-kbd { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .ml *, .ml *::before, .ml *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Site logo uploaded as a white mark (miruro-logo*): flip it to dark ink in light mode. */
html[data-theme="light"] img.hs-logo-img[src*="miruro-logo"] { filter: invert(1); }
