/* =========================================================
   8FINGERFAST
   MAIN WEBSITE STYLES
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #111827;

    background: #ffffff;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 50;

    height: 74px;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #edf0f4;

    backdrop-filter: blur(12px);
}


.header-inner {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.logo {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    font-weight: 800;

    white-space: nowrap;
}


.admin-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    margin-right: 10px;
}

.admin-logo-text {
    font-size: 20px;
    font-weight: 800;
}

.admin-logo-text span {
    color: #b49aff;
}


/* NAVIGATION */

.main-nav {
    display: flex;

    align-items: center;

    gap: 30px;

    margin-left: auto;
}


.main-nav a {
    color: #4b5563;

    font-size: 13px;

    font-weight: 600;

    transition: 0.2s ease;
}


.main-nav a:hover {
    color: #4f46e5;
}


/* HEADER ACTIONS */

.header-actions {
    display: flex;

    align-items: center;

    gap: 18px;
}


.login-link {
    color: #374151;

    font-size: 13px;

    font-weight: 600;
}


.login-link:hover {
    color: #4f46e5;
}


.signup-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 9px;

    background: #111827;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    transition: 0.2s ease;
}


.signup-btn:hover {
    background: #1f2937;

    transform: translateY(-1px);
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    position: relative;

    overflow: hidden;

    padding: 90px 0 85px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(99, 102, 241, 0.13),
            transparent 35%
        ),

        radial-gradient(
            circle at 20% 70%,
            rgba(59, 130, 246, 0.08),
            transparent 35%
        ),

        #f8fafc;
}


.hero-grid {
    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    align-items: center;

    gap: 70px;
}


/* HERO CONTENT */

.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 11px;

    border: 1px solid #e0e7ff;

    border-radius: 999px;

    background: #ffffff;

    color: #4f46e5;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;
}


.badge-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #4f46e5;
}


.hero-content h1 {
    margin-top: 22px;

    font-size: clamp(52px, 6vw, 76px);

    line-height: 0.98;

    letter-spacing: -4px;

    font-weight: 900;

    color: #111827;
}


.hero-content h1 span {
    color: #4f46e5;
}


.hero-description {
    max-width: 590px;

    margin-top: 25px;

    color: #667085;

    font-size: 17px;

    line-height: 1.75;
}


/* HERO BUTTONS */

.hero-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 32px;
}


.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.btn:hover {
    transform: translateY(-2px);
}


.btn-primary {
    background: #4f46e5;

    color: #ffffff;

    box-shadow:
        0 10px 25px
        rgba(79, 70, 229, 0.2);
}


.btn-primary:hover {
    background: #4338ca;
}


.btn-secondary {
    background: #ffffff;

    border: 1px solid #dfe3e8;

    color: #111827;
}


.btn-secondary:hover {
    background: #f8fafc;
}


/* TRUST */

.hero-trust {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 42px;
}


.trust-item strong {
    display: block;

    font-size: 13px;

    color: #111827;
}


.trust-item span {
    display: block;

    margin-top: 2px;

    color: #98a2b3;

    font-size: 10px;
}


.trust-divider {
    width: 1px;

    height: 28px;

    background: #dfe3e8;
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    position: relative;

    min-height: 420px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.hero-glow {
    position: absolute;

    width: 370px;
    height: 370px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(79, 70, 229, 0.18),
            rgba(59, 130, 246, 0.05)
        );

    filter: blur(5px);
}


.typing-preview-card {
    position: relative;

    z-index: 2;

    width: min(100%, 500px);

    padding: 25px;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.9);

    box-shadow:
        0 30px 70px
        rgba(15, 23, 42, 0.12);

    backdrop-filter: blur(15px);
}


/* PREVIEW TOP */

.preview-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 18px;

    border-bottom: 1px solid #edf0f4;
}


.preview-dots {
    display: flex;

    gap: 5px;
}


.preview-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d1d5db;
}


.preview-label {
    color: #98a2b3;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.2px;
}


/* PREVIEW STATS */

.preview-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1px;

    margin-top: 20px;

    background: #edf0f4;
}


.preview-stats > div {
    padding: 18px;

    text-align: center;

    background: #ffffff;
}


.preview-stats strong {
    display: block;

    font-size: 31px;

    line-height: 1;

    color: #111827;
}


.preview-stats span {
    display: block;

    margin-top: 6px;

    color: #98a2b3;

    font-size: 10px;

    font-weight: 700;
}


/* PREVIEW TEXT */

.preview-text {
    margin-top: 24px;

    padding: 20px;

    border-radius: 12px;

    background: #f8fafc;

    color: #9ca3af;

    font-size: 17px;

    line-height: 1.8;
}


.preview-correct {
    color: #16a34a;
}


.preview-current {
    padding-bottom: 2px;

    border-bottom: 2px solid #4f46e5;

    color: #111827;
}


/* PREVIEW PROGRESS */

.preview-progress {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 20px;
}


.progress-track {
    flex: 1;

    height: 6px;

    overflow: hidden;

    border-radius: 99px;

    background: #e5e7eb;
}


.progress-fill {
    width: 67%;

    height: 100%;

    border-radius: inherit;

    background: #4f46e5;
}


.preview-progress > span {
    color: #667085;

    font-size: 11px;

    font-weight: 700;
}


/* FLOATING SCORE */

.floating-score {
    position: absolute;

    z-index: 5;

    right: -15px;

    bottom: 25px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px 16px;

    border: 1px solid #edf0f4;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 18px 40px
        rgba(15, 23, 42, 0.1);
}


.score-icon {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #dcfce7;

    color: #16a34a;

    font-weight: 800;
}


.floating-score strong {
    display: block;

    color: #111827;

    font-size: 11px;
}


.floating-score span {
    display: block;

    margin-top: 2px;

    color: #98a2b3;

    font-size: 9px;
}


/* =========================================================
   SECTION COMMON
========================================================= */

.modes-section,
.why-section {
    padding: 100px 0;
}


.section-heading {
    max-width: 650px;

    margin: 0 auto 45px;

    text-align: center;
}


.section-label {
    color: #4f46e5;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


.section-heading h2 {
    margin-top: 10px;

    color: #111827;

    font-size: 38px;

    line-height: 1.2;

    letter-spacing: -1.8px;
}


.section-heading p {
    margin-top: 12px;

    color: #667085;

    font-size: 14px;
}


/* =========================================================
   TYPING MODES
========================================================= */

.modes-section {
    background: #ffffff;
}


.modes-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 16px;
}


.mode-card {
    grid-column: span 2;

    position: relative;

    min-height: 260px;

    display: flex;

    flex-direction: column;

    padding: 25px;

    border:
        1px solid
        #e8ecf1;

    border-radius: 16px;

    background: #ffffff;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.mode-card:hover {
    transform: translateY(-5px);

    border-color: #d7dafe;

    box-shadow:
        0 20px 45px
        rgba(15, 23, 42, 0.08);
}


.mode-featured {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f5f3ff 100%
        );
}


.mode-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 21px;
}


.mode-icon-purple {
    background: #ede9fe;
}


.mode-icon-blue {
    background: #dbeafe;
}


.mode-icon-green {
    background: #dcfce7;
}


.mode-icon-orange {
    background: #ffedd5;
}


.mode-icon-pink {
    background: #fce7f3;
}


.mode-content {
    margin-top: auto;
}


.mode-tag {
    display: inline-block;

    margin-bottom: 7px;

    color: #4f46e5;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}


.mode-content h3 {
    color: #111827;

    font-size: 20px;

    letter-spacing: -0.5px;
}


.mode-content p {
    max-width: 310px;

    margin-top: 8px;

    color: #667085;

    font-size: 12px;

    line-height: 1.65;
}


.mode-link {
    display: inline-block;

    margin-top: 18px;

    color: #4f46e5;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   WHY SECTION
========================================================= */

.why-section {
    background: #f8fafc;
}


.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


.benefit-card {
    padding: 30px;

    border:
        1px solid
        #e7ebf0;

    border-radius: 15px;

    background: #ffffff;
}


.benefit-number {
    color: #c7d2fe;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;
}


.benefit-card h3 {
    margin-top: 25px;

    color: #111827;

    font-size: 18px;
}


.benefit-card p {
    margin-top: 8px;

    color: #667085;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   STATS
========================================================= */

.stats-section {
    padding: 65px 0;

    background: #111827;

    color: #ffffff;
}


.stats-container {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);
}


.stat-block {
    padding: 10px 25px;

    text-align: center;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.1);
}


.stat-block:last-child {
    border-right: none;
}


.stat-block strong {
    display: block;

    font-size: 32px;

    line-height: 1;

    letter-spacing: -1px;
}


.stat-block span {
    display: block;

    margin-top: 7px;

    color: #9ca3af;

    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 100px 0;
}


.cta-card {
    position: relative;

    min-height: 330px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 55px 60px;

    overflow: hidden;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #4338ca
        );

    box-shadow:
        0 25px 60px
        rgba(79, 70, 229, 0.2);
}


.cta-content {
    position: relative;

    z-index: 3;

    max-width: 580px;
}


.cta-content .section-label {
    color: #c7d2fe;
}


.cta-content h2 {
    margin-top: 10px;

    color: #ffffff;

    font-size: 40px;

    line-height: 1.15;

    letter-spacing: -1.7px;
}


.cta-content p {
    max-width: 500px;

    margin-top: 12px;

    color: #ddd6fe;

    font-size: 14px;
}


.btn-light {
    margin-top: 25px;

    background: #ffffff;

    color: #3730a3;
}


.btn-light:hover {
    background: #f8fafc;
}


/* CTA DECORATION */

.cta-decoration {
    position: relative;

    width: 330px;

    height: 230px;

    flex-shrink: 0;
}


.cta-circle {
    position: absolute;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);
}


.circle-one {
    width: 260px;
    height: 260px;

    right: -20px;
    top: -10px;
}


.circle-two {
    width: 170px;
    height: 170px;

    right: 35px;
    top: 35px;
}


.cta-keyboard {
    position: absolute;

    right: 30px;
    top: 85px;

    display: flex;

    gap: 7px;

    transform:
        rotate(-7deg);
}


.cta-keyboard span {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.1);

    color: #ffffff;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 40px 0;

    border-top:
        1px solid
        #edf0f4;

    background: #ffffff;
}


.footer-inner {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        auto;

    align-items: center;

    gap: 35px;
}


.footer-brand p {
    max-width: 300px;

    margin-top: 10px;

    color: #98a2b3;

    font-size: 11px;
}


.footer-links {
    display: flex;

    justify-content: center;

    gap: 22px;
}


.footer-links a {
    color: #667085;

    font-size: 11px;

    font-weight: 600;
}


.footer-links a:hover {
    color: #4f46e5;
}


.footer-copy {
    color: #98a2b3;

    font-size: 10px;

    text-align: right;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .main-nav {
        gap: 16px;
    }


    .hero-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .hero-content {
        text-align: center;
    }


    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-actions,
    .hero-trust {
        justify-content: center;
    }


    .modes-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .mode-card {
        grid-column: span 1;
    }


    .benefits-grid {
        grid-template-columns:
            1fr;
    }


    .cta-decoration {
        display: none;
    }


    .footer-inner {
        grid-template-columns:
            1fr 1fr;
    }


    .footer-copy {
        text-align: left;
    }

}


@media (max-width: 700px) {

    .container {
        width:
            min(
                100% - 28px,
                1180px
            );
    }


    .site-header {
        height: auto;

        padding: 14px 0;
    }


    .header-inner {
        flex-wrap: wrap;

        gap: 14px;
    }


    .main-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        overflow-x: auto;

        padding-top: 5px;

        gap: 20px;
    }


    .header-actions {
        margin-left: auto;
    }


    .login-link {
        display: none;
    }


    .hero-section {
        padding:
            60px 0;
    }


    .hero-content h1 {
        font-size: 48px;

        letter-spacing: -2.5px;
    }


    .hero-description {
        font-size: 14px;
    }


    .hero-actions {
        flex-direction: column;
    }


    .hero-actions .btn {
        width: 100%;
    }


    .hero-trust {
        gap: 12px;
    }


    .trust-item span {
        font-size: 9px;
    }


    .typing-preview-card {
        padding: 18px;
    }


    .floating-score {
        right: 0;

        bottom: 0;
    }


    .modes-section,
    .why-section,
    .cta-section {
        padding: 70px 0;
    }


    .section-heading h2 {
        font-size: 30px;
    }


    .modes-grid {
        grid-template-columns:
            1fr;
    }


    .mode-card {
        min-height: 230px;
    }


    .stats-container {
        grid-template-columns:
            repeat(2, 1fr);

        row-gap: 30px;
    }


    .stat-block:nth-child(2) {
        border-right: none;
    }


    .cta-card {
        padding: 40px 25px;
    }


    .cta-content h2 {
        font-size: 31px;
    }


    .footer-inner {
        grid-template-columns:
            1fr;
    }


    .footer-links {
        justify-content: flex-start;

        flex-wrap: wrap;
    }


    .footer-copy {
        text-align: left;
    }

}
/* =========================================================
   PREMIUM USER SIDEBAR
   ========================================================= */

.user-menu-button {
    width: 46px;
    height: 46px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.06);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.user-menu-button:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);

    transform: translateY(-1px);
}

.menu-line {
    width: 20px;
    height: 2px;

    border-radius: 10px;

    background: currentColor;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* SIDEBAR OVERLAY */

.user-sidebar-overlay {
    position: fixed;

    inset: 0;

    background: rgba(5, 8, 20, 0.58);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 9998;
}

.user-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* SIDEBAR */

.user-sidebar {
    position: fixed;

    top: 0;
    right: 0;

    width: 370px;
    max-width: 92vw;
    height: 100vh;

    background: #ffffff;

    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);

    transform: translateX(105%);

    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    z-index: 9999;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.user-sidebar.active {
    transform: translateX(0);
}


/* SIDEBAR HEADER */

.user-sidebar-header {
    min-height: 94px;

    padding: 22px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #edf0f5;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8faff 100%
        );
}

.user-sidebar-user {
    display: flex;
    align-items: center;

    min-width: 0;
}

.user-avatar {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #5b5ff7,
            #7c3aed
        );

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(91, 95, 247, 0.25);
}

.user-sidebar-info {
    margin-left: 13px;

    display: flex;
    flex-direction: column;

    min-width: 0;
}

.user-sidebar-info strong {
    color: #151927;

    font-size: 15px;
    font-weight: 750;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-sidebar-info span {
    margin-top: 3px;

    color: #7b8190;

    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* CLOSE BUTTON */

.sidebar-close {
    width: 38px;
    height: 38px;

    border: none;
    border-radius: 10px;

    background: #f3f4f7;

    color: #555b68;

    font-size: 26px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.sidebar-close:hover {
    background: #e9ebf1;
    color: #171a24;

    transform: rotate(4deg);
}


/* SIDEBAR BODY */

.user-sidebar-body {
    flex: 1;

    padding: 20px 14px;

    overflow-y: auto;
}

.user-sidebar-body::-webkit-scrollbar {
    width: 5px;
}

.user-sidebar-body::-webkit-scrollbar-thumb {
    background: #d8dce5;
    border-radius: 20px;
}


/* SECTION */

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    display: block;

    padding: 0 12px;
    margin-bottom: 8px;

    color: #969cab;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;
}


/* SIDEBAR LINK */

.sidebar-link {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 48px;

    padding: 0 12px;
    margin: 3px 0;

    border-radius: 12px;

    color: #444a58;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.sidebar-link:hover {
    background: #f3f5ff;

    color: #5659ed;

    transform: translateX(2px);
}

.sidebar-icon {
    width: 34px;
    height: 34px;

    margin-right: 11px;

    border-radius: 9px;

    background: #f4f5f8;

    color: #676d7b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;

    flex-shrink: 0;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-link:hover .sidebar-icon {
    background: #e8e9ff;
    color: #5659ed;
}


/* COMING SOON */

.sidebar-coming {
    margin-left: auto;

    padding: 4px 7px;

    border-radius: 6px;

    background: #f1f2f5;

    color: #9297a3;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* SIDEBAR FOOTER */

.user-sidebar-footer {
    padding: 14px;

    border-top: 1px solid #edf0f5;

    background: #ffffff;
}

.sidebar-logout {
    display: flex;
    align-items: center;

    min-height: 48px;

    padding: 0 12px;

    border-radius: 12px;

    color: #e04444;

    text-decoration: none;

    font-size: 14px;
    font-weight: 650;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-logout:hover {
    background: #fff1f1;
    color: #d52f2f;
}

.sidebar-logout .sidebar-icon {
    background: #fff1f1;
    color: #e04444;
}


/* PREVENT PAGE SCROLL WHEN SIDEBAR IS OPEN */

body.sidebar-open {
    overflow: hidden;
}


/* MOBILE */

@media (max-width: 768px) {

    .main-nav {
        display: none;
    }

    .user-sidebar {
        width: 340px;
    }

}

@media (max-width: 480px) {

    .user-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .user-sidebar-header {
        padding: 18px 16px;
    }

    .user-sidebar-body {
        padding: 18px 10px;
    }

}
/* =========================================================
   USER DASHBOARD
   ========================================================= */

.dashboard-page {
    min-height: calc(100vh - 80px);
    background: #f7f8fc;
}

.dashboard-hero {
    padding: 70px 0 50px;
}

.dashboard-welcome {
    margin-bottom: 36px;
}

.dashboard-small-title {
    display: inline-block;

    margin-bottom: 10px;

    color: #5b5ff7;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.13em;
}

.dashboard-welcome h1 {
    margin: 0;

    color: #171a27;

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.12;

    letter-spacing: -0.035em;
}

.dashboard-welcome p {
    margin: 13px 0 0;

    color: #747a89;

    font-size: 16px;
}


/* DASHBOARD CARDS */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.dashboard-card {
    position: relative;

    min-height: 150px;

    padding: 25px;

    border: 1px solid #e9ebf1;
    border-radius: 20px;

    background: #ffffff;

    color: inherit;

    text-decoration: none;

    display: flex;
    align-items: center;

    box-shadow:
        0 8px 30px rgba(20, 24, 40, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);

    border-color: #dfe1ff;

    box-shadow:
        0 18px 45px rgba(20, 24, 40, 0.09);
}

.dashboard-card-primary {
    background:
        linear-gradient(
            135deg,
            #5b5ff7,
            #7048df
        );

    border-color: transparent;

    color: #ffffff;

    box-shadow:
        0 15px 40px rgba(91, 95, 247, 0.22);
}

.dashboard-card-primary:hover {
    border-color: transparent;

    box-shadow:
        0 22px 50px rgba(91, 95, 247, 0.28);
}

.dashboard-card-icon {
    width: 52px;
    height: 52px;

    margin-right: 18px;

    border-radius: 15px;

    background: #f2f3f8;

    color: #5b5ff7;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    flex-shrink: 0;
}

.dashboard-card-primary .dashboard-card-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.dashboard-card h3 {
    margin: 0 0 6px;

    font-size: 17px;
    font-weight: 750;
}

.dashboard-card p {
    margin: 0;

    color: #858b99;

    font-size: 13px;

    line-height: 1.55;
}

.dashboard-card-primary p {
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-arrow {
    position: absolute;

    right: 22px;
    top: 50%;

    transform: translateY(-50%);

    color: #a1a5b0;

    font-size: 22px;

    transition:
        transform 0.2s ease;
}

.dashboard-card:hover .dashboard-arrow {
    transform:
        translate(4px, -50%);
}

.dashboard-card-primary .dashboard-arrow {
    color: rgba(255, 255, 255, 0.8);
}


/* STATS */

.dashboard-stats {
    padding: 0 0 70px;
}

.dashboard-stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.dashboard-stat {
    padding: 24px;

    border: 1px solid #e9ebf1;
    border-radius: 17px;

    background: #ffffff;
}

.dashboard-stat span {
    display: block;

    margin-bottom: 10px;

    color: #858a98;

    font-size: 12px;
    font-weight: 600;
}

.dashboard-stat strong {
    color: #191c28;

    font-size: 30px;
    font-weight: 800;

    letter-spacing: -0.03em;
}


/* DASHBOARD MOBILE */

@media (max-width: 800px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 480px) {

    .dashboard-hero {
        padding: 45px 0 35px;
    }

    .dashboard-welcome h1 {
        font-size: 31px;
    }

    .dashboard-card {
        min-height: 135px;
        padding: 20px;
    }

    .dashboard-card-icon {
        width: 46px;
        height: 46px;

        margin-right: 13px;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   8FINGERFAST - LIGHT / DARK MODE
========================================================= */

/* ---------- THEME VARIABLES ---------- */

:root {
    --theme-bg: #ffffff;
    --theme-surface: #ffffff;
    --theme-surface-soft: #f8fafc;
    --theme-text: #111827;
    --theme-text-secondary: #4b5563;
    --theme-text-muted: #667085;
    --theme-border: #e8ecf1;
    --theme-border-soft: #edf0f4;
}


/* =========================================================
   THEME TOGGLE BUTTON
========================================================= */

.theme-toggle {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dfe3e8;
    border-radius: 11px;

    background: #ffffff;
    color: #374151;

    cursor: pointer;

    font-size: 18px;
    line-height: 1;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.theme-toggle:hover {
    background: #f8fafc;
    border-color: #cfd5df;
    color: #4f46e5;

    transform: translateY(-1px);

    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.08);
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}


/* =========================================================
   DARK MODE - GLOBAL
========================================================= */

html.dark-mode body {
    background: #0f1117;
    color: #f3f4f6;
}


/* =========================================================
   HEADER
========================================================= */

html.dark-mode .site-header {
    background: rgba(15, 17, 23, 0.96);
    border-bottom-color: #252936;
}

html.dark-mode .logo-text {
    color: #f3f4f6;
}

html.dark-mode .logo-text span {
    color: #818cf8;
}

html.dark-mode .main-nav a {
    color: #aeb4c2;
}

html.dark-mode .main-nav a:hover {
    color: #818cf8;
}

html.dark-mode .login-link {
    color: #d7d9e0;
}

html.dark-mode .login-link:hover {
    color: #818cf8;
}

html.dark-mode .signup-btn {
    background: #6366f1;
    color: #ffffff;
}

html.dark-mode .signup-btn:hover {
    background: #4f46e5;
}


/* DARK MODE TOGGLE */

html.dark-mode .theme-toggle {
    background: #171a23;
    border-color: #303442;
    color: #f3f4f6;
}

html.dark-mode .theme-toggle:hover {
    background: #20232e;
    border-color: #45495a;
    color: #a5b4fc;
}


/* =========================================================
   HERO
========================================================= */

html.dark-mode .hero-section {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(99, 102, 241, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 70%,
            rgba(59, 130, 246, 0.08),
            transparent 35%
        ),
        #0f1117;
}

html.dark-mode .hero-content h1 {
    color: #f8fafc;
}

html.dark-mode .hero-content h1 span {
    color: #818cf8;
}

html.dark-mode .hero-description {
    color: #9da4b2;
}

html.dark-mode .hero-badge {
    background: #171a23;
    border-color: #303442;
    color: #818cf8;
}

html.dark-mode .badge-dot {
    background: #818cf8;
}


/* HERO SECONDARY BUTTON */

html.dark-mode .btn-secondary {
    background: #171a23;
    border-color: #303442;
    color: #f3f4f6;
}

html.dark-mode .btn-secondary:hover {
    background: #20232e;
}


/* HERO TRUST */

html.dark-mode .trust-item strong {
    color: #f3f4f6;
}

html.dark-mode .trust-item span {
    color: #8d94a3;
}

html.dark-mode .trust-divider {
    background: #303442;
}


/* =========================================================
   HERO TYPING PREVIEW
========================================================= */

html.dark-mode .typing-preview-card {
    background: rgba(23, 26, 35, 0.94);
    border-color: rgba(255, 255, 255, 0.08);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35);
}

html.dark-mode .preview-top {
    border-bottom-color: #303442;
}

html.dark-mode .preview-dots span {
    background: #4b5160;
}

html.dark-mode .preview-label {
    color: #858c9c;
}

html.dark-mode .preview-stats {
    background: #303442;
}

html.dark-mode .preview-stats > div {
    background: #1b1e27;
}

html.dark-mode .preview-stats strong {
    color: #f3f4f6;
}

html.dark-mode .preview-stats span {
    color: #858c9c;
}

html.dark-mode .preview-text {
    background: #11141b;
    color: #8f96a5;
}

html.dark-mode .preview-current {
    color: #f3f4f6;
}

html.dark-mode .progress-track {
    background: #303442;
}

html.dark-mode .preview-progress > span {
    color: #8d94a3;
}


/* FLOATING SCORE */

html.dark-mode .floating-score {
    background: #1b1e27;
    border-color: #303442;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35);
}

html.dark-mode .floating-score strong {
    color: #f3f4f6;
}

html.dark-mode .floating-score span {
    color: #858c9c;
}


/* =========================================================
   TYPING MODES
========================================================= */

html.dark-mode .modes-section {
    background: #13161d;
}

html.dark-mode .mode-card {
    background: #191c25;
    border-color: #292d38;
}

html.dark-mode .mode-card:hover {
    border-color: #4448a8;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.25);
}

html.dark-mode .mode-featured {
    background:
        linear-gradient(
            145deg,
            #191c25 0%,
            #202039 100%
        );
}

html.dark-mode .mode-content h3 {
    color: #f3f4f6;
}

html.dark-mode .mode-content p {
    color: #949baa;
}

html.dark-mode .mode-link {
    color: #818cf8;
}

html.dark-mode .mode-tag {
    color: #818cf8;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

html.dark-mode .section-heading h2 {
    color: #f3f4f6;
}

html.dark-mode .section-heading p {
    color: #949baa;
}

html.dark-mode .section-label {
    color: #818cf8;
}


/* =========================================================
   WHY SECTION
========================================================= */

html.dark-mode .why-section {
    background: #0f1117;
}

html.dark-mode .benefit-card {
    background: #191c25;
    border-color: #292d38;
}

html.dark-mode .benefit-card h3 {
    color: #f3f4f6;
}

html.dark-mode .benefit-card p {
    color: #949baa;
}

html.dark-mode .benefit-number {
    color: #6366f1;
}


/* =========================================================
   STATS
========================================================= */

html.dark-mode .stats-section {
    background: #080a0f;
}


/* =========================================================
   CTA
========================================================= */

html.dark-mode .cta-section {
    background: #0f1117;
}


/* =========================================================
   FOOTER
========================================================= */

html.dark-mode .site-footer {
    background: #0b0d12;
    border-top-color: #252936;
}

html.dark-mode .footer-brand p {
    color: #858c9c;
}

html.dark-mode .footer-links a {
    color: #858c9c;
}

html.dark-mode .footer-links a:hover {
    color: #818cf8;
}

html.dark-mode .footer-copy {
    color: #737a89;
}


/* =========================================================
   SMOOTH THEME TRANSITION
========================================================= */

body,
.site-header,
.hero-section,
.modes-section,
.why-section,
.site-footer,
.mode-card,
.benefit-card,
.typing-preview-card,
.floating-score,
.preview-stats > div,
.preview-text,
.btn-secondary,
.theme-toggle {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   DARK MODE - MOBILE
========================================================= */

@media (max-width: 700px) {

    html.dark-mode .main-nav {
        background: transparent;
    }

    html.dark-mode .hero-content h1 {
        color: #f8fafc;
    }

}
/* =========================================================
   TYPING TEST - DARK MODE
========================================================= */

html.dark-mode .typing-page {
    background: #0f1015;
}

html.dark-mode .typing-header h1 {
    color: #f5f5f7;
}

html.dark-mode .typing-header p {
    color: #a5a7b3;
}

html.dark-mode .test-controls {
    background: #171820;
    border-color: #292b35;
}

html.dark-mode .control-label {
    color: #a5a7b3;
}

html.dark-mode .test-select {
    background: #171820;
    border-color: #343641;
    color: #f5f5f7;
}

html.dark-mode .test-select option {
    background: #171820;
    color: #f5f5f7;
}

html.dark-mode .typing-card {
    background: #171820;
    border-color: #292b35;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.25);
}

html.dark-mode .live-stats {
    border-bottom-color: #292b35;
}

html.dark-mode .live-stat {
    border-right-color: #292b35;
}

html.dark-mode .live-stat strong {
    color: #f5f5f7;
}

html.dark-mode .live-stat span {
    color: #a5a7b3;
}

html.dark-mode .timer {
    color: #f5f5f7;
}

html.dark-mode .timer.warning {
    color: #f87171;
}

html.dark-mode .test-status {
    color: #a5a7b3;
}

html.dark-mode .typing-text {
    background: #11131a;
    border-color: #292b35;
    color: #777b89;
}

html.dark-mode .typing-text .correct {
    color: #f5f5f7;
}

html.dark-mode .typing-text .incorrect {
    color: #f87171;
    background: rgba(220, 38, 38, 0.16);
}

html.dark-mode .typing-input {
    background: #11131a;
    border-color: #343641;
    color: #f5f5f7;
}

html.dark-mode .typing-input::placeholder {
    color: #737784;
}

html.dark-mode .typing-input:focus {
    border-color: #6366f1;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.14);
}

html.dark-mode .typing-input:disabled {
    background: #0d0e13;
    color: #666a76;
}

html.dark-mode .typing-hint {
    color: #777b89;
}

html.dark-mode .restart-btn {
    background: #f5f5f7;
    color: #171820;
}

html.dark-mode .restart-btn:hover {
    background: #ffffff;
}

html.dark-mode .test-result {
    background: #171820;
    border-color: #292b35;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.25);
}

html.dark-mode .result-title {
    color: #f5f5f7;
}

html.dark-mode .result-item {
    background: #11131a;
}

html.dark-mode .result-item strong {
    color: #f5f5f7;
}

html.dark-mode .result-item span {
    color: #a5a7b3;
}

/* Mobile borders */

@media (max-width: 700px) {

    html.dark-mode .live-stat:nth-child(2) {
        border-right: none;
    }

    html.dark-mode .live-stat:nth-child(-n + 2) {
        border-bottom-color: #292b35;
    }

}
/* =========================================================
   CUSTOM TEST - DARK MODE
========================================================= */

html.dark-mode .custom-test-page {
    background: #0f1015;
    color: #f5f5f7;
}

html.dark-mode .custom-test-page h1,
html.dark-mode .custom-test-page h2,
html.dark-mode .custom-test-page h3 {
    color: #f5f5f7;
}

html.dark-mode .custom-test-page p {
    color: #a5a7b3;
}

/* SETUP CARD */

html.dark-mode .custom-setup-card {
    background: #171820;
    border-color: #292b35;
    color: #f5f5f7;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

/* FORM LABELS */

html.dark-mode .custom-field label {
    color: #d6d8df;
}

/* TEXTAREA + SELECT */

html.dark-mode .custom-field textarea,
html.dark-mode .custom-field select {
    background: #11131a;
    border-color: #343641;
    color: #f5f5f7;
}

html.dark-mode .custom-field textarea::placeholder {
    color: #737784;
}

html.dark-mode .custom-field textarea:focus,
html.dark-mode .custom-field select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
    outline: none;
}

/* SELECT OPTION */

html.dark-mode .custom-field select option {
    background: #171820;
    color: #f5f5f7;
}

/* SAMPLE TEXT BUTTONS */

html.dark-mode .sample-btn {
    background: #11131a;
    border-color: #343641;
    color: #d6d8df;
}

html.dark-mode .sample-btn:hover {
    background: #20232e;
    border-color: #6366f1;
    color: #a5b4fc;
}

/* DURATION BUTTONS */

html.dark-mode .duration-option {
    background: #11131a;
    border-color: #343641;
    color: #d6d8df;
}

html.dark-mode .duration-option:hover {
    border-color: #6366f1;
    background: #20232e;
}

html.dark-mode .duration-option.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

/* START BUTTON */

html.dark-mode .custom-start-btn {
    background: #6366f1;
    color: #ffffff;
}

html.dark-mode .custom-start-btn:hover {
    background: #4f46e5;
}

/* TYPING AREA */

html.dark-mode .custom-typing-area,
html.dark-mode .custom-test-card,
html.dark-mode .typing-card {
    background: #171820;
    border-color: #292b35;
    color: #f5f5f7;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

/* CUSTOM TYPING TEXT */

html.dark-mode .custom-typing-text,
html.dark-mode .typing-text {
    background: #11131a;
    border-color: #292b35;
    color: #777b89;
}

/* CORRECT TEXT */

html.dark-mode .custom-typing-text .correct,
html.dark-mode .typing-text .correct {
    color: #f5f5f7;
}

/* WRONG TEXT */

html.dark-mode .custom-typing-text .incorrect,
html.dark-mode .typing-text .incorrect {
    color: #f87171;
    background: rgba(220, 38, 38, 0.16);
}

/* TYPING INPUT */

html.dark-mode .custom-typing-input,
html.dark-mode .typing-input {
    background: #11131a;
    border-color: #343641;
    color: #f5f5f7;
}

html.dark-mode .custom-typing-input::placeholder,
html.dark-mode .typing-input::placeholder {
    color: #737784;
}

html.dark-mode .custom-typing-input:focus,
html.dark-mode .typing-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
    outline: none;
}

/* STATS */

html.dark-mode .custom-stat {
    color: #f5f5f7;
}

html.dark-mode .custom-stat span {
    color: #a5a7b3;
}

html.dark-mode .custom-stat strong {
    color: #f5f5f7;
}

/* RESULT CARD */

html.dark-mode .custom-result-card,
html.dark-mode .custom-result {
    background: #171820;
    border-color: #292b35;
    color: #f5f5f7;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

html.dark-mode .custom-result-card h2,
html.dark-mode .custom-result h2 {
    color: #f5f5f7;
}

html.dark-mode .custom-result-item {
    background: #11131a;
    border-color: #292b35;
}

html.dark-mode .custom-result-item strong {
    color: #f5f5f7;
}

html.dark-mode .custom-result-item span {
    color: #a5a7b3;
}

/* RESTART BUTTON */

html.dark-mode .custom-restart-btn {
    background: #f5f5f7;
    color: #171820;
}

html.dark-mode .custom-restart-btn:hover {
    background: #ffffff;
}

/* HINT / SMALL TEXT */

html.dark-mode .custom-hint,
html.dark-mode .typing-hint {
    color: #777b89;
}
/* =========================================================
   8FINGERFAST — PREMIUM UI UPGRADE
   Add this at the END of assets/css/style.css
========================================================= */

/* =========================================================
   PREMIUM GLOBAL VARIABLES
========================================================= */

:root {
    --premium-primary: #635bff;
    --premium-primary-dark: #5147e8;
    --premium-primary-soft: #f0efff;

    --premium-text: #111827;
    --premium-text-soft: #667085;
    --premium-text-muted: #98a2b3;

    --premium-border: rgba(15, 23, 42, 0.08);
    --premium-shadow:
        0 12px 35px rgba(15, 23, 42, 0.06);

    --premium-shadow-hover:
        0 24px 60px rgba(15, 23, 42, 0.11);
}


/* =========================================================
   GLOBAL POLISH
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    letter-spacing: -0.01em;
}

::selection {
    background: rgba(99, 91, 255, 0.18);
    color: #312e81;
}


/* =========================================================
   PREMIUM HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    height: 76px;

    background: rgba(255, 255, 255, 0.82);

    border-bottom: 1px solid rgba(15, 23, 42, 0.07);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.header-inner {
    gap: 28px;
}


/* =========================================================
   PREMIUM LOGO
========================================================= */

.logo {
    gap: 10px;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-mark {
    width: 38px;
    height: 38px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #635bff 0%,
            #7c3aed 100%
        );

    box-shadow:
        0 8px 20px rgba(99, 91, 255, 0.24);

    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: "";

    position: absolute;
    width: 18px;
    height: 70px;

    top: -20px;
    left: -35px;

    background: rgba(255, 255, 255, 0.22);

    transform: rotate(25deg);

    transition: left 0.5s ease;
}

.logo:hover .logo-mark::after {
    left: 50px;
}

.logo-text {
    font-size: 21px;
    font-weight: 850;
}


/* =========================================================
   PREMIUM NAVIGATION
========================================================= */

.main-nav {
    gap: 6px;
    padding: 5px;

    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 12px;

    background: rgba(248, 250, 252, 0.75);
}

.main-nav a {
    position: relative;

    padding: 8px 11px;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 650;

    color: #596273;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--premium-primary);

    background: rgba(99, 91, 255, 0.07);

    transform: translateY(-1px);
}


/* =========================================================
   PREMIUM HEADER ACTIONS
========================================================= */

.header-actions {
    gap: 10px;
}

.login-link {
    padding: 9px 11px;

    border-radius: 9px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.login-link:hover {
    background: #f5f6fa;
}

.signup-btn {
    min-height: 40px;

    padding: 0 17px;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #252b3a
        );

    box-shadow:
        0 7px 18px rgba(17, 24, 39, 0.13);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.signup-btn:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #1f2937,
            #111827
        );

    box-shadow:
        0 12px 25px rgba(17, 24, 39, 0.19);
}


/* =========================================================
   PREMIUM THEME BUTTON
========================================================= */

.theme-toggle {
    width: 40px;
    height: 40px;

    border-radius: 11px;

    background: rgba(248, 250, 252, 0.9);

    border-color: rgba(15, 23, 42, 0.08);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px) rotate(-3deg);

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.09);
}


/* =========================================================
   PREMIUM HERO
========================================================= */

.hero-section {
    min-height: 650px;

    padding:
        105px 0
        95px;

    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(99, 91, 255, 0.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 75%,
            rgba(59, 130, 246, 0.08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #fafbff 0%,
            #f7f8fc 100%
        );
}

.hero-grid {
    gap: 80px;
}


/* =========================================================
   HERO BADGE
========================================================= */

.hero-badge {
    padding: 8px 13px;

    border-color:
        rgba(99, 91, 255, 0.15);

    background:
        rgba(255, 255, 255, 0.82);

    box-shadow:
        0 6px 20px rgba(99, 91, 255, 0.06);

    backdrop-filter: blur(10px);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(99, 91, 255, 0.1);
}

.badge-dot {
    box-shadow:
        0 0 0 4px rgba(99, 91, 255, 0.1);
}


/* =========================================================
   HERO HEADING
========================================================= */

.hero-content h1 {
    font-size: clamp(52px, 6vw, 78px);

    letter-spacing: -0.055em;

    line-height: 0.98;
}

.hero-content h1 span {
    background:
        linear-gradient(
            135deg,
            #635bff 0%,
            #7c3aed 50%,
            #4f46e5 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero-description {
    color: #687386;

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   PREMIUM BUTTON SYSTEM
========================================================= */

.btn {
    min-height: 50px;

    padding: 0 22px;

    border-radius: 11px;

    letter-spacing: -0.01em;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            #635bff,
            #584fe9
        );

    box-shadow:
        0 12px 28px rgba(99, 91, 255, 0.22);
}

.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #716aff,
            #635bff
        );

    box-shadow:
        0 18px 38px rgba(99, 91, 255, 0.29);

    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);

    border-color:
        rgba(15, 23, 42, 0.09);

    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
    background: #ffffff;

    border-color:
        rgba(99, 91, 255, 0.2);

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-glow {
    width: 420px;
    height: 420px;

    background:
        radial-gradient(
            circle,
            rgba(99, 91, 255, 0.18),
            rgba(99, 91, 255, 0.03) 60%,
            transparent 72%
        );

    filter: blur(8px);

    animation:
        premiumFloat 7s ease-in-out infinite;
}

@keyframes premiumFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.025);
    }
}


/* =========================================================
   TYPING PREVIEW CARD
========================================================= */

.typing-preview-card {
    width: min(100%, 510px);

    padding: 27px;

    border:
        1px solid rgba(255, 255, 255, 0.9);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.78);

    box-shadow:
        0 35px 80px rgba(15, 23, 42, 0.12),
        0 8px 25px rgba(99, 91, 255, 0.05);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.typing-preview-card:hover {
    transform:
        translateY(-6px)
        rotateX(1deg);

    box-shadow:
        0 45px 95px rgba(15, 23, 42, 0.15);
}


/* =========================================================
   PREVIEW TEXT
========================================================= */

.preview-text {
    border:
        1px solid rgba(15, 23, 42, 0.035);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


/* =========================================================
   FLOATING SCORE
========================================================= */

.floating-score {
    padding: 14px 17px;

    border:
        1px solid rgba(255, 255, 255, 0.9);

    border-radius: 14px;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.12);

    animation:
        premiumFloat 5s ease-in-out infinite;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
    margin-bottom: 52px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: "";

    width: 22px;
    height: 2px;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            #635bff,
            #8b5cf6
        );
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 42px);

    letter-spacing: -0.045em;
}


/* =========================================================
   PREMIUM MODE CARDS
========================================================= */

.mode-card {
    min-height: 275px;

    padding: 27px;

    border:
        1px solid rgba(15, 23, 42, 0.07);

    border-radius: 20px;

    box-shadow:
        0 7px 25px rgba(15, 23, 42, 0.035);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.mode-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(99, 91, 255, 0.18);

    box-shadow:
        0 25px 55px rgba(15, 23, 42, 0.1);
}

.mode-icon {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.mode-card:hover .mode-icon {
    transform:
        translateY(-3px)
        scale(1.05);
}

.mode-featured {
    border-color:
        rgba(99, 91, 255, 0.12);

    box-shadow:
        0 12px 35px rgba(99, 91, 255, 0.07);
}


/* =========================================================
   PREMIUM BENEFIT CARDS
========================================================= */

.benefit-card {
    padding: 32px;

    border-radius: 19px;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.035);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(99, 91, 255, 0.14);

    box-shadow:
        0 22px 50px rgba(15, 23, 42, 0.08);
}

.benefit-number {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 7px;

    background: #f0efff;

    color: #635bff;

    font-size: 10px;
}


/* =========================================================
   PREMIUM STATS
========================================================= */

.stats-section {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% -100%,
            rgba(99, 91, 255, 0.35),
            transparent 55%
        ),
        #10131c;
}

.stat-block strong {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #c7d2fe
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* =========================================================
   PREMIUM CTA
========================================================= */

.cta-card {
    min-height: 350px;

    padding: 60px;

    border-radius: 26px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255, 255, 255, 0.13),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #635bff,
            #5138c9
        );

    box-shadow:
        0 30px 70px rgba(79, 70, 229, 0.2);
}

.cta-card::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    left: -100px;
    bottom: -150px;

    border-radius: 50%;

    border:
        1px solid rgba(255, 255, 255, 0.12);
}

.btn-light {
    box-shadow:
        0 12px 25px rgba(15, 23, 42, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-light:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 35px rgba(15, 23, 42, 0.18);
}


/* =========================================================
   PREMIUM FOOTER
========================================================= */

.site-footer {
    background: #fbfcfe;

    border-top:
        1px solid rgba(15, 23, 42, 0.06);
}

.footer-links a {
    position: relative;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a:hover {
    transform: translateY(-1px);
}


/* =========================================================
   PREMIUM FOCUS STATES
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 4px rgba(99, 91, 255, 0.14);
}


/* =========================================================
   PREMIUM SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #f5f6f9;
}

::-webkit-scrollbar-thumb {
    background: #c9cdd8;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aeb4c2;
}


/* =========================================================
   PREMIUM DARK MODE
========================================================= */

html.dark-mode {
    --premium-primary: #818cf8;
    --premium-primary-dark: #6366f1;
    --premium-primary-soft: #202039;
}

html.dark-mode .site-header {
    background: rgba(15, 17, 23, 0.82);

    border-bottom-color:
        rgba(255, 255, 255, 0.07);

    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.02);
}

html.dark-mode .main-nav {
    background:
        rgba(23, 26, 35, 0.75);

    border-color:
        rgba(255, 255, 255, 0.06);
}

html.dark-mode .main-nav a:hover {
    background:
        rgba(129, 140, 248, 0.1);
}

html.dark-mode .login-link:hover {
    background: #1b1e27;
}

html.dark-mode .hero-section {
    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(99, 102, 241, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 75%,
            rgba(59, 130, 246, 0.08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #10121a 0%,
            #0f1117 100%
        );
}

html.dark-mode .hero-badge {
    background:
        rgba(23, 26, 35, 0.78);

    border-color:
        rgba(129, 140, 248, 0.14);
}

html.dark-mode .typing-preview-card {
    background:
        rgba(23, 26, 35, 0.78);

    border-color:
        rgba(255, 255, 255, 0.08);

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.38);
}

html.dark-mode .typing-preview-card:hover {
    box-shadow:
        0 45px 95px rgba(0, 0, 0, 0.45);
}

html.dark-mode .btn-secondary {
    background: #171a23;

    border-color: #303442;
}

html.dark-mode .btn-secondary:hover {
    background: #20232e;
}

html.dark-mode .mode-card {
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.15);
}

html.dark-mode .mode-card:hover {
    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.28);
}

html.dark-mode .benefit-card {
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.15);
}

html.dark-mode .benefit-card:hover {
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.28);
}

html.dark-mode .benefit-number {
    background: #202039;
}

html.dark-mode .site-footer {
    background: #0b0d12;
}

html.dark-mode ::-webkit-scrollbar-track {
    background: #11131a;
}

html.dark-mode ::-webkit-scrollbar-thumb {
    background: #363a48;
}

html.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #454a5b;
}


/* =========================================================
   PREMIUM MOBILE HEADER
========================================================= */

@media (max-width: 700px) {

    .site-header {
        position: sticky;
        top: 0;
        height: auto;

        padding: 12px 0;
    }

    .header-inner {
        gap: 12px;
    }

    .main-nav {
        padding: 4px;

        border: none;

        background: transparent;

        gap: 4px;
    }

    .main-nav a {
        padding: 7px 9px;

        font-size: 11px;
    }

    .header-actions {
        gap: 7px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .signup-btn {
        min-height: 38px;

        padding: 0 13px;

        font-size: 11px;
    }

    .hero-section {
        min-height: auto;

        padding:
            75px 0
            65px;
    }

    .hero-content h1 {
        font-size: 48px;

        letter-spacing:
            -0.055em;
    }

    .typing-preview-card {
        border-radius: 18px;
    }

    .floating-score {
        right: -2px;
    }

    .cta-card {
        border-radius: 20px;

        padding:
            42px 25px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 420px) {

    .logo-text {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .header-actions .login-link {
        display: none;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 13px;
    }

    .section-heading h2 {
        font-size: 29px;
    }
}
/* =========================================================
   8FINGERFAST — PREMIUM HERO V2
   Paste at the END of assets/css/style.css
========================================================= */

.hero-section {
    position: relative;
    min-height: 720px;
    padding: 110px 0 105px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(99, 91, 255, 0.18), transparent 25%),
        radial-gradient(circle at 12% 80%, rgba(79, 70, 229, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfbff 0%, #f5f6fb 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -210px;
    border: 1px solid rgba(99, 91, 255, 0.09);
    border-radius: 50%;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    left: -190px;
    bottom: -230px;
    border: 1px solid rgba(99, 91, 255, 0.07);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
    align-items: center;
    gap: 75px;
}

/* ---------- LEFT SIDE ---------- */

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 25px;
    padding: 8px 13px;
    border: 1px solid rgba(99, 91, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
    color: #596273;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    backdrop-filter: blur(12px);
}

.badge-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #635bff;
    box-shadow: 0 0 0 5px rgba(99, 91, 255, 0.1);
}

.hero-content h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(52px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 850;
    color: #111827;
}

.hero-content h1 span {
    display: inline-block;
    background: linear-gradient(
        135deg,
        #635bff 0%,
        #7c3aed 48%,
        #4f46e5 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 590px;
    margin-top: 27px;
    color: #667085;
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.hero-buttons .btn {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 12px;
}

.hero-buttons .btn-primary {
    box-shadow: 0 14px 32px rgba(99, 91, 255, 0.25);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(99, 91, 255, 0.32);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    color: #8a93a3;
    font-size: 11px;
    font-weight: 650;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-trust-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(99, 91, 255, 0.12);
    border-radius: 8px;
    background: #fff;
    color: #635bff;
    font-size: 12px;
}

/* ---------- RIGHT SIDE ---------- */

.hero-visual {
    position: relative;
    min-height: 510px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(99, 91, 255, 0.16) 0%,
        rgba(99, 91, 255, 0.06) 42%,
        transparent 72%
    );
    filter: blur(4px);
}

/* Main dashboard card */

.typing-preview-card {
    position: relative;
    z-index: 4;
    width: min(100%, 510px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow:
        0 40px 90px rgba(15, 23, 42, 0.13),
        0 10px 30px rgba(99, 91, 255, 0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.typing-preview-card:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-7px);
    box-shadow:
        0 48px 100px rgba(15, 23, 42, 0.17),
        0 15px 35px rgba(99, 91, 255, 0.09);
}

/* Card top */

.preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 19px;
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.preview-brand-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #635bff, #7c3aed);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 7px 17px rgba(99, 91, 255, 0.23);
}

.preview-brand-text {
    color: #202534;
    font-size: 12px;
    font-weight: 800;
}

.preview-live {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.06);
    color: #059669;
    font-size: 9px;
    font-weight: 750;
}

.preview-live::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Stats */

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 14px;
}

.preview-stat {
    padding: 13px;
    border: 1px solid rgba(15, 23, 42, 0.055);
    border-radius: 13px;
    background: #f8f9fc;
}

.preview-stat small {
    display: block;
    margin-bottom: 4px;
    color: #929aaa;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-stat strong {
    color: #171b28;
    font-size: 21px;
    line-height: 1;
    letter-spacing: -0.04em;
}

/* Text area */

.preview-text {
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.045);
    border-radius: 16px;
    background: #f7f8fc;
    color: #a0a7b5;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.005em;
}

.preview-text .typed {
    color: #202534;
}

.preview-text .current {
    position: relative;
    color: #635bff;
}

.preview-text .current::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 19px;
    margin-left: 2px;
    vertical-align: -3px;
    border-radius: 2px;
    background: #635bff;
    animation: heroCursor 1s infinite;
}

@keyframes heroCursor {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

/* Progress */

.preview-progress {
    height: 5px;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9ebf2;
}

.preview-progress-fill {
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #635bff, #8b5cf6);
}

/* Keyboard */

.preview-keyboard {
    display: grid;
    gap: 5px;
    margin-top: 18px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.keyboard-key {
    width: 27px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
    color: #8b93a2;
    font-size: 8px;
    font-weight: 700;
}

.keyboard-key.active {
    border-color: rgba(99, 91, 255, 0.22);
    background: #f0efff;
    color: #635bff;
    box-shadow: 0 4px 10px rgba(99, 91, 255, 0.12);
}

/* Floating cards */

.floating-score {
    position: absolute;
    z-index: 7;
    right: -22px;
    top: 57px;
    min-width: 126px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(18px);
    animation: premiumHeroFloat 5s ease-in-out infinite;
}

.floating-score-label {
    display: block;
    margin-bottom: 4px;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-score-value {
    color: #171b28;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -0.05em;
}

.floating-score-value span {
    color: #635bff;
    font-size: 11px;
    font-weight: 750;
}

.floating-accuracy {
    position: absolute;
    z-index: 7;
    left: -30px;
    bottom: 64px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
    animation: premiumHeroFloat 6s ease-in-out infinite reverse;
}

.accuracy-ring {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 4px solid #e8e8ff;
    border-top-color: #635bff;
    border-right-color: #635bff;
    border-radius: 50%;
    color: #635bff;
    font-size: 9px;
    font-weight: 850;
}

.accuracy-text small {
    display: block;
    margin-bottom: 2px;
    color: #98a2b3;
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
}

.accuracy-text strong {
    color: #171b28;
    font-size: 15px;
}

@keyframes premiumHeroFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

/* ---------- DARK MODE ---------- */

html.dark-mode .hero-section {
    background:
        radial-gradient(circle at 82% 18%, rgba(99, 102, 241, 0.22), transparent 26%),
        radial-gradient(circle at 12% 80%, rgba(59, 130, 246, 0.09), transparent 28%),
        linear-gradient(180deg, #10121a 0%, #0d0f15 100%);
}

html.dark-mode .hero-content h1 {
    color: #f5f7fb;
}

html.dark-mode .hero-description {
    color: #9da5b5;
}

html.dark-mode .hero-badge {
    border-color: rgba(129, 140, 248, 0.15);
    background: rgba(23, 26, 35, 0.78);
    color: #aeb5c5;
}

html.dark-mode .hero-trust {
    color: #7f8797;
}

html.dark-mode .hero-trust-icon {
    border-color: rgba(129, 140, 248, 0.14);
    background: #171a23;
    color: #818cf8;
}

html.dark-mode .typing-preview-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(23, 26, 35, 0.82);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(99, 102, 241, 0.08);
}

html.dark-mode .preview-brand-text {
    color: #f2f4f8;
}

html.dark-mode .preview-stat {
    border-color: rgba(255, 255, 255, 0.06);
    background: #11141c;
}

html.dark-mode .preview-stat strong {
    color: #f2f4f8;
}

html.dark-mode .preview-text {
    border-color: rgba(255, 255, 255, 0.06);
    background: #10131a;
    color: #707887;
}

html.dark-mode .preview-text .typed {
    color: #e6e8ee;
}

html.dark-mode .preview-progress {
    background: #292d38;
}

html.dark-mode .keyboard-key {
    border-color: rgba(255, 255, 255, 0.06);
    background: #171a22;
    color: #777f90;
}

html.dark-mode .keyboard-key.active {
    border-color: rgba(129, 140, 248, 0.2);
    background: #202039;
    color: #a5b4fc;
}

html.dark-mode .floating-score,
html.dark-mode .floating-accuracy {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(23, 26, 35, 0.9);
}

html.dark-mode .floating-score-value,
html.dark-mode .accuracy-text strong {
    color: #f2f4f8;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        min-height: 500px;
    }
}

@media (max-width: 700px) {
    .hero-section {
        min-height: auto;
        padding: 75px 0 70px;
    }

    .hero-content h1 {
        font-size: clamp(43px, 12vw, 60px);
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-trust {
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    .hero-visual {
        min-height: 410px;
    }

    .typing-preview-card {
        width: 100%;
        padding: 17px;
        border-radius: 19px;
        transform: none;
    }

    .preview-text {
        min-height: 125px;
        padding: 16px;
        font-size: 13px;
    }

    .preview-stats {
        gap: 6px;
    }

    .preview-stat {
        padding: 10px;
    }

    .preview-stat strong {
        font-size: 17px;
    }

    .keyboard-key {
        width: 21px;
        height: 21px;
        font-size: 7px;
    }

    .floating-score {
        right: -5px;
        top: 25px;
        transform: scale(0.88);
    }

    .floating-accuracy {
        left: -5px;
        bottom: 28px;
        transform: scale(0.88);
    }
}

@media (max-width: 430px) {
    .hero-visual {
        min-height: 370px;
    }

    .typing-preview-card {
        padding: 13px;
    }

    .preview-text {
        min-height: 110px;
        font-size: 12px;
        line-height: 1.8;
    }

    .preview-keyboard {
        gap: 3px;
    }

    .keyboard-row {
        gap: 2px;
    }

    .keyboard-key {
        width: 18px;
        height: 19px;
        border-radius: 4px;
        font-size: 6px;
    }

    .floating-score {
        min-width: 105px;
        padding: 10px 12px;
    }

    .floating-score-value {
        font-size: 21px;
    }

    .floating-accuracy {
        padding: 9px 11px;
    }

    .accuracy-ring {
        width: 33px;
        height: 33px;
    }
}
