/* =========================================
   GLOBAL
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --primary: #4338ca;
    --primary-dark: #3730a3;

    --secondary: #0891b2;

    --green: #059669;
    --amber: #d97706;

    --bg: #f8fafc;
    --card: #ffffff;

    --text: #0f172a;
    --muted: #64748b;

    --border: #e2e8f0;

    --shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);

    --font-display: "Space Grotesk", "Inter", sans-serif;

}

body {

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);

    color: var(--text);

    line-height: 1.6;

    transition:
        background .3s,
        color .3s;

}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {

    width: min(1180px, 92%);

    margin: auto;

}

::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================
   HEADER
========================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    height: 75px;

    background: rgba(255,255,255,.92);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 4%;

}

.logo {

    display: flex;

    align-items: center;

    gap: 12px;

}

.logo-icon {

    width: 42px;

    height: 42px;

    border-radius: 12px;

    display: grid;

    place-items: center;

    color: white;

    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

}

.logo h1 {

    font-size: 18px;

    line-height: 1.2;

}

.logo small {

    color: var(--muted);

    font-size: 11px;

}

nav {

    display: flex;

    gap: 28px;

}

nav a {

    font-size: 14px;

    font-weight: 600;

    color: #475569;

    transition: .2s;

}

nav a:hover {
    color: var(--primary);
}

.theme-btn {

    border: 1px solid var(--border);

    background: white;

    border-radius: 10px;

    padding: 8px 11px;

    cursor: pointer;

    font-size: 16px;

}

.mobile-menu {
    display: none;
}


/* =========================================
   HERO
========================================= */

.hero {

    min-height: 610px;

    display: flex;

    align-items: center;

    text-align: center;

    background:

        radial-gradient(
            circle at 20% 20%,
            rgba(99,102,241,.15),
            transparent 35%
        ),

        radial-gradient(
            circle at 80% 30%,
            rgba(6,182,212,.15),
            transparent 35%
        );

}

.hero-content {

    width: min(900px, 92%);

    margin: auto;

}

.badge {

    display: inline-block;

    padding: 8px 16px;

    border-radius: 30px;

    background: #eef2ff;

    color: var(--primary);

    font-weight: 700;

    font-size: 13px;

    margin-bottom: 22px;

}

.hero h2 {

    font-size: clamp(38px, 6vw, 68px);

    line-height: 1.05;

    letter-spacing: -2px;

}

.hero h2 span {

    display: block;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}

.hero p {

    max-width: 720px;

    margin: 25px auto;

    font-size: 18px;

    color: var(--muted);

}

.hero-buttons {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin: 30px 0;

}

.btn {

    padding: 13px 23px;

    border-radius: 10px;

    font-weight: 700;

    transition: .2s;

}

.primary {

    background: var(--primary);

    color: white;

}

.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary {

    background: white;

    border: 1px solid var(--border);

}

.secondary:hover {
    transform: translateY(-2px);
}

.hero-stats {

    display: flex;

    justify-content: center;

    gap: 65px;

    margin-top: 40px;

}

.hero-stats div {

    display: flex;

    flex-direction: column;

}

.hero-stats strong {

    font-size: 28px;

    color: var(--primary);

}

.hero-stats span {

    font-size: 12px;

    color: var(--muted);

}


/* =========================================
   DASHBOARD
========================================= */

.dashboard {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: -35px;

    position: relative;

}

.dashboard-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow: var(--shadow);

}

.dashboard-icon {

    width: 48px;

    height: 48px;

    border-radius: 12px;

    display: grid;

    place-items: center;

    font-size: 21px;

}

.blue {
    background: #e0e7ff;
}

.green {
    background: #d1fae5;
}

.purple {
    background: #f3e8ff;
}

.dashboard-card h3 {
    font-size: 15px;
}

.dashboard-card p {

    color: var(--muted);

    font-size: 13px;

}


/* =========================================
   SECTIONS
========================================= */

.section {

    padding: 90px 0;

}

.section-heading {

    text-align: center;

    max-width: 750px;

    margin: 0 auto 45px;

}

.section-heading span {

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

}

.section-heading h2 {

    font-size: 38px;

    margin: 8px 0;

}

.section-heading p {

    color: var(--muted);

}


/* =========================================
   EXPERIENCE
========================================= */

.experience-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

}

.experience-card {

    padding: 25px;

    border-radius: 16px;

    background: var(--card);

    border: 1px solid var(--border);

    cursor: pointer;

    transition: .25s;

    position: relative;

    overflow: hidden;

}

.experience-card:hover {

    transform: translateY(-6px);

    border-color: var(--primary);

    box-shadow: var(--shadow);

}

.experience-card.active {

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #818cf8
        );

    color: white;

}

.experience-card .year {

    font-size: 30px;

    font-weight: 800;

}

.experience-card h3 {

    margin: 5px 0;

}

.experience-card p {

    font-size: 13px;

    color: var(--muted);

}

.experience-card.active p {

    color: rgba(255,255,255,.85);

}


/* =========================================
   QUESTIONS
========================================= */

.questions-section {

    background: #f1f5f9;

}

.filters {

    display: grid;

    grid-template-columns:
        1fr 250px;

    gap: 15px;

    margin-bottom: 25px;

}

.filters input,
.filters select {

    width: 100%;

    padding: 14px 16px;

    border-radius: 10px;

    border: 1px solid var(--border);

    background: white;

    outline: none;

    font-size: 14px;

}

.question-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    margin-bottom: 13px;

    overflow: hidden;

    transition: border-color .2s, box-shadow .2s;

}

.question-card:hover {

    border-color: #c7d2fe;

}

.question-card.open {

    border-color: var(--primary);

    box-shadow: var(--shadow);

}

.question-card .question-header:hover {

    background: #f8fafc;

}

.question-header {

    padding: 20px;

    display: flex;

    justify-content: space-between;

    gap: 15px;

    cursor: pointer;

}

.question-number {

    color: var(--primary);

    font-weight: 800;

    min-width: 40px;

}

.question-text {

    flex: 1;

    font-weight: 700;

}

.topic-tag {

    font-size: 11px;

    background: #eef2ff;

    color: var(--primary);

    padding: 5px 9px;

    border-radius: 20px;

    white-space: nowrap;

}

.answer {

    display: none;

    padding: 0 20px 20px 60px;

    color: #475569;

    border-top: 1px solid #f1f5f9;

}

.question-card.open .answer {
    display: block;
}

.question-card.open .arrow {
    transform: rotate(180deg);
}

.arrow {
    transition: .2s;
}


/* =========================================
   COMPANY
========================================= */

.company-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 15px;

    margin-bottom: 35px;

}

.company-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 13px;

    padding: 20px;

    text-align: center;

    cursor: pointer;

    font-weight: 700;

    transition: .2s;

}

.company-card:hover {

    border-color: var(--primary);

    color: var(--primary);

    transform: translateY(-3px);

}

.company-card.active {

    background: linear-gradient(135deg, var(--primary), #6366f1);

    border-color: var(--primary);

    color: white;

    transform: translateY(-3px);

}

.company-logo {

    font-size: 28px;

    margin-bottom: 8px;

}

.company-content {

    background: white;

    border-radius: 18px;

    padding: 30px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

}

.company-content h3 {

    font-size: 24px;

    margin-bottom: 10px;

}

.company-content p {

    color: var(--muted);

}

.company-focus {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 20px 0;

}

.focus-tag {

    background: #f1f5f9;

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 12px;

}

.company-list {

    margin-top: 20px;

}

.company-list li {

    margin-bottom: 10px;

    margin-left: 20px;

}


/* =========================================
   TOPICS
========================================= */

.topic-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 18px;

}

.topic-card {

    background: white;

    border: 1px solid var(--border);

    padding: 25px;

    border-radius: 15px;

    transition: .2s;

}

.topic-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow);

}

.topic-card span {

    font-size: 30px;

}

.topic-card h3 {

    margin: 12px 0 5px;

}

.topic-card p {

    color: var(--muted);

    font-size: 13px;

}


/* =========================================
   ROADMAP
========================================= */

.roadmap-section {

    background: #0f172a;

    color: white;

}

.roadmap-section .section-heading p {

    color: #94a3b8;

}

.roadmap {

    max-width: 850px;

    margin: auto;

}

.roadmap-item {

    display: flex;

    gap: 25px;

    align-items: flex-start;

    padding: 25px;

    border-left: 2px solid #334155;

    position: relative;

}

.roadmap-item > span {

    background: var(--primary);

    min-width: 70px;

    text-align: center;

    padding: 8px;

    border-radius: 20px;

    font-weight: 800;

}

.roadmap-item h3 {

    margin-bottom: 5px;

}

.roadmap-item p {

    color: #94a3b8;

}


/* =========================================
   EMPTY STATE
========================================= */

.empty-state {

    text-align: center;

    padding: 70px 20px;

    background: white;

    border-radius: 16px;

    border: 1px dashed var(--border);

}

.empty-state div {

    font-size: 45px;

    margin-bottom: 15px;

}

.empty-state p {

    color: var(--muted);

}


/* =========================================
   FOOTER
========================================= */

footer {

    background: #020617;

    color: white;

    padding: 60px 5% 20px;

}

.footer-content {

    max-width: 1180px;

    margin: auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 50px;

}

.footer-content h3 {

    margin-bottom: 15px;

}

.footer-content p,
.footer-content a {

    display: block;

    color: #94a3b8;

    margin-bottom: 7px;

    font-size: 14px;

}

.footer-content a:hover {

    color: white;

}

.copyright {

    max-width: 1180px;

    margin: 40px auto 0;

    padding-top: 20px;

    border-top: 1px solid #1e293b;

    color: #64748b;

    font-size: 12px;

}


/* =========================================
   DARK MODE
========================================= */

body.dark {

    --bg: #020617;

    --card: #0f172a;

    --text: #f8fafc;

    --muted: #94a3b8;

    --border: #1e293b;

}

body.dark .header {

    background: rgba(2,6,23,.92);

}

body.dark .secondary,
body.dark .filters input,
body.dark .filters select,
body.dark .question-card,
body.dark .company-card,
body.dark .company-content,
body.dark .topic-card,
body.dark .empty-state,
body.dark .dashboard-card {

    background: #0f172a;

    color: white;

}

body.dark .questions-section {

    background: #020617;

}

body.dark .topic-card p,
body.dark .company-content p {

    color: #94a3b8;

}

body.dark .question-card .question-header:hover {

    background: #1e293b;

}

body.dark .answer {

    border-top-color: #1e293b;

}


/* =========================================
   RESPONSIVE
========================================= */

@media(max-width: 1000px) {

    .experience-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

    .company-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

    .topic-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

}


@media(max-width: 768px) {

    nav {

        position: absolute;

        top: 75px;

        left: 0;

        right: 0;

        display: none;

        flex-direction: column;

        background: white;

        padding: 20px;

        border-bottom: 1px solid var(--border);

    }

    nav.show {
        display: flex;
    }

    .mobile-menu {

        display: block;

        border: 0;

        background: transparent;

        font-size: 24px;

        cursor: pointer;

    }

    .theme-btn {

        margin-left: auto;

        margin-right: 10px;

    }

    .dashboard {

        grid-template-columns: 1fr;

        margin-top: 20px;

    }

    .hero {

        min-height: 550px;

    }

    .hero-stats {

        gap: 25px;

    }

    .experience-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .company-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .topic-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .filters {

        grid-template-columns: 1fr;

    }

    .footer-content {

        grid-template-columns: 1fr;

    }

}


@media(max-width: 500px) {

    .hero h2 {

        font-size: 40px;

    }

    .hero-buttons {

        flex-direction: column;

    }

    .hero-stats {

        gap: 15px;

    }

    .experience-grid,
    .company-grid,
    .topic-grid {

        grid-template-columns: 1fr;

    }

    .section {

        padding: 60px 0;

    }

    .section-heading h2 {

        font-size: 30px;

    }

}