/* JiliAce PH Live — dark grey + red */
:root {
    --bg: #121212;
    --bg-elev: #1a1a1a;
    --surface: #252525;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ececec;
    --muted: #9ca3af;
    --accent: #dc2626;
    --accent-strong: #991b1b;
    --accent-muted: #f87171;
    --accent-dim: rgba(220, 38, 38, 0.18);
    --gold: #d4d4d4;
    --gold-dim: rgba(255, 255, 255, 0.06);
    --danger: #ef4444;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, Cantarell, sans-serif;
    --max: 1120px;
    --space: clamp(1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-muted);
}

.shell {
    width: min(100% - var(--space) * 2, var(--max));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    left: var(--space);
    top: var(--space);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand:hover {
    color: var(--text);
}

.brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #3f3f3f 0%, var(--accent) 55%, var(--accent-strong) 100%);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.brand__accent {
    color: var(--accent);
    font-weight: 600;
}

.nav--desktop {
    display: none;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav__link {
    color: var(--muted);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav__link.is-active {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav__link--cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff !important;
    font-weight: 700;
    margin-left: 0.25rem;
}

.nav__link--cta:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

.nav__link--outline {
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: var(--text) !important;
    background: rgba(220, 38, 38, 0.08);
}

.nav__link--outline:hover {
    background: var(--accent-dim);
    color: #fff !important;
}

.nav__sep {
    width: 1px;
    height: 1.25rem;
    background: var(--border);
    margin: 0 0.15rem;
    align-self: center;
    display: none;
}

@media (min-width: 960px) {
    .nav__sep {
        display: block;
    }
}

.nav__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.nav__burger .icon {
    display: block;
}

@media (min-width: 960px) {
    .nav--desktop {
        display: flex;
    }
    .nav__burger {
        display: none;
    }
}

.mobile-panel {
    display: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel__inner {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0 1.25rem;
    gap: 0.15rem;
}

.mm__link {
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.mm__link.is-active {
    color: var(--accent);
}

.mm__link--cta {
    margin-top: 0.5rem;
    text-align: center;
    background: var(--accent-dim);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.85rem !important;
    color: var(--accent-muted) !important;
}

.mm__link--muted {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Sections */
main {
    overflow-x: hidden;
}

.section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section--tight {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section--alt {
    background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
}

.section__head {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section__title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.2;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.section__lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(2.5rem, 8vw, 5rem) 0;
    background:
        radial-gradient(ellipse 85% 55% at 78% 8%, rgba(220, 38, 38, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 12% 88%, rgba(255, 255, 255, 0.04), transparent),
        linear-gradient(180deg, #1f1f1f 0%, var(--bg) 45%);
    border-bottom: 1px solid var(--border);
}

.hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 880px) {
    .hero__grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid rgba(220, 38, 38, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero__badge .icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.85rem);
    line-height: 1.12;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.hero__sub {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
    max-width: 36rem;
}

.hero__lead {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    max-width: 42rem;
}

.hero__lead em {
    font-style: normal;
    color: var(--accent);
}

.hero__note {
    font-size: 0.98rem;
    color: var(--muted);
    margin: 0 0 1.25rem;
    max-width: 42rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.35);
}

.btn--ghost {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn .icon {
    width: 20px;
    height: 20px;
}

/* Infographic card stack */
.info-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.info-visual__title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 1rem;
}

.info-flow {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 520px) {
    .info-flow {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-flow--quad {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
    .info-flow--quad {
        grid-template-columns: repeat(4, 1fr);
    }
}

.info-flow__step {
    background: var(--bg-elev);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
}

.info-flow__step::after {
    content: "";
    display: none;
}

.info-flow__n {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
}

.info-flow__label {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.info-flow__hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0.35rem 0 0;
}

/* Listicle */
.listicle {
    counter-reset: li;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.listicle li {
    counter-increment: li;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
}

.listicle li::before {
    content: counter(li);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.listicle h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.listicle p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Steps (horizontal on mobile scroll) */
.steps-wrap {
    margin-top: 1.5rem;
}

.steps {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.steps::-webkit-scrollbar {
    height: 6px;
}

.steps::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

.step-card {
    flex: 0 0 min(280px, 85vw);
    scroll-snap-align: start;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
}

.step-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 0.85rem;
}

.step-card__icon svg {
    width: 24px;
    height: 24px;
}

.step-card__n {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-muted);
    margin-bottom: 0.35rem;
}

.step-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (min-width: 900px) {
    .steps {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        overflow: visible;
    }
    .step-card {
        flex: none;
        min-width: 0;
    }
}

/* Feature grid */
.feature-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
}

.feature-card__icon {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.feature-card__icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* FAQ */
.faq {
    max-width: 40rem;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details[open] summary {
    color: var(--accent);
}

.faq p {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* CTA strip */
.trust-strip {
    display: grid;
    gap: 1rem;
    margin-top: 0;
}

@media (min-width: 720px) {
    .trust-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.trust-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 0.85rem;
}

.trust-card__icon svg {
    width: 26px;
    height: 26px;
}

.trust-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--text);
}

.trust-card .trust-card__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-muted);
    line-height: 1.35;
}

.trust-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text);
}

.cta-strip {
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    text-align: center;
    margin: 2rem 0;
}

.cta-strip h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.cta-strip p {
    margin: 0 0 1rem;
    color: var(--muted);
}

/* Footer */
.site-footer {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 2rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 720px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.footer-brand {
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.footer-lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-18 {
    margin: 2rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-copy {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
    opacity: 0.85;
}

/* Prose pages */
.prose {
    max-width: 42rem;
}

.prose h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-top: 0;
}

.prose h2 {
    margin-top: 2rem;
    font-size: 1.35rem;
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose a {
    color: var(--accent-muted);
}

.prose ul,
.prose ol {
    margin: 0.75rem 0 1.25rem;
    padding-left: 1.35rem;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.12rem;
    color: var(--text);
}

.prose-ref {
    margin-top: 1.75rem;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--muted);
}

.prose-ref strong {
    color: var(--text);
}

.page-hero {
    padding: 2rem 0 1rem;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
}

.page-hero .lead {
    margin: 0;
    color: var(--muted);
    max-width: 40rem;
}
