* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #173b6c;
    --primary-dark: #102b50;
    --accent: #16a085;
    --light: #f4f7fb;
    --white: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* HEADER */

.site-header {
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    text-decoration: none;
    font-size: 27px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.5px;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 27px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.nav-menu a:hover {
    color: var(--accent);
}

.login-btn {
    padding: 10px 18px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary) !important;
}

/* HERO */

.hero {
    background:
        radial-gradient(circle at 80% 30%, rgba(22,160,133,.13), transparent 27%),
        linear-gradient(135deg, #f7faff 0%, #eef5fb 100%);
    padding: 100px 0 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #e3f4f0;
    color: #087766;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    color: var(--primary-dark);
    font-size: clamp(38px, 5vw, 61px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    margin-bottom: 23px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-text {
    max-width: 690px;
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 31px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    transition: .2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

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

.hero-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 25px 70px rgba(15, 43, 80, .10);
}

.hero-card-label {
    color: var(--accent);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-card h3 {
    color: var(--primary-dark);
    font-size: 23px;
    margin: 10px 0 24px;
}

.research-flow {
    list-style: none;
}

.research-flow li {
    position: relative;
    padding: 0 0 21px 34px;
    color: #475569;
}

.research-flow li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #e3f4f0;
    color: var(--accent);
    text-align: center;
    line-height: 23px;
    font-weight: 800;
}

/* PRINCIPLE */

.principle {
    background: var(--primary-dark);
    color: white;
    padding: 28px 0;
}

.principle-inner {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}

.principle strong {
    color: #65dbc6;
}

/* MODULES */

.modules {
    padding: 90px 0;
    background: white;
}

.section-heading {
    max-width: 730px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading span {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.section-heading h2 {
    color: var(--primary-dark);
    font-size: 36px;
    line-height: 1.2;
    margin: 9px 0 14px;
}

.section-heading p {
    color: var(--muted);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.module-card {
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 27px;
    background: white;
    transition: .25s;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 43, 80, .09);
    border-color: #c6d5e5;
}

.module-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--light);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 800;
    margin-bottom: 19px;
}

.module-card h3 {
    color: var(--primary-dark);
    font-size: 19px;
    margin-bottom: 9px;
}

.module-card p {
    color: var(--muted);
    font-size: 14px;
}

/* CTA */

.cta {
    padding: 80px 0;
    background: var(--light);
}

.cta-box {
    padding: 48px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.cta h2 {
    color: var(--primary-dark);
    margin-bottom: 7px;
}

.cta p {
    color: var(--muted);
}

/* FOOTER */

footer {
    background: #0c223e;
    color: #b8c7d9;
    padding: 38px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

.footer-brand {
    color: white;
    font-weight: 800;
    font-size: 21px;
}

/* MOBILE */

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

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

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

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 65px 0;
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
.module-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.module-link .module-card {
    height: 100%;
}

.module-open {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}
/* =========================
   RESEARCH WORKSPACE
========================= */

.workspace {
    min-height: 100vh;
    padding: 55px 0 90px;
    background: #f6f8fb;
}

.workspace-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 35px;
}

.back-link {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 22px;
}

.back-link:hover {
    color: var(--primary);
}

.module-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.workspace-top h1 {
    color: var(--primary-dark);
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.workspace-top p {
    color: var(--muted);
    max-width: 700px;
}

.progress-box {
    min-width: 125px;
    background: white;
    border: 1px solid var(--border);
    padding: 15px 18px;
    border-radius: 12px;
}

.progress-box span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 3px;
}

.progress-box strong {
    color: var(--primary);
    font-size: 20px;
}

.research-workspace {
    display: grid;
    grid-template-columns: 275px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* STEPS */

.steps-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 15px;
    position: sticky;
    top: 95px;
}

.steps-title {
    padding: 7px 9px 15px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.step-item {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 10px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 3px;
}

.step-item > span {
    flex: 0 0 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef3f8;
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
}

.step-item strong,
.step-item small {
    display: block;
}

.step-item strong {
    color: #334155;
    font-size: 13px;
}

.step-item small {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 2px;
}

.step-item.active {
    background: #eef7f5;
}

.step-item.active > span {
    background: var(--accent);
    color: white;
}

.step-item.active strong {
    color: #087766;
}

/* MAIN CARD */

.work-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 17px;
    min-height: 650px;
    padding: 42px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.work-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.work-card h2 {
    color: var(--primary-dark);
    font-size: 28px;
    margin: 7px 0 12px;
}

.work-description {
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 27px;
}

.info-note {
    background: #f6f9fc;
    border-left: 3px solid var(--primary);
    color: #475569;
    padding: 16px 18px;
    border-radius: 0 9px 9px 0;
    margin-bottom: 27px;
    font-size: 14px;
}

.field-label {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.research-input {
    width: 100%;
    min-height: 145px;
    resize: vertical;
    border: 1px solid #cfd9e5;
    border-radius: 11px;
    padding: 16px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    transition: .2s;
}

.research-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22,160,133,.08);
}

.small-input {
    min-height: 115px;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 7px;
}

/* AI AREA */

.ai-assistant-box {
    margin-top: 30px;
    border: 1px solid #cfe6e0;
    background: #f4fbf9;
    border-radius: 13px;
    padding: 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.ai-badge {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ai-assistant-box h3 {
    color: var(--primary-dark);
    font-size: 17px;
    margin: 5px 0;
}

.ai-assistant-box p {
    color: var(--muted);
    font-size: 13px;
    max-width: 620px;
}

.ai-button {
    flex: 0 0 auto;
    border: 0;
    background: var(--accent);
    color: white;
    padding: 12px 17px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.ai-button:hover {
    opacity: .9;
}

.ai-result {
    display: none;
    border: 1px solid #d8e3ec;
    border-radius: 12px;
    padding: 20px;
    margin-top: 18px;
}

.ai-result.show {
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 11px;
    margin-bottom: 13px;
}

.result-header span {
    color: var(--primary);
    font-weight: 800;
}

.result-header small {
    color: #b45309;
}

#ai-result-text {
    color: #475569;
    font-size: 14px;
}

#ai-result-text p + p {
    margin-top: 8px;
}

/* BUTTONS */

.work-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.next-button,
.finish-button,
.prev-button {
    border: 0;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.next-button,
.finish-button {
    background: var(--primary);
    color: white;
}

.prev-button {
    background: #eef2f7;
    color: var(--primary);
}

.finish-button {
    background: var(--accent);
}

.finish-note {
    margin-top: 25px;
    padding: 18px;
    border-radius: 10px;
    background: #f0f9f6;
    color: #41635c;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .research-workspace {
        grid-template-columns: 1fr;
    }

    .steps-panel {
        position: static;
    }

    .workspace-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-assistant-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .work-card {
        padding: 25px;
    }
}