@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --brand: #2563eb;
    --brand-dark: #252a67;
    --wine: #942530;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #ffffff;
    --soft: #f8fafc;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    overflow-x: hidden; overflow-y: auto;
}

.home-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    background:
        linear-gradient(140deg, rgba(37, 99, 235, 0.08), transparent 36%),
        linear-gradient(320deg, rgba(148, 37, 48, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    
}

.home-shell::before,
.home-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-shell::before {
    background:
        linear-gradient(120deg, transparent 0%, rgba(37, 99, 235, 0.05) 34%, transparent 58%),
        linear-gradient(240deg, transparent 12%, rgba(148, 37, 48, 0.045) 48%, transparent 74%);
    filter: blur(28px);
    opacity: 0.9;
    transform: scale(1.08);
    animation: ambient-sheet 14s ease-in-out infinite alternate;
}

.home-shell::after {
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 0.7px, transparent 0.7px);
    background-size: 22px 22px;
    opacity: 0.22;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent);
}

@keyframes ambient-sheet {
    from {
        transform: scale(1.08) translate3d(-12px, -8px, 0);
    }

    to {
        transform: scale(1.08) translate3d(12px, 8px, 0);
    }
}

.home-topbar,
.selector-stage,
.home-toast {
    position: relative;
    z-index: 1;
}

.home-topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px clamp(20px, 5vw, 48px);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-symbol {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #252a67 0%, #172554 100%);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.18);
    overflow: hidden;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease;
}

.home-brand:hover .brand-symbol {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 24px 58px rgba(37, 99, 235, 0.26);
}

.brand-symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.home-brand strong,
.home-brand small {
    display: block;
}

.home-brand strong {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.home-brand small {
    margin-top: 4px;
    color: var(--muted);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 11px;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.nav-load {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

.selector-stage {
    min-height: calc(100vh - 76px);
    width: min(1060px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(30px, 5vh, 52px);
    padding: 28px 0 72px;
}

.selector-copy {
    width: min(1240px, calc(100vw - 24px));
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--brand);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(37, 99, 235, 0.24);
}

.selector-copy h1 {
    display: flex;
    justify-content: center;
    margin: 0;
    color: var(--ink);
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(36px, 5.8vw, 78px);
    font-weight: 750;
    letter-spacing: -0.052em;
    line-height: 1.04;
    white-space: nowrap;
    overflow: visible;
}

.selector-copy p {
    max-width: 520px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.75;
}

.text-reveal-wrapper {
    display: inline-block;
    overflow: hidden;
    margin-inline: -0.12em;
    padding-inline: 0.12em;
    vertical-align: bottom;
}

.text-reveal-title {
    width: max-content;
    max-width: none;
    overflow: visible;
    margin-inline: -0.44em;
    padding-inline: 0.44em;
    white-space: nowrap;
}

.text-reveal-content {
    display: block;
    opacity: 0;
    transform: translateY(110%);
    padding-bottom: 0.08em;
    transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 1200ms ease;
}

.title-main {
    line-height: 1.08;
    letter-spacing: inherit;
    white-space: nowrap;
}

.title-gradient {
    display: inline-block;
    padding-inline-end: 0.08em;
    margin-inline-end: -0.04em;
    color: transparent;
    background: linear-gradient(95deg, #2563eb 0%, #60a5fa 32%, #cd4552 72%, #942530 100%);
    background-size: 210% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 10px 24px rgba(37, 99, 235, 0.12));
    animation: title-gradient-flow 6s ease-in-out infinite alternate;
}

@keyframes title-gradient-flow {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

.reveal-active .text-reveal-content {
    opacity: 1;
    transform: translateY(0);
}

.report-options {
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.report-option {
    --accent: var(--brand);
    --lift: 0px;
    --scale: 1;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    min-height: 288px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    color: var(--ink);
    font: inherit;
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    isolation: isolate;
    overflow: hidden;
    cursor: pointer;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift)) scale(var(--scale));
    transform-style: preserve-3d;
    transition:
        border-color 360ms ease,
        box-shadow 460ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
        background 360ms ease;
}

.option-border {
    position: absolute;
    inset: -1px;
    z-index: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 0deg,
        transparent 54deg,
        color-mix(in srgb, var(--accent) 64%, white) 104deg,
        transparent 164deg,
        transparent 216deg,
        color-mix(in srgb, var(--accent) 34%, white) 260deg,
        transparent 310deg,
        transparent 360deg
    );
    animation: border-spin 5s linear infinite;
    transition: opacity 360ms ease;
}

.option-border::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.9);
}

@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes border-spin {
    to {
        --border-angle: 360deg;
    }
}

.report-option::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        color-mix(in srgb, var(--accent) 12%, transparent),
        transparent 46%
    );
    transition: opacity 400ms ease;
}

.report-option::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.75) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 850ms cubic-bezier(0.16, 1, 0.3, 1), opacity 350ms ease;
}

.report-option:hover,
.report-option:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.12),
        0 0 52px color-mix(in srgb, var(--accent) 18%, transparent);
    --lift: -8px;
    --scale: 1.01;
    outline: none;
}

.report-option:hover::before,
.report-option:focus-visible::before,
.report-option:hover .option-border,
.report-option:focus-visible .option-border {
    opacity: 1;
}

.report-option:hover::after,
.report-option:focus-visible::after {
    opacity: 1;
    transform: translateX(120%);
}

.report-option-disabled {
    --accent: var(--wine);
}

.report-option-evo {
    --accent: var(--wine);
    --line: #f3c7cb;
}

.report-option-evo .option-border::after {
    background:
        radial-gradient(circle at 70% 18%, rgba(251, 113, 133, 0.12), transparent 32%),
        rgba(255, 255, 255, 0.9);
}

.report-option-evo:hover,
.report-option-evo:focus-visible {
    box-shadow:
        0 30px 80px rgba(56, 15, 20, 0.14),
        0 0 58px rgba(205, 69, 82, 0.22);
}

.report-option > :not(.option-border) {
    position: relative;
    z-index: 2;
}

.option-status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: translateZ(28px);
}

.is-ready {
    color: #166534;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.is-ready::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.32);
    animation: status-pulse 1.8s ease-out infinite;
}

@keyframes status-pulse {
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.is-soon {
    color: var(--wine);
    background: rgba(148, 37, 48, 0.08);
    border: 1px solid rgba(148, 37, 48, 0.16);
}

.option-image {
    position: relative;
    width: 112px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    transform: translateZ(46px);
    transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 650ms ease;
}

.option-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.42) 50%, transparent 82%);
    transform: translateX(-130%);
    transition: transform 850ms cubic-bezier(0.16, 1, 0.3, 1);
}

.report-option:hover .option-image::after,
.report-option:focus-visible .option-image::after {
    transform: translateX(130%);
}

.report-option:hover .option-image,
.report-option:focus-visible .option-image {
    transform: translateY(-3px) scale(1.035);
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.18);
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-image-odonto {
    background: var(--brand-dark);
}

.option-image-evo {
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.28), transparent 34%),
        linear-gradient(135deg, #f3c7cb 0%, #cd4552 48%, #942530 100%);
}

.option-content {
    display: block;
    width: 100%;
    transform: translateZ(34px);
}

.option-content strong,
.option-content small {
    display: block;
}

.option-content strong {
    color: var(--ink);
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.option-content small {
    max-width: 250px;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.option-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, white);
    border: 1px solid color-mix(in srgb, var(--accent) 14%, white);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: translateZ(36px);
}

.option-action iconify-icon {
    font-size: 16px;
    transition: transform 300ms ease;
}

.report-option:hover .option-action iconify-icon,
.report-option:focus-visible .option-action iconify-icon {
    transform: translate(2px, -2px);
}

.report-option-disabled .option-action iconify-icon {
    transform: none;
}

.home-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    max-width: calc(100vw - 32px);
    padding: 0 16px;
    color: #334155;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 320ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.home-toast iconify-icon {
    color: var(--wine);
    font-size: 19px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-500 { transition-delay: 500ms; }

@media (max-width: 760px) {
    html,
    body {
        height: 100%;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        overscroll-behavior-y: none;
        touch-action: pan-y;
    }

    .home-shell {
        height: 100dvh;
        min-height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    .home-topbar {
        padding: 18px 20px;
    }

    .selector-stage {
        min-height: calc(100svh - 74px);
        width: min(420px, calc(100% - 32px));
        justify-content: flex-start;
        padding: 52px 0 40px;
        touch-action: pan-y;
    }

    .selector-copy h1 {
        font-size: clamp(28px, 8.35vw, 42px);
    }

    .selector-copy p {
        font-size: 14px;
    }

    .report-options {
        grid-template-columns: 1fr;
        gap: 14px;
        touch-action: pan-y;
    }

    .report-option {
        min-height: 240px;
        touch-action: pan-y;
    }

    .option-image {
        width: 96px;
    }
}

@media (max-width: 420px) {
    .selector-stage {
        width: calc(100% - 24px);
        padding-top: 38px;
    }

    .report-option {
        min-height: 224px;
        padding: 18px;
    }

    .eyebrow::before,
    .eyebrow::after {
        width: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .report-option {
        transform: none !important;
    }
}
