:root {
    --ui-radius: 24px;
    --ui-soft: rgba(67, 97, 238, .08);
    --ui-softer: rgba(67, 97, 238, .045);
    --ui-ring: rgba(67, 97, 238, .22);
    --ui-glass: rgba(255, 255, 255, .84);
    --ui-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 30px -18px rgba(15, 23, 42, .22);
    --ui-shadow-up: 0 2px 4px rgba(15, 23, 42, .05), 0 30px 54px -28px rgba(37, 57, 150, .45);
    --ui-ease: cubic-bezier(.22, .9, .3, 1);
}

body.dark-mode {
    --ui-soft: rgba(129, 150, 255, .16);
    --ui-softer: rgba(129, 150, 255, .08);
    --ui-glass: rgba(23, 33, 54, .86);
    --ui-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -18px rgba(0, 0, 0, .8);
    --ui-shadow-up: 0 2px 6px rgba(0, 0, 0, .5), 0 30px 54px -28px rgba(0, 0, 0, .9);
}

section[id] {
    scroll-margin-top: 90px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--ui-ring);
    outline-offset: 2px;
}

.scroll-progress {
    position: fixed;
    z-index: 1500;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(270deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: right;
}

.to-top {
    position: fixed;
    z-index: 900;
    bottom: 22px;
    left: 22px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--ui-shadow-up);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .3s, visibility .3s, transform .35s var(--ui-ease);
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#header {
    padding: 10px 14px;
    border-radius: 20px;
    background: var(--ui-glass);
    box-shadow: var(--ui-shadow);
    backdrop-filter: blur(16px);
}

#header.scrolled {
    box-shadow: var(--ui-shadow-up);
}

.logo {
    font-size: 1.3rem;
}

.logo img {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.nav-menu li a {
    border-radius: 12px;
    font-size: .88rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--ui-soft);
}

.theme-toggle,
.menu-btn {
    border: 0;
    border-radius: 13px;
    background: var(--ui-soft);
    font-size: 1.05rem;
}

.btn {
    justify-content: center;
    border-radius: 13px;
    transition: transform .25s var(--ui-ease), box-shadow .25s, background .2s, color .2s, border-color .2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 28px -18px var(--primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 22px 34px -18px var(--primary);
}

.btn-install {
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--dark);
}

.btn-install:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-install[hidden] {
    display: none;
}

.side-menu {
    border: 0;
    border-radius: 24px 0 0 24px;
    visibility: hidden;
    transition: right .35s var(--ui-ease), visibility .35s;
}

.side-menu.active {
    visibility: visible;
}

.side-menu .nav-menu li a {
    border: 0;
    border-radius: 14px;
    background: var(--ui-softer);
}

.hero {
    padding-bottom: 50px;
    background:
        radial-gradient(52rem 36rem at 88% 8%, rgba(67, 97, 238, .15), transparent 62%),
        radial-gradient(44rem 32rem at 6% 92%, rgba(6, 214, 160, .13), transparent 62%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 0;
    background: var(--ui-soft);
    font-size: .82rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(6, 214, 160, .22);
    animation: landPulse 2.2s ease-in-out infinite;
}

.hero-text h1 {
    line-height: 1.5;
}

.hero-text h1 span,
.report-text h2 span,
.ai-text h2 span,
.plans-title h2 span,
.compare-title h2 span {
    background: linear-gradient(135deg, var(--primary), #7c5cf0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-buttons .btn {
    height: 52px;
    padding: 0 1.5rem;
}

.hero-stats {
    gap: .75rem;
}

.stat {
    min-width: 122px;
    padding: .8rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--ui-glass);
    box-shadow: var(--ui-shadow);
    transition: transform .3s var(--ui-ease), box-shadow .3s;
}

.stat:hover {
    box-shadow: var(--ui-shadow-up);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 1.65rem;
}

.stat-label {
    font-size: .78rem;
}

.hero-visual {
    position: relative;
    isolation: isolate;
}

.hero-visual::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 92%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ui-soft) 0 52%, var(--ui-softer) 53% 70%, transparent 71%);
}

.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .9rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--ui-glass);
    box-shadow: var(--ui-shadow-up);
    color: var(--dark);
    font-size: .78rem;
    white-space: nowrap;
    backdrop-filter: blur(12px);
    animation: landFloat 5s ease-in-out infinite;
}

.hero-chip i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.hero-chip.first {
    top: 6%;
    right: 0;
}

.hero-chip.second {
    bottom: 4%;
    left: 0;
    animation-delay: -2.5s;
}

.hero-chip.second i {
    background: linear-gradient(135deg, #10b981, #059669);
}

.report-section,
.ai-section {
    padding: 90px 20px;
}

.report-container {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
}

.connector {
    display: none;
}

.report-visual,
.report-text {
    flex: 1 1 0;
    min-width: 0;
}

.report-text {
    text-align: right;
}

.report-list {
    align-items: stretch;
}

.report-visual img,
.ai-visual img {
    max-width: 100%;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: linear-gradient(160deg, var(--white), var(--ui-soft));
    box-shadow: var(--ui-shadow);
    filter: none;
    transition: transform .45s var(--ui-ease), box-shadow .45s;
}

.report-visual img:hover,
.ai-visual img:hover {
    box-shadow: var(--ui-shadow-up);
    transform: translateY(-6px);
}

.report-badge,
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 0;
    border-radius: 99px;
    font-size: .8rem;
}

.report-badge { background: var(--ui-soft); }

.report-text h2,
.ai-text h2 {
    font-size: 2.1rem;
    line-height: 1.6;
}

.report-text p,
.ai-text p {
    font-size: .98rem;
}

.report-list,
.ai-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.report-list li,
.ai-list li {
    gap: .7rem;
    padding: .7rem .8rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    font-size: .82rem;
    line-height: 1.8;
    text-align: right;
    transition: border-color .25s, transform .3s var(--ui-ease), box-shadow .3s;
}

.report-list li:hover,
.ai-list li:hover {
    border-color: var(--primary);
    box-shadow: var(--ui-shadow);
    transform: translateY(-3px);
}

.report-list li i,
.ai-list li i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--ui-soft);
    font-size: .95rem;
}

.plans-section {
    background: var(--ui-softer);
}

.plans-title h2,
.compare-title h2 {
    font-size: 2.1rem;
}

.plans-title h2::after,
.compare-title h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 5px;
    margin: .5rem auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.compare-title p {
    font-size: .98rem;
}

.billing-toggle {
    width: max-content;
    margin-right: auto;
    margin-left: auto;
    padding: .55rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--white);
    box-shadow: var(--ui-shadow);
}

.billing-label {
    font-size: .95rem;
    transition: color .2s;
}

.plans-grid {
    align-items: start;
    gap: 1.25rem;
}

.plan-card {
    padding: 8px;
    border-radius: 28px;
    box-shadow: var(--ui-shadow);
    transition: opacity .8s ease, transform .45s var(--ui-ease), box-shadow .35s, border-color .35s;
}

.plan-card:hover {
    box-shadow: var(--ui-shadow-up);
}

.plan-card.visible:hover {
    transform: translateY(-8px);
}

.plan-header {
    border: 0;
    border-radius: 21px;
    background: var(--ui-softer);
}

.plan-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto .6rem;
    border-radius: 19px;
    background: var(--ui-soft);
    font-size: 1.5rem;
}

.plan-name {
    font-size: 1.1rem;
}

.plan-price {
    font-size: 1.7rem;
}

.plan-price span {
    font-size: .75rem;
}

#planPro {
    border-color: var(--primary) !important;
    box-shadow: var(--ui-shadow-up) !important;
}

#planPro .plan-header {
    background: linear-gradient(150deg, var(--primary), var(--primary-dark)) !important;
}

#planPro .plan-icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

#planPro .plan-name,
#planPro .plan-price,
#planPro .plan-price span {
    color: #fff;
}

#planPro .badge {
    display: inline-block;
    background: #fff !important;
    color: var(--primary-dark) !important;
}

.plan-features li {
    font-size: .82rem;
}

.plan-features li i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(6, 214, 160, .14);
    font-size: .7rem;
}

.plan-features li i.fa-times {
    background: rgba(255, 107, 107, .14);
}

.plan-more-btn {
    border: 0;
    border-radius: 11px;
    background: var(--ui-soft);
}

.plan-details {
    border-radius: 18px;
    background: var(--ui-softer);
}

.plan-details.open {
    margin-top: .75rem;
}

.plan-cta {
    padding: 14px 12px 10px;
}

.compare-table-wrapper {
    border-radius: var(--ui-radius);
    background: var(--white);
    box-shadow: var(--ui-shadow);
}

.compare-table th {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
    background: var(--ui-soft);
    font-size: .92rem;
}

.compare-table th:nth-child(4) {
    background: linear-gradient(150deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.compare-table td {
    font-size: .84rem;
    transition: background .2s;
}

.compare-table td:nth-child(4) {
    background: var(--ui-softer);
}

.compare-table tbody tr:hover td {
    background: var(--ui-soft);
}

.footer {
    margin-top: 40px;
    border: 0;
    border-radius: 36px 36px 0 0;
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(160deg, #4361ee, #2f43a8);
}

body.dark-mode .footer {
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(129, 150, 255, .16), transparent 60%),
        linear-gradient(160deg, #1b2750, #101830);
}

.footer-col h4,
.footer-links a,
.footer-links span,
.footer-bottom p,
.footer-bottom p strong {
    color: #fff !important;
}

.footer-col h4::after {
    background: var(--secondary);
}

.footer-col p {
    color: rgba(255, 255, 255, .82);
}

.footer-links a,
.footer-links span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    opacity: .85;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links a i,
.footer-links span i {
    color: #fff;
    font-size: .8rem;
}

.social-links a {
    border: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.social-links a:hover {
    background: #fff;
    color: #3a56d4;
}

.enamad-box {
    margin-top: .75rem;
    border: 0;
    border-radius: 20px;
    background: #fff;
}

.enamad-box span {
    color: #4a5568;
}

.footer-bottom {
    border-color: rgba(255, 255, 255, .18);
}

.modal-overlay {
    background: rgba(15, 23, 42, .55);
}

.modal {
    padding: 28px;
    border-radius: 28px;
    box-shadow: var(--ui-shadow-up);
    transform: translate(-50%, -46%) scale(.94);
    transition: opacity .3s, visibility .3s, transform .4s var(--ui-ease);
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 90px;
    height: 5px;
    border-radius: 0 0 99px 99px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(50%);
}

.modal-close {
    border-radius: 12px;
    font-size: 1rem;
}

.modal-title {
    font-size: 1.25rem;
}

.modal-content ul li {
    border-radius: 14px;
    background: var(--ui-softer);
}

.modal-content ul li i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--ui-soft);
    font-size: .95rem;
}

.form-control {
    min-height: 48px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.form-control:focus {
    box-shadow: 0 0 0 4px var(--ui-ring);
}

body.loading .hero-chip {
    animation-play-state: paused;
}

@keyframes landRise {
    from { opacity: 0; transform: translateY(22px); }
}

@keyframes landPulse {
    50% { box-shadow: 0 0 0 7px rgba(6, 214, 160, .06); }
}

@keyframes landFloat {
    50% { transform: translateY(-12px); }
}

@media (max-width: 900px) {
    .hero {
        padding-bottom: 40px;
    }

    .hero-visual::before,
    .hero-chip {
        display: none;
    }

    .report-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .report-visual,
    .report-text {
        flex: none;
        width: 100%;
    }

    .report-text {
        text-align: center;
    }

    .report-list li,
.ai-list li {
        justify-content: flex-start;
    }

    .plan-card {
        height: 100%;
    }
}

@media (max-width: 560px) {
    .report-list,
.ai-list {
        grid-template-columns: 1fr;
    }

    .report-text h2,
.ai-text h2,
.plans-title h2,
.compare-title h2 {
        font-size: 1.45rem;
    }

    .nav-buttons .btn {
        padding: 0 .8rem;
        height: 38px;
        font-size: .74rem;
    }

    .stat {
        flex: 1;
        min-width: 0;
        padding: .6rem .4rem;
    }

    .hero-stats {
        flex-wrap: nowrap;
        width: 100%;
    }

    .report-visual img,
.ai-visual img {
        padding: .75rem;
        border-radius: 22px;
    }

    .to-top {
        bottom: 14px;
        left: 14px;
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
