/* =========================================================
   QUIZBOX — MODERN EDTECH DESIGN SYSTEM
   UPSC / UPPCS / CSAT / MAINS
   ========================================================= */

:root {
    /* ---------- Core Colors ---------- */
    --qb-bg: #f5f7fb;
    --qb-surface: #ffffff;
    --qb-surface-soft: #f8f9fd;

    --qb-ink: #0d1224;
    --qb-ink-2: #252b3d;
    --qb-muted: #697287;
    --qb-muted-2: #98a0b3;

    --qb-line: #e7eaf1;
    --qb-line-dark: rgba(255,255,255,.10);

    --qb-primary: #635bff;
    --qb-primary-dark: #5048e9;
    --qb-purple: #8b5cf6;
    --qb-cyan: #22d3ee;
    --qb-pink: #ec4899;
    --qb-green: #18b981;
    --qb-orange: #f59e0b;
    --qb-red: #ef4444;

    --qb-dark: #080c18;
    --qb-dark-2: #10172b;
    --qb-dark-3: #171f37;

    /* ---------- Gradients ---------- */

    --qb-gradient:
        linear-gradient(
            135deg,
            #625bff 0%,
            #8b5cf6 42%,
            #d946ef 72%,
            #22d3ee 100%
        );

    --qb-gradient-dark:
        linear-gradient(
            135deg,
            #090e1e 0%,
            #171a38 48%,
            #241b4b 100%
        );

    --qb-gradient-cyan:
        linear-gradient(
            135deg,
            #0b2630,
            #075a70,
            #0891b2
        );

    /* ---------- Shadows ---------- */

    --qb-shadow-xs:
        0 4px 16px rgba(20, 25, 50, .04);

    --qb-shadow-sm:
        0 10px 30px rgba(20, 25, 50, .07);

    --qb-shadow:
        0 20px 55px rgba(20, 25, 50, .10);

    --qb-shadow-lg:
        0 35px 100px rgba(20, 25, 50, .16);

    --qb-shadow-purple:
        0 25px 70px rgba(99, 91, 255, .24);

    /* ---------- Radius ---------- */

    --qb-radius-sm: 12px;
    --qb-radius-md: 18px;
    --qb-radius-lg: 24px;
    --qb-radius-xl: 32px;
    --qb-radius-pill: 999px;

    /* ---------- Layout ---------- */

    --qb-container: 1320px;
    --qb-section: clamp(70px, 8vw, 120px);

    /* ---------- Typography ---------- */

    --qb-font:
        "DM Sans",
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --qb-display:
        "Plus Jakarta Sans",
        "DM Sans",
        Inter,
        sans-serif;

    /* ---------- Animation ---------- */

    --qb-ease:
        cubic-bezier(.2,.8,.2,1);

    --qb-transition:
        .35s var(--qb-ease);
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: var(--qb-font);
    font-size: 15px;
    line-height: 1.6;

    color: var(--qb-ink);
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(99,91,255,.035),
            transparent 28%
        ),
        var(--qb-bg);

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   GLOBAL CONTAINER
   ========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--qb-container)
    );

    margin-inline: auto;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--qb-display);
    color: var(--qb-ink);
    letter-spacing: -.045em;
}

.section-title {
    font-family: var(--qb-display);
    font-weight: 800;
    letter-spacing: -.05em;
}

.section-heading {
    margin: 0;

    font-family: var(--qb-display);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;

    font-weight: 800;
    letter-spacing: -.06em;
}

.section-lead {
    max-width: 650px;

    margin-top: 20px;

    color: var(--qb-muted);

    font-size: 16px;
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--qb-primary);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .17em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";

    width: 24px;
    height: 2px;

    border-radius: 5px;

    background: var(--qb-gradient);
}

.gradient-text {
    background:
        linear-gradient(
            100deg,
            #a5b4fc,
            #e879f9 45%,
            #67e8f9 80%,
            #ffffff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* =========================================================
   SECTION SPACING
   ========================================================= */

.section-pad {
    padding-block: var(--qb-section);
}


/* =========================================================
   TOP BAR
   ========================================================= */

.top-strip {
    min-height: 32px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            #070b15,
            #11162a,
            #070b15
        );

    color: #aeb7ca;

    font-size: 11px;
    font-weight: 700;

    position: relative;
    z-index: 100;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.qb-nav {
    position: sticky;
    top: 0;

    z-index: 90;

    background:
        rgba(247,248,252,.78);

    border-bottom:
        1px solid rgba(20,25,45,.07);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    transition:
        background var(--qb-transition),
        box-shadow var(--qb-transition),
        border-color var(--qb-transition);
}

.qb-nav.scrolled {
    background: rgba(255,255,255,.92);

    box-shadow:
        0 12px 40px rgba(16,19,34,.08);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;

    font-family: var(--qb-display);
    font-size: 21px;
    font-weight: 800;

    letter-spacing: -.05em;

    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-right: 10px;

    border-radius: 14px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #5b5df5,
            #9b5cf6
        );

    box-shadow:
        0 10px 28px rgba(99,91,255,.32);
}

.brand-accent {
    color: var(--qb-primary);
}

.qb-nav .nav-link {
    padding: 9px 13px;

    color: #596176 !important;

    font-weight: 700;
    font-size: 13px;

    border-radius: 12px;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.qb-nav .nav-link:hover {
    color: var(--qb-primary) !important;

    background:
        rgba(99,91,255,.08);

    transform: translateY(-1px);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {
    --bs-btn-bg: var(--qb-primary);
    --bs-btn-border-color: var(--qb-primary);

    --bs-btn-hover-bg: var(--qb-primary-dark);
    --bs-btn-hover-border-color: var(--qb-primary-dark);

    border-radius: 14px !important;

    font-weight: 800;

    box-shadow:
        0 10px 25px rgba(99,91,255,.20);

    transition:
        transform .25s var(--qb-ease),
        box-shadow .25s var(--qb-ease);
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 35px rgba(99,91,255,.30);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 20px;

    border-radius: 15px;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform .3s var(--qb-ease),
        box-shadow .3s var(--qb-ease),
        background .3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
}

.hero-btn.light {
    color: #101426;

    background: #fff;

    box-shadow:
        0 15px 45px rgba(0,0,0,.22);
}

.hero-btn.glass {
    color: #fff;

    border:
        1px solid rgba(255,255,255,.16);

    background:
        rgba(255,255,255,.07);

    backdrop-filter: blur(14px);
}

.hero-btn.glass:hover {
    background:
        rgba(255,255,255,.12);
}


/* =========================================================
   HERO
   ========================================================= */

.hero-modern {
    position: relative;

    min-height: 740px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: #fff;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(99,91,255,.32),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 20%,
            rgba(34,211,238,.20),
            transparent 27%
        ),
        radial-gradient(
            circle at 55% 95%,
            rgba(236,72,153,.16),
            transparent 28%
        ),
        #080c18;
}

.hero-modern::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            115deg,
            rgba(255,255,255,.025),
            transparent 45%
        );

    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 54px 54px;

    mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            rgba(0,0,0,.5) 65%,
            transparent 100%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;

    padding-block: 95px 105px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 13px;

    border:
        1px solid rgba(255,255,255,.13);

    border-radius: 999px;

    background:
        rgba(255,255,255,.055);

    color: #dbe2f4;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .15em;
    text-transform: uppercase;

    backdrop-filter: blur(15px);
}

.hero-kicker i {
    color: #8bffda;
}

.hero-title {
    max-width: 850px;

    margin: 23px 0;

    font-family: var(--qb-display);

    font-size:
        clamp(48px, 6.4vw, 90px);

    line-height: .94;

    font-weight: 800;

    letter-spacing: -.07em;
}

.hero-sub {
    max-width: 660px;

    color: #bcc5d9;

    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;

    gap: 25px;

    margin-top: 36px;

    color: #8994ac;

    font-size: 12px;
    font-weight: 700;
}

.hero-trust strong {
    display: block;

    margin-bottom: 2px;

    color: #fff;

    font-family: var(--qb-display);
    font-size: 18px;
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    position: relative;
    z-index: 4;

    perspective: 1500px;
}

.visual-frame {
    position: relative;

    padding: 14px;

    transform:
        rotateY(-9deg)
        rotateX(4deg)
        rotateZ(.8deg);

    transform-style: preserve-3d;

    border:
        1px solid rgba(255,255,255,.14);

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.12),
            rgba(255,255,255,.035)
        );

    box-shadow:
        0 50px 120px rgba(0,0,0,.46);

    backdrop-filter: blur(28px);

    transition:
        transform .8s var(--qb-ease);
}

.visual-frame:hover {
    transform:
        rotateY(-3deg)
        rotateX(2deg)
        rotateZ(0deg)
        translateY(-6px);
}

.visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 8px 14px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #626b80;
}

.visual-screen {
    padding: 17px;

    color: #151927;

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5f6fb
        );

    box-shadow:
        inset 0 0 0 1px #e6e8ef;
}

.screen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 13px;
}

.avatar {
    width: 32px;
    height: 32px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #625bff,
            #ec4899
        );
}

.screen-grid {
    display: grid;

    grid-template-columns:
        1.2fr
        .8fr;

    gap: 10px;
}

.screen-card {
    padding: 14px;

    border:
        1px solid #e8eaf1;

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 8px 22px rgba(25,29,53,.045);
}

.screen-card.dark {
    color: #fff;

    border: 0;

    background:
        linear-gradient(
            145deg,
            #11172b,
            #1c2340
        );
}

.screen-big {
    font-family: var(--qb-display);

    font-size: 26px;

    font-weight: 900;

    letter-spacing: -.06em;
}

.screen-chart {
    height: 90px;

    margin-top: 10px;
}

.screen-chart svg {
    width: 100%;
    height: 100%;
}

.floating-ui {
    position: absolute;
    z-index: 6;

    min-width: 145px;

    padding: 12px 15px;

    border:
        1px solid rgba(255,255,255,.15);

    border-radius: 17px;

    color: #fff;

    background:
        rgba(13,18,36,.82);

    box-shadow:
        0 18px 55px rgba(0,0,0,.30);

    backdrop-filter: blur(16px);

    font-size: 11px;
}

.floating-ui b {
    display: block;

    margin-bottom: 2px;

    font-size: 18px;
}

.floating-ui.score {
    top: 80px;
    right: -35px;
}

.floating-ui.streak {
    left: -45px;
    bottom: 70px;
}


/* =========================================================
   HERO GLOWS
   ========================================================= */

.hero-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(4px);

    mix-blend-mode: screen;

    pointer-events: none;

    animation:
        qbFloat 10s ease-in-out infinite;
}

.hero-glow.a {
    width: 430px;
    height: 430px;

    top: -140px;
    right: -120px;

    background:
        radial-gradient(
            circle,
            rgba(139,92,246,.55),
            transparent 68%
        );
}

.hero-glow.b {
    width: 340px;
    height: 340px;

    left: -150px;
    bottom: -140px;

    background:
        radial-gradient(
            circle,
            rgba(34,211,238,.38),
            transparent 68%
        );

    animation-delay: -3s;
}


/* =========================================================
   MARQUEE
   ========================================================= */

.marquee-wrap {
    overflow: hidden;

    background: #fff;

    border-top:
        1px solid var(--qb-line);

    border-bottom:
        1px solid var(--qb-line);
}

.marquee-track {
    display: flex;

    width: max-content;

    gap: 55px;

    padding-block: 20px;

    color: #7d8598;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .15em;

    white-space: nowrap;

    animation:
        qbMarquee 28s linear infinite;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.marquee-track span::before {
    content: "✦";

    color: var(--qb-primary);
}


/* =========================================================
   BENTO SYSTEM
   ========================================================= */

.bento {
    display: grid;

    grid-template-columns:
        1.25fr
        .75fr
        .75fr;

    grid-auto-rows:
        minmax(190px, auto);

    gap: 18px;
}

.bento-card {
    position: relative;

    overflow: hidden;

    padding: 29px;

    border:
        1px solid var(--qb-line);

    border-radius: var(--qb-radius-lg);

    background: #fff;

    box-shadow: var(--qb-shadow-xs);

    transition:
        transform .35s var(--qb-ease),
        box-shadow .35s var(--qb-ease);
}

.bento-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--qb-shadow);
}

.bento-card.large {
    grid-row: span 2;

    color: #fff;

    border: 0;

    background:
        linear-gradient(
            145deg,
            #0d1326,
            #27214d
        );
}

.bento-card.cyan {
    background:
        linear-gradient(
            145deg,
            #e9fdff,
            #f8feff
        );
}

.bento-card.pink {
    background:
        linear-gradient(
            145deg,
            #fff0f8,
            #fff
        );
}

.bento-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    color: var(--qb-primary);

    background:
        rgba(99,91,255,.09);

    font-size: 21px;
}

.bento-card.large .bento-icon {
    color: #c9c5ff;

    background:
        rgba(255,255,255,.09);
}

.bento-orb {
    position: absolute;

    right: -65px;
    bottom: -65px;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(139,92,246,.48),
            transparent 68%
        );
}


/* =========================================================
   EXAM CARDS
   ========================================================= */

.exam-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 17px;
}

.exam-tile {
    position: relative;

    min-height: 245px;

    overflow: hidden;

    padding: 26px;

    display: block;

    color: #fff;

    border-radius: 27px;

    text-decoration: none;

    box-shadow:
        0 20px 50px rgba(20,25,50,.14);

    transition:
        transform .35s var(--qb-ease),
        box-shadow .35s var(--qb-ease);
}

.exam-tile:hover {
    color: #fff;

    transform:
        translateY(-9px)
        scale(1.01);

    box-shadow:
        0 30px 75px rgba(20,25,50,.22);
}

.exam-tile:nth-child(1) {
    background:
        linear-gradient(
            145deg,
            #121936,
            #5046e5
        );
}

.exam-tile:nth-child(2) {
    background:
        linear-gradient(
            145deg,
            #1d1734,
            #a04fcf
        );
}

.exam-tile:nth-child(3) {
    background:
        linear-gradient(
            145deg,
            #072730,
            #0786a5
        );
}

.exam-tile:nth-child(4) {
    background:
        linear-gradient(
            145deg,
            #251329,
            #dd4b88
        );
}

.exam-code {
    position: relative;
    z-index: 2;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .17em;

    opacity: .72;
}

.exam-name {
    position: relative;
    z-index: 2;

    margin-top: 58px;

    font-family: var(--qb-display);

    font-size: 30px;
    font-weight: 800;

    letter-spacing: -.06em;
}

.exam-foot {
    position: absolute;

    left: 26px;
    right: 26px;
    bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 12px;
    font-weight: 700;

    opacity: .82;
}

.exam-art {
    position: absolute;

    width: 150px;
    height: 150px;

    top: 10px;
    right: -22px;

    border:
        1px solid rgba(255,255,255,.16);

    border-radius: 50%;

    box-shadow:
        inset 0 0 45px rgba(255,255,255,.07);
}

.exam-art::before,
.exam-art::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.13);
}

.exam-art::before {
    inset: 20px;
}

.exam-art::after {
    inset: 42px;
}


/* =========================================================
   WORKFLOW
   ========================================================= */

.workflow {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    overflow: hidden;

    border:
        1px solid var(--qb-line);

    border-radius: 28px;

    background: #fff;

    box-shadow: var(--qb-shadow-xs);
}

.workflow-step {
    position: relative;

    padding: 30px;

    border-right:
        1px solid var(--qb-line);
}

.workflow-step:last-child {
    border-right: 0;
}

.workflow-num {
    color: var(--qb-primary);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .13em;
}

.workflow-step h4 {
    margin-top: 30px;

    font-weight: 800;
}

.workflow-step p {
    margin: 0;

    color: var(--qb-muted);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   DASHBOARD PREVIEW
   ========================================================= */

.dashboard-demo {
    padding: 14px;

    overflow: hidden;

    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            #080d1d,
            #151d38
        );

    box-shadow:
        0 35px 100px rgba(14,17,35,.25);
}

.dashboard-demo-inner {
    padding: 20px;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #f8f9fd,
            #f1f3f8
        );
}

.demo-layout {
    display: grid;

    grid-template-columns:
        180px
        minmax(0,1fr);

    gap: 15px;
}

.demo-side {
    min-height: 330px;

    padding: 17px;

    color: #fff;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #10172b,
            #151d35
        );
}

.demo-side .dside {
    width: 100%;
    height: 9px;

    margin: 14px 0;

    border-radius: 10px;

    background:
        rgba(255,255,255,.08);
}

.demo-main {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 10px;
}

.demo-main .dc {
    min-height: 82px;

    padding: 15px;

    border:
        1px solid #e5e8f0;

    border-radius: 17px;

    background: #fff;

    box-shadow: var(--qb-shadow-xs);
}

.demo-main .dc.wide {
    grid-column: span 2;

    min-height: 185px;
}

.demo-main .dc.tall {
    grid-row: span 2;

    min-height: 185px;
}

.demo-bar {
    height: 7px;

    margin-top: 13px;

    overflow: hidden;

    border-radius: 99px;

    background: #e9ebf3;
}

.demo-bar i {
    display: block;

    width: 72%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--qb-primary),
            #b66cff
        );
}


/* =========================================================
   PRICING
   ========================================================= */

.price-card {
    height: 100%;

    padding: 32px;

    border:
        1px solid var(--qb-line);

    border-radius: 29px;

    background: #fff;

    box-shadow: var(--qb-shadow-sm);

    transition:
        transform .35s var(--qb-ease),
        box-shadow .35s var(--qb-ease);
}

.price-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--qb-shadow);
}

.price-card.featured {
    position: relative;

    overflow: hidden;

    color: #fff;

    border: 0;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(139,92,246,.40),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #0e1428,
            #2b214f
        );

    box-shadow:
        0 30px 90px rgba(66,45,132,.30);
}

.price-card.featured::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -130px;
    bottom: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(34,211,238,.20),
            transparent 68%
        );
}

.tag-pro {
    color: #5945dc !important;

    background:
        #eeeaff !important;

    border-radius: 999px;

    padding: 7px 10px;
}

.muted {
    color: var(--qb-muted);
}


/* =========================================================
   GENERIC CARDS
   ========================================================= */

.soft-card,
.feature-card,
.metric-card,
.resource-card,
.series-card,
.table-modern {
    border:
        1px solid var(--qb-line);

    border-radius: 25px;

    background: #fff;

    box-shadow: var(--qb-shadow-xs);
}

.metric-card {
    padding: 20px;

    transition:
        transform .3s var(--qb-ease),
        box-shadow .3s var(--qb-ease);
}

.metric-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--qb-shadow-sm);
}

.metric {
    font-family: var(--qb-display);

    font-size: 30px;

    font-weight: 800;

    letter-spacing: -.06em;
}

.metric-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--qb-primary);

    background:
        rgba(99,91,255,.09);
}


/* =========================================================
   STUDENT DASHBOARD
   ========================================================= */

.dash-shell {
    display: grid;

    grid-template-columns:
        240px
        minmax(0,1fr);

    gap: 22px;
}

.side-nav {
    position: sticky;
    top: 90px;

    align-self: start;

    padding: 12px;

    border:
        1px solid var(--qb-line);

    border-radius: 23px;

    background: #fff;

    box-shadow: var(--qb-shadow-sm);
}

.side-nav .nav-label {
    padding:
        13px
        10px
        6px;

    color: #a0a7b7;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .15em;
    text-transform: uppercase;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 2px 0;

    padding: 11px 12px;

    color: var(--qb-muted);

    border-radius: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.side-nav a:hover,
.side-nav a.active {
    color: var(--qb-primary);

    background:
        rgba(99,91,255,.08);

    transform: translateX(2px);
}

.dash-hero {
    position: relative;

    overflow: hidden;

    padding: 32px;

    color: #fff;

    border-radius: 31px;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(139,92,246,.45),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #0c1328,
            #251d49 58%,
            #073744
        );

    box-shadow:
        0 30px 90px rgba(25,26,57,.20);
}

.dash-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(
            rgba(255,255,255,.10) 1px,
            transparent 1px
        );

    background-size: 24px 24px;

    mask-image:
        linear-gradient(
            90deg,
            #000,
            transparent
        );
}

.progress-ring {
    --progress: 75%;

    position: relative;

    width: 126px;
    height: 126px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        conic-gradient(
            #8b7cff var(--progress),
            rgba(255,255,255,.10) 0
        );

    box-shadow:
        0 0 55px rgba(139,124,255,.20);
}

.progress-ring::after {
    content: "";

    position: absolute;
    inset: 10px;

    border-radius: 50%;

    background: #141a31;
}

.progress-ring span {
    position: relative;
    z-index: 2;

    font-size: 21px;
    font-weight: 900;
}

.dash-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        .85fr;

    gap: 18px;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-hero {
    position: relative;

    overflow: hidden;

    padding: 32px;

    color: #fff;

    border-radius: 31px;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(139,92,246,.42),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #090f21,
            #211a47,
            #0a3440
        );

    box-shadow:
        0 30px 90px rgba(20,25,50,.18);
}

.admin-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 15px;
}

.admin-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px;

    color: inherit;

    border:
        1px solid var(--qb-line);

    border-radius: 19px;

    background: #fff;

    text-decoration: none;

    transition:
        transform .25s var(--qb-ease),
        border-color .25s ease,
        box-shadow .25s ease;
}

.admin-link:hover {
    transform: translateY(-4px);

    border-color:
        rgba(99,91,255,.35);

    box-shadow: var(--qb-shadow-sm);
}


/* =========================================================
   TABLES
   ========================================================= */

.table-modern {
    overflow: hidden;
}

.table-modern table {
    margin: 0;
}

.table-modern thead {
    background: #f8f9fc;
}

.table-modern th {
    padding: 13px 15px;

    color: #737b8e;

    border: 0;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .10em;
    text-transform: uppercase;
}

.table-modern td {
    padding: 15px;

    border-color: #edf0f5;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-box {
    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 10px 14px;

    border:
        1px solid var(--qb-line);

    border-radius: 15px;

    background: #fff;

    box-shadow: var(--qb-shadow-xs);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.search-box:focus-within {
    border-color:
        rgba(99,91,255,.55);

    box-shadow:
        0 0 0 4px rgba(99,91,255,.08);
}


/* =========================================================
   TEST INTERFACE
   ========================================================= */

.test-shell {
    min-height:
        calc(100vh - 80px);

    color: #fff;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(99,91,255,.16),
            transparent 25%
        ),
        #090e1d;
}

.test-top {
    position: sticky;
    top: 0;
    z-index: 40;

    border-bottom:
        1px solid rgba(255,255,255,.08);

    background:
        rgba(9,14,29,.88);

    backdrop-filter: blur(18px);
}

.test-q-card {
    color: #111827;

    border-radius: 29px;

    background: #fff;

    box-shadow:
        0 30px 90px rgba(0,0,0,.25);
}

.test-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 17px;

    cursor: pointer;

    border:
        1px solid #e4e7ee;

    border-radius: 16px;

    background: #fff;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.test-option:hover {
    transform: translateY(-2px);

    border-color:
        rgba(99,91,255,.35);

    background: #fafaff;

    box-shadow:
        0 8px 25px rgba(99,91,255,.07);
}

.test-option.selected {
    border-color: var(--qb-primary);

    background:
        rgba(99,91,255,.07);

    box-shadow:
        0 10px 30px rgba(98,91,255,.10);
}

.test-sidebar {
    padding: 17px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 22px;

    background:
        rgba(18,24,45,.90);
}

.palette {
    display: grid;

    grid-template-columns:
        repeat(5,1fr);

    gap: 7px;
}

.palette button {
    height: 36px;

    border:
        1px solid #34405e;

    border-radius: 9px;

    color: #cbd5e1;

    background: #202943;
}

.palette button.answered {
    color: #fff;

    border-color: #2f9e6f;

    background: #2f9e6f;
}

.palette button.current {
    outline:
        2px solid #a78bfa;

    outline-offset: 1px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    color: #fff;

    background:
        linear-gradient(
            180deg,
            #090d18,
            #060911
        );
}

.site-footer h6 {
    margin-bottom: 16px;

    font-weight: 800;
}

.site-footer a {
    display: block;

    margin: 9px 0;

    color: #9aa3b8;

    font-size: 13px;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.site-footer a:hover {
    color: #fff;

    transform: translateX(3px);
}

.footer-copy {
    max-width: 520px;

    color: #8f98ab;

    font-size: 13px;

    line-height: 1.8;
}

.footer-bottom {
    border-top:
        1px solid rgba(255,255,255,.08);

    color: #6e778c;

    font-size: 12px;
}


/* =========================================================
   FLOATING CTA
   ========================================================= */

.floating-cta {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 60;
}

.floating-cta a {
    box-shadow:
        0 15px 40px rgba(79,70,229,.35);
}


/* =========================================================
   NOTIFICATION DOT
   ========================================================= */

.notification-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--qb-red);

    box-shadow:
        0 0 0 4px rgba(239,68,68,.10);
}


/* =========================================================
   PROGRESS
   ========================================================= */

.progress {
    overflow: hidden;

    border-radius: 999px;

    background: #eceef5;
}

.progress-bar {
    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--qb-primary),
            var(--qb-purple)
        );
}


/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity .75s var(--qb-ease),
        transform .75s var(--qb-ease);
}

.reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}

.reveal-left {
    opacity: 0;

    transform:
        translateX(-30px);

    transition:
        opacity .75s var(--qb-ease),
        transform .75s var(--qb-ease);
}

.reveal-left.is-visible {
    opacity: 1;

    transform:
        translateX(0);
}

.reveal-right {
    opacity: 0;

    transform:
        translateX(30px);

    transition:
        opacity .75s var(--qb-ease),
        transform .75s var(--qb-ease);
}

.reveal-right.is-visible {
    opacity: 1;

    transform:
        translateX(0);
}


/* =========================================================
   COUNT UP
   ========================================================= */

.count-up {
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   MICRO INTERACTIONS
   ========================================================= */

.hover-lift {
    transition:
        transform .3s var(--qb-ease),
        box-shadow .3s var(--qb-ease);
}

.hover-lift:hover {
    transform: translateY(-5px);

    box-shadow:
        var(--qb-shadow);
}

.glass {
    border:
        1px solid rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.07);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: "";

    position: absolute;

    top: -100%;
    left: -80%;

    width: 40%;
    height: 300%;

    transform: rotate(25deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.25),
            transparent
        );

    transition:
        left .8s var(--qb-ease);
}

.shine:hover::after {
    left: 140%;
}


/* =========================================================
   MOBILE NAV / LAYOUT
   ========================================================= */

@media (max-width: 1100px) {

    .container {
        width:
            min(
                calc(100% - 32px),
                var(--qb-container)
            );
    }

    .exam-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .bento {
        grid-template-columns:
            1fr 1fr;
    }

    .bento-card.large {
        grid-column: span 2;
        grid-row: auto;
    }

    .dash-shell {
        grid-template-columns: 1fr;
    }

    .side-nav {
        position: static;

        display: flex;

        overflow-x: auto;

        gap: 5px;

        scrollbar-width: none;
    }

    .side-nav::-webkit-scrollbar {
        display: none;
    }

    .side-nav .nav-label {
        display: none;
    }

    .side-nav a {
        flex: 0 0 auto;

        white-space: nowrap;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .visual-frame {
        margin-top: 35px;

        transform: none;
    }
}


@media (max-width: 768px) {

    .section-pad {
        padding-block:
            70px;
    }

    .hero-modern {
        min-height: auto;
    }

    .hero-content {
        padding-block:
            70px 80px;
    }

    .hero-title {
        font-size:
            clamp(44px,12vw,62px);
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-visual {
        margin-top: 35px;
    }

    .floating-ui.score {
        right: -5px;
    }

    .floating-ui.streak {
        left: -5px;
    }

    .exam-grid {
        grid-template-columns: 1fr;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .bento-card.large {
        grid-column: auto;
    }

    .workflow {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        border-right: 0;

        border-bottom:
            1px solid var(--qb-line);
    }

    .workflow-step:last-child {
        border-bottom: 0;
    }

    .demo-layout {
        grid-template-columns: 1fr;
    }

    .demo-side {
        display: none;
    }

    .demo-main {
        grid-template-columns:
            repeat(2,1fr);
    }

    .demo-main .dc.wide {
        grid-column: span 2;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .screen-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-trust {
        gap: 18px;
    }

    .top-strip .container span:last-child {
        display: none;
    }
}


@media (max-width: 520px) {

    .container {
        width:
            calc(100% - 24px);
    }

    .hero-title {
        font-size: 43px;

        letter-spacing: -.065em;
    }

    .hero-kicker {
        font-size: 9px;
    }

    .floating-ui {
        min-width: 125px;

        padding: 9px 11px;
    }

    .floating-ui b {
        font-size: 15px;
    }

    .visual-screen {
        padding: 10px;
    }

    .screen-card {
        padding: 11px;
    }

    .price-card,
    .bento-card {
        padding: 23px;
    }

    .dash-hero,
    .admin-hero {
        padding: 23px;
    }

    .demo-main {
        grid-template-columns: 1fr;
    }

    .demo-main .dc.wide {
        grid-column: auto;
    }

    .palette {
        grid-template-columns:
            repeat(5,1fr);
    }

    .floating-cta {
        right: 12px;
        bottom: 12px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline:
        3px solid rgba(99,91,255,.45);

    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes qbFloat {

    0%,
    100% {
        transform:
            translate3d(0,0,0)
            scale(1);
    }

    50% {
        transform:
            translate3d(0,22px,0)
            scale(1.05);
    }
}

@keyframes qbMarquee {

    from {
        transform:
            translateX(0);
    }

    to {
        transform:
            translateX(-50%);
    }
}