:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html:not(.dark) {
    color-scheme: light;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.hero-section {
    background: #050407;
}

.section-band {
    padding: 6rem 0;
    background: linear-gradient(180deg, #050407 0%, #0d0914 100%);
    color: #fff;
}

html:not(.dark) .section-band {
    background: #fff;
    color: #0f172a;
}

html:not(.dark) .section-band :is(h1, h2, h3, h4, strong, label, .text-white) {
    color: #0f172a !important;
}

html:not(.dark) .section-band :is(p, span, .text-slate-300, .text-slate-400) {
    color: #475569 !important;
}

.eyebrow {
    color: #45d7ff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-title {
    margin-top: .75rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 850;
    color: #fff;
}

html:not(.dark) .section-title {
    color: #0f172a;
}

.section-copy {
    margin-top: 1rem;
    max-width: 44rem;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

html:not(.dark) .section-copy {
    color: #475569;
}

.btn-primary,
.btn-secondary,
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border-radius: .5rem;
    min-height: 2.75rem;
    font-weight: 800;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #7c2cff, #45d7ff);
    color: #fff;
    padding: .8rem 1.1rem;
    box-shadow: 0 18px 45px rgba(124, 44, 255, .26);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    padding: .78rem 1.1rem;
}

.icon-btn {
    justify-content: center;
    width: 2.75rem;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.btn-primary:hover,
.btn-secondary:hover,
.icon-btn:hover {
    transform: translateY(-2px);
}

.btn-primary svg,
.btn-secondary svg,
.icon-btn svg,
.feature-pill svg,
.contact-row svg,
.floating-whatsapp svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
}

.mobile-link {
    border-radius: .5rem;
    padding: .75rem .85rem;
    color: #cbd5e1;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(69, 215, 255, .28);
    border-radius: .5rem;
    background: linear-gradient(135deg, rgba(124, 44, 255, .28), rgba(69, 215, 255, .12));
    color: #fff;
    padding: .55rem .85rem;
    font-size: .875rem;
    font-weight: 850;
    box-shadow: 0 0 24px rgba(124, 44, 255, .16);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.admin-nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(69, 215, 255, .55);
    background: linear-gradient(135deg, rgba(124, 44, 255, .42), rgba(69, 215, 255, .18));
}

.metric,
.premium-card,
.system-card {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .045));
    box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
}

html:not(.dark) .premium-card,
html:not(.dark) .system-card {
    border-color: rgba(15, 23, 42, .12);
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .09);
    color: #0f172a;
}

.metric {
    padding: 1rem;
}

.metric strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 850;
}

.metric span {
    color: #cbd5e1;
    font-size: .9rem;
}

.feature-pill,
.system-pill,
.contact-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: .5rem;
}

.feature-pill {
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    color: #e2e8f0;
    padding: .85rem;
    font-weight: 700;
}

html:not(.dark) .feature-pill {
    border-color: rgba(15, 23, 42, .12);
    background: rgba(15, 23, 42, .045);
    color: #0f172a;
}

.feature-pill svg {
    color: #9dffb2;
}

.system-card {
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
}

.dark .system-card {
    background: rgba(255, 255, 255, .055);
    color: #fff;
}

.system-preview {
    min-height: 15rem;
    padding: 1.25rem;
    background:
        linear-gradient(135deg, rgba(124, 44, 255, .34), rgba(69, 215, 255, .12)),
        #0c0812;
}

.system-preview.alt {
    background:
        linear-gradient(135deg, rgba(69, 215, 255, .22), rgba(157, 255, 178, .14)),
        #0c0812;
}

.preview-bar {
    display: flex;
    gap: .45rem;
    margin-bottom: 1rem;
}

.preview-bar span {
    width: .65rem;
    height: .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
}

.preview-grid {
    display: grid;
    grid-template-columns: .7fr 1fr;
    grid-template-rows: repeat(3, 3.2rem);
    gap: .75rem;
}

.preview-menu,
.preview-chart,
.preview-list {
    border-radius: .5rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
}

.preview-menu {
    grid-row: span 3;
}

.preview-chart {
    background: linear-gradient(135deg, rgba(124, 44, 255, .4), rgba(69, 215, 255, .28));
}

.preview-list.short {
    width: 72%;
}

.system-pill {
    border: 1px solid rgba(124, 44, 255, .24);
    background: rgba(124, 44, 255, .08);
    color: inherit;
    padding: .75rem .85rem;
    font-size: .9rem;
    font-weight: 750;
}

.contact-row {
    color: #e2e8f0;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-row svg {
    color: #45d7ff;
}

.form-label {
    display: grid;
    gap: .45rem;
    color: #e2e8f0;
    font-size: .9rem;
    font-weight: 750;
}

.form-input {
    width: 100%;
    min-width: 0;
    border-radius: .5rem;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    padding: .85rem .95rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: rgba(69, 215, 255, .7);
    box-shadow: 0 0 0 4px rgba(69, 215, 255, .12);
}

html:not(.dark) .form-label {
    color: #0f172a;
}

html:not(.dark) .form-input {
    border-color: rgba(15, 23, 42, .14);
    background: #fff;
    color: #0f172a;
}

html:not(.dark) .form-input::placeholder {
    color: #64748b;
}

.floating-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: grid;
    width: 3.45rem;
    height: 3.45rem;
    place-items: center;
    border-radius: 999px;
    background: #25d366;
    color: #041007;
    box-shadow: 0 18px 45px rgba(37, 211, 102, .34);
    transition: transform .2s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-3px) scale(1.03);
}

footer {
    background: #050407 !important;
    color: #fff !important;
}

footer p,
footer span,
footer a {
    color: #e2e8f0;
}

footer a:hover {
    color: #fff;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.loader-mark {
    display: grid;
    width: 6rem;
    height: 6rem;
    place-items: center;
    border-radius: .5rem;
    border: 1px solid rgba(124, 44, 255, .35);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 40px rgba(124, 44, 255, .38);
    animation: pulseGlow 1.4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        transform: scale(.96);
        opacity: .74;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .hero-section {
        min-height: auto;
    }

    .section-band {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-copy {
        font-size: 1rem;
        line-height: 1.65;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding-inline: .9rem;
    }

    .premium-card,
    .system-card {
        box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
    }

    .system-preview {
        min-height: 12rem;
        padding: 1rem;
    }

    .floating-whatsapp {
        right: .9rem;
        bottom: .9rem;
        width: 3.15rem;
        height: 3.15rem;
    }
}

@media (max-width: 768px) {
    .admin-table {
        min-width: 0;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .admin-table tbody {
        display: grid;
        gap: .9rem;
    }

    .admin-table tbody tr {
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: .5rem;
        background: rgba(255, 255, 255, .055);
        padding: .85rem;
    }

    .admin-table tbody tr td {
        display: grid;
        grid-template-columns: minmax(6.5rem, .45fr) minmax(0, 1fr);
        gap: .8rem;
        align-items: start;
        border: 0;
        padding: .55rem 0;
        overflow-wrap: anywhere;
        text-align: left;
    }

    .admin-table tbody tr td::before {
        content: attr(data-label);
        color: #94a3b8;
        font-weight: 800;
    }

    .admin-table tbody tr td[colspan] {
        display: block;
        text-align: center;
    }

    .admin-table tbody tr td[colspan]::before {
        content: none;
    }

    .admin-table .mobile-actions {
        justify-items: stretch;
    }

    .admin-table .mobile-actions form,
    .admin-table .mobile-actions button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .admin-table tbody tr td {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .eyebrow {
        letter-spacing: .12em;
    }
}
