/* ======================================================================
   home.css - Clean modern product page. No theme, no cosplay.
   Typography and whitespace do the work. Uses global site tokens
   (--bg, --text, --accent, --border) so it integrates with the rest
   of the site instead of overriding the palette.
   Scoped under .home.
   ====================================================================== */

.home {
    --home-max: 1120px;
    --home-read: 64ch;
    --home-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --home-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    font-family: var(--home-font);
    color: var(--text);
    line-height: 1.6;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    overflow-x: clip;
}

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

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

.home p {
    margin: 0 0 1em;
}

.home p:last-child { margin-bottom: 0; }

/* ======================================================================
   Layout shell
   ====================================================================== */

.home-shell {
    max-width: var(--home-max);
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 720px) {
    .home-shell { padding: 0 20px; }
}

.home-section {
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 980px) {
    .home-section { padding: 88px 0; }
}

.home-section:last-of-type { border-bottom: 0; }

/* ======================================================================
   Hero
   ====================================================================== */

.home-hero {
    padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px);
    border-bottom: 1px solid var(--border);
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: -0.005em;
}

.home-hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Brand cluster: iris mark + wordmark */
.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.home-brand-iris {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at center,
            #fff 0 1.2px,
            transparent 1.6px,
            #0a0a0a 2.2px 6px,
            var(--accent) 6.4px 12px,
            color-mix(in srgb, var(--accent) 35%, #000) 12.4px 14px,
            transparent 14.4px
        );
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
        0 0 24px color-mix(in srgb, var(--accent) 22%, transparent);
}

.home-brand-iris::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    filter: blur(0.3px);
}

.home-brand-name {
    font-family: var(--home-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--text);
    line-height: 1;
}

.home-hero h1 {
    font-family: var(--home-font);
    font-weight: 700;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 24px;
    max-width: 16ch;
    text-wrap: balance;
}

.home-hero-deck {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 36px;
    max-width: 38em;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    font-family: var(--home-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, transform 0.1s ease-out;
    text-decoration: none;
    line-height: 1;
}

.home-btn:active { transform: translateY(1px); }

.home-btn-primary {
    background: var(--accent);
    color: #fff;
}
.home-btn-primary:hover { background: var(--accent-hover); }

.home-btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.home-btn-ghost:hover {
    border-color: var(--text-secondary);
}

.home-btn-arrow {
    display: inline-block;
    transition: transform 0.15s ease-out;
}

.home-btn:hover .home-btn-arrow {
    transform: translateX(3px);
}

/* Hero stats */
.home-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 860px;
}

@media (min-width: 720px) {
    .home-hero-stats {
        grid-template-columns: repeat(5, 1fr);
    }
}

.home-stat-value {
    display: block;
    font-family: var(--home-font);
    font-weight: 600;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.home-stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.3;
}

/* ======================================================================
   Section heading
   ====================================================================== */

.home-section-head {
    margin-bottom: 40px;
    max-width: 36em;
}

.home-section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.home-section h2 {
    font-family: var(--home-font);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    text-wrap: balance;
}

.home-section-lead {
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 16px 0 0;
    max-width: 38em;
    text-wrap: pretty;
}

/* ======================================================================
   Section body grid (text left, list right on desktop)
   ====================================================================== */

.home-section-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 980px) {
    .home-section-body {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 80px;
    }
}

.home-prose {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: var(--home-read);
}

.home-prose p {
    margin: 0 0 1.2em;
}

.home-prose strong {
    font-weight: 600;
    color: var(--text);
}

.home-prose code {
    font-family: var(--home-mono);
    font-size: 0.88em;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
}

.home-prose a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.home-prose a:hover {
    color: var(--accent-hover);
}

/* Feature list */
.home-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.home-features li {
    padding-left: 18px;
    position: relative;
}

.home-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

.home-feature-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.home-feature-desc {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ======================================================================
   FAQ
   ====================================================================== */

.home-faq {
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 980px) {
    .home-faq { padding: 88px 0; }
}

.home-faq-head {
    max-width: 36em;
    margin: 0 0 32px;
}

.home-faq-head h2 {
    font-family: var(--home-font);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    text-wrap: balance;
}

.home-faq-list {
    max-width: 800px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-faq-item {
    border-top: 1px solid var(--border);
}

.home-faq-item:last-of-type {
    border-bottom: 1px solid var(--border);
}

.home-faq-q {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 22px 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.4;
    transition: color 0.15s ease-out;
}

@media (min-width: 720px) {
    .home-faq-q {
        font-size: 17px;
        padding: 26px 4px;
        gap: 28px;
    }
}

.home-faq-q::-webkit-details-marker { display: none; }

.home-faq-q:hover { color: var(--accent); }
.home-faq-q:hover .home-faq-icon { border-color: var(--accent); color: var(--accent); }

.home-faq-index {
    font-family: var(--home-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.home-faq-q-text {
    text-wrap: balance;
}

.home-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}

.home-faq-item[open] .home-faq-icon {
    transform: rotate(45deg);
    border-color: var(--accent);
    color: var(--accent);
}

.home-faq-a {
    padding: 0 4px 26px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
}

@media (min-width: 720px) {
    .home-faq-a { gap: 28px; padding: 0 4px 30px; }
}

.home-faq-a > p {
    grid-column: 2;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    max-width: 60ch;
}

.home-faq-a a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ======================================================================
   Closing strip - hairline bottom row, no card
   ====================================================================== */

.home-closing {
    padding: 0;
}

.home-closing-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

@media (min-width: 720px) {
    .home-closing-strip {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 32px 0;
        gap: 32px;
    }
}

.home-closing-text {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.home-closing-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.005em;
    transition: color 0.15s ease-out;
}

.home-closing-link:hover {
    color: var(--accent-hover);
}

.home-closing-link:hover .home-btn-arrow {
    transform: translateX(3px);
}

/* ======================================================================
   Scope callout: short table that contrasts global vs per-server systems
   so visitors don't assume gacha follows broker/empresa account rules.
   Used at the end of the Garagem section.
   ====================================================================== */

.home-scope {
    margin-top: 36px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--accent) 3%, transparent);
}

.home-scope-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.home-scope-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
}

.home-scope-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.home-scope-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-scope-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.home-scope-list li:first-child {
    border-top: 0;
}

.home-scope-feature {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.home-scope-tag {
    font-family: var(--home-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg);
}

.home-scope-tag.global {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.home-scope-tag.guild {
    color: var(--text);
    border-color: var(--text-muted);
}

/* ======================================================================
   Premium plans
   ====================================================================== */

.home-section-premium {
    background:
        radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 60%),
        var(--bg);
}

.home-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

@media (max-width: 960px) {
    .home-plans {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.home-plan {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 150ms ease-out, transform 150ms ease-out;
}

.home-plan:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    transform: translateY(-2px);
}

.home-plan-featured {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent) 0%, transparent 40%),
        var(--bg);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.home-plan-head {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.home-plan-tag {
    display: inline-block;
    font-family: var(--home-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.home-plan-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text);
    letter-spacing: -0.01em;
}

.home-plan-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.home-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.home-plan-price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.home-plan-price-period {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.home-plan-price-alt {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.home-plan-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.home-plan-perks li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 18px;
    position: relative;
}

.home-plan-perks li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
}

.home-plan-perk-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.home-plan-perk-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.home-plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
    margin-top: auto;
}

.home-plan-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.home-plan-cta-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.home-plan-cta-primary:hover {
    background: color-mix(in srgb, var(--accent) 85%, #000);
    color: #fff;
    border-color: color-mix(in srgb, var(--accent) 85%, #000);
}

.home-plans-note {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.55;
}

/* ======================================================================
   Ad slots
   ====================================================================== */

.home .ad-slot {
    margin: 0 auto;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    min-height: 1px;
}

.home .ad-slot:empty { display: none; }
.home .ad-slot ins { margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
    .home *,
    .home *::before,
    .home *::after {
        transition: none !important;
        animation: none !important;
    }
}
