:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-2: #171717;
    --surface-3: #1d1d1d;
    --text: #f0ede8;
    --muted: rgba(240, 237, 232, 0.72);
    --muted-2: rgba(240, 237, 232, 0.52);
    --border: rgba(240, 237, 232, 0.08);
    --gold: #e8c547;
    --green: #4ade80;
    --danger: #fb7185;
    --max-width: 1100px;
    --nav-height: 82px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(232, 197, 71, 0.12), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(232, 197, 71, 0.08), transparent 22%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    cursor: none;
}

a,
button,
input,
select,
textarea,
label {
    cursor: none !important;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.055;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background: #ffffff;
}

.cursor-ring {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    transition: width 180ms ease, height 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.cursor-ring.is-hovering {
    width: 44px;
    height: 44px;
    border-color: rgba(232, 197, 71, 0.95);
    background: rgba(232, 197, 71, 0.08);
}

.shell {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--nav-height);
    backdrop-filter: blur(18px);
    background: rgba(10, 10, 10, 0.72);
    border-bottom: 1px solid var(--border);
}

.brand-mark,
.hero-title,
.section-title,
.section-subtitle,
.action-card h2,
.result-title,
.stat-value {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.brand-mark {
    color: var(--text);
    font-size: 1.05rem;
    text-decoration: none;
    max-width: 240px;
    line-height: 1.05;
}

.navbar-toggler,
.navbar-toggler:focus {
    border: 1px solid var(--border);
    box-shadow: none;
    border-radius: 0;
}

.navbar-toggler-icon {
    filter: invert(0.95);
}

.nav-link {
    color: var(--muted);
    padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link:focus,
.brand-mark:hover {
    color: var(--text);
}

.nav-lang .nav-link {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
}

.marquee-strip {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(17, 17, 17, 0.72);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    padding: 0.7rem 0;
    color: var(--muted-2);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: marquee 24s linear infinite;
    white-space: nowrap;
}

.site-main {
    padding-top: 1.25rem;
}

.hero-wrap {
    padding-top: 1rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: stretch;
}

.hero-copy {
    position: relative;
    padding: 1.2rem 0 1.4rem;
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: -2.5rem auto auto -4rem;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(232, 197, 71, 0.16), transparent 62%);
    pointer-events: none;
    z-index: -1;
}

.eyebrow,
.section-meta,
.micro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.7rem);
    line-height: 0.96;
    max-width: 10ch;
    margin: 0;
}

.hero-subtitle,
.section-copy {
    color: var(--muted);
    font-size: 1rem;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.info-strip,
.privacy-banner,
.attempt-pill,
.flash-panel,
.micro-badge {
    border: 1px solid var(--border);
    background: rgba(23, 23, 23, 0.92);
}

.privacy-banner {
    margin-top: 1.5rem;
    padding: 0.95rem 1rem;
    color: var(--muted);
}

.hero-stats {
    display: flex;
}

.trust-panel {
    width: 100%;
    display: grid;
    gap: 1px;
    background: var(--border);
    padding: 1px;
    border: 1px solid var(--border);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.92), rgba(17, 17, 17, 0.96));
    border: 1px solid var(--border);
    padding: 1.1rem;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-value {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 0.95;
}

.stat-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.feature-grid,
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.editorial-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.editorial-grid-single {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.results-shell {
    display: grid;
    gap: 1rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 0.98;
}

.section-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.02;
}

.page-card,
.action-card,
.result-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.96), rgba(17, 17, 17, 0.98));
    border: 1px solid var(--border);
    padding: 1.35rem;
    isolation: isolate;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.page-card::before,
.action-card::before,
.result-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(232, 197, 71, 0.2), transparent 36%);
    transition: opacity 180ms ease;
    z-index: -1;
}

.page-card-secondary {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(14, 14, 14, 0.98));
}

.action-card:hover,
.result-card:hover,
.page-card.interactive-panel:hover {
    background: linear-gradient(180deg, rgba(29, 29, 29, 0.98), rgba(21, 21, 21, 0.98));
    border-color: rgba(232, 197, 71, 0.28);
    transform: translateY(-2px);
}

.action-card:hover::before,
.result-card:hover::before,
.page-card.interactive-panel:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    margin-bottom: 2.2rem;
    color: var(--text);
    transition: color 180ms ease, border-color 180ms ease;
}

.card-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.action-card:hover .card-icon {
    color: var(--gold);
    border-color: rgba(232, 197, 71, 0.28);
}

.action-card h2 {
    font-size: 1.55rem;
    margin-bottom: 0.8rem;
}

.result-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--muted);
}

.attempt-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    color: var(--text);
}

.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
}

.status-live {
    background: var(--green);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.status-text-live {
    color: var(--green);
}

.metric-stack {
    display: grid;
    gap: 0.85rem;
    margin: 1.25rem 0 1rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 0.8rem;
    color: var(--muted);
}

.clean-list li {
    padding-left: 1rem;
    position: relative;
}

.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--gold);
}

.btn {
    min-height: 44px;
    border-radius: 0;
    padding: 0.8rem 1.1rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: none !important;
}

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #101010;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #f0d169;
    border-color: #f0d169;
    color: #101010;
}

.btn-ghost,
.btn-outline-dark {
    background: rgba(23, 23, 23, 0.9);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: rgba(29, 29, 29, 0.96);
    border-color: rgba(232, 197, 71, 0.28);
    color: var(--gold);
}

.btn-sm {
    min-height: 38px;
    padding: 0.55rem 0.9rem;
}

.form-label {
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 0;
    border: 1px solid var(--border);
    background-color: rgba(12, 12, 12, 0.9);
    color: var(--text);
    padding: 0.85rem 0.95rem;
}

.form-control::placeholder {
    color: rgba(240, 237, 232, 0.35);
}

.form-control:focus,
.form-select:focus {
    color: var(--text);
    background-color: rgba(14, 14, 14, 0.96);
    border-color: rgba(232, 197, 71, 0.42);
    box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.08);
}

.form-select {
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(240, 237, 232, 0.65) 50%),
        linear-gradient(135deg, rgba(240, 237, 232, 0.65) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(1.1em + 2px),
        calc(100% - 13px) calc(1.1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.form-text,
.text-muted {
    color: var(--muted-2) !important;
}

.flash-panel {
    color: var(--text);
    border-radius: 0;
    padding: 1rem 1.1rem;
}

.alert-success {
    border-left: 2px solid var(--green);
}

.alert-danger {
    border-left: 2px solid var(--danger);
}

.alert-warning {
    border-left: 2px solid var(--gold);
}

.alert-info {
    border-left: 2px solid rgba(125, 211, 252, 0.9);
}

.btn-close {
    filter: invert(1) grayscale(1);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 0.9rem 0.65rem;
}

.table thead th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.audit-list {
    display: grid;
    gap: 0.8rem;
}

.audit-row {
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    background: rgba(17, 17, 17, 0.9);
    display: grid;
    gap: 0.2rem;
}

.audit-row strong {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.1rem 0 1.8rem;
    color: var(--muted-2);
    font-style: italic;
}

.animate-in {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 991px) {
    body,
    a,
    button,
    input,
    select,
    textarea,
    label {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    .hero-panel,
    .editorial-grid,
    .editorial-grid-single {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 767px) {
    .shell {
        width: min(calc(100% - 1.25rem), var(--max-width));
    }

    .site-main {
        padding-top: 0.75rem;
    }

    .hero-title {
        max-width: none;
    }

    .page-card,
    .action-card,
    .result-card,
    .stat-card {
        padding: 1.05rem;
    }
}
