* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: #0f172a;
    --text-soft: #64748b;
    --text-dark: #0b1324;
    --primary: #2563eb;
    --primary-2: #4f46e5;
    --success: #16a34a;
    --warning: #d4a017;
    --danger: #dc2626;
    --shadow-lg: 0 24px 80px rgba(2, 8, 23, 0.16);
    --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --transition: 0.32s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Titillium Web', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 26%),
        radial-gradient(circle at bottom center, rgba(14, 165, 233, 0.10), transparent 28%),
        linear-gradient(180deg, #eef4ff 0%, #f7faff 38%, #eef4ff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1240px, 92%);
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(90deg, #102042, #173266 55%, #1d4ed8);
    color: #fff;
    font-size: 14px;
    padding: 12px 0;
    box-shadow: 0 6px 24px rgba(16, 32, 66, 0.18);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(203, 213, 225, 0.7);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 24px;
}

.logo {
    font-size: 34px;
    font-weight: 700;
    color: #102042;
}

.nav-menu {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #173266;
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: rgba(37, 99, 235, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 28px;
    border-radius: 18px;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.24), transparent);
    transform: translateX(-120%);
    transition: 0.6s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5 75%);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.26);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.34);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.92);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.16);
}

.btn-outline:hover {
    transform: translateY(-2px);
    background: #fff;
}

.badge,
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #1d4ed8;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.hero {
    padding: 84px 0 72px;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 38px;
    align-items: center;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.04;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.hero p,
.page-hero p {
    font-size: 19px;
    color: #5b6880;
    max-width: 760px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.mini-card,
.feature-box,
.result-card,
.analysis-form {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.hero-card {
    display: grid;
    gap: 16px;
}

.mini-card {
    padding: 24px;
    transition: var(--transition);
}

.mini-card:hover {
    transform: translateY(-4px);
}

.mini-card h3 {
    color: #102042;
    margin-bottom: 6px;
    font-size: 18px;
}

.mini-card p {
    color: #6b7a92;
    font-size: 16px;
}

.features,
.form-section,
.result-section {
    padding: 30px 0 88px;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head h2 {
    font-size: 42px;
    color: #0f172a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-box {
    padding: 30px;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-6px);
}

.feature-box h3 {
    margin-bottom: 10px;
    color: #102042;
    font-size: 18px;
}

.feature-box p {
    color: #66758d;
}

.page-hero.small {
    padding: 72px 0 26px;
}

.analysis-form {
    padding: 36px;
    position: relative;
    overflow: visible;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: relative;
    overflow: visible;
}

.form-group label {
    font-weight: 700;
    color: #173266;
    font-size: 15px;
}

.form-group input,
.form-group select {
    height: 56px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    padding: 0 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.94);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    color: #0f172a;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.form-group.full {
    margin-top: 18px;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #4c5d7d;
    font-weight: 500;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.result-card {
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.result-card h2 {
    margin-bottom: 18px;
    color: #0f172a;
    font-size: 30px;
}

.result-list li {
    padding: 11px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    color: #334155;
    font-size: 16px;
}

.sonuc-ozet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.sonuc-kutu {
    position: relative;
    border-radius: 22px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.sonuc-kutu h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #173266;
}

.sonuc-skor {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.sonuc-durum {
    font-size: 18px;
    font-weight: 700;
    margin-top: 6px;
}

.metric-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 700;
}

.status-good {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.16), rgba(34, 197, 94, 0.08));
    border-color: rgba(22, 163, 74, 0.18);
}

.status-good .sonuc-skor,
.status-good .sonuc-durum {
    color: var(--success);
}

.status-mid {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(234, 179, 8, 0.08));
    border-color: rgba(245, 158, 11, 0.18);
}

.status-mid .sonuc-skor,
.status-mid .sonuc-durum {
    color: #b7791f;
}

.status-bad {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(248, 113, 113, 0.08));
    border-color: rgba(220, 38, 38, 0.18);
}

.status-bad .sonuc-skor,
.status-bad .sonuc-durum {
    color: var(--danger);
}

.custom-select {
    position: relative;
    z-index: 1000;
}

.custom-select.open {
    z-index: 200000;
}

.custom-select-search {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    color: #173266;
}

.custom-select-search[readonly] {
    user-select: none;
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    min-width: 280px;
    background: rgba(255,255,255,0.99);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    padding: 12px;
    z-index: 300000;
    display: none;
    backdrop-filter: blur(16px);
    max-height: min(360px, 62vh);
}

.custom-select.open .custom-select-dropdown {
    display: block;
}

.custom-select.open.drop-up .custom-select-dropdown {
    top: auto;
    bottom: calc(100% + 10px);
}

.custom-select-search-wrap {
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.99);
    z-index: 2;
}

.custom-select-filter {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.custom-select-options {
    max-height: min(250px, 46vh);
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding-right: 4px;
}

.custom-select-option {
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #fff;
    min-height: 50px;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    text-align: left;
    color: #173266;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.custom-select-option:hover {
    background: #f8fbff;
    border-color: rgba(37, 99, 235, 0.18);
}

.option-text {
    flex: 1;
    font-weight: 700;
}

.engine-section {
    padding: 10px 0 120px;
    position: relative;
    z-index: 1;
}

.engine-form {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.engine-progress-wrap {
    margin-bottom: 22px;
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.7);
    position: sticky;
    top: 96px;
    z-index: 40;
}

.engine-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.engine-progress-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.engine-progress-label span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    font-weight: 700;
}

.engine-progress-label strong {
    font-size: 20px;
    color: #102042;
}

.engine-progress-percent {
    color: #1d4ed8;
    font-weight: 700;
    font-size: 18px;
}

.engine-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.engine-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    transition: width .35s ease;
}

.engine-card {
    position: relative;
    min-height: 560px;
    padding: 38px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.84);
    overflow: visible;
    z-index: 20;
}

.engine-form.dropdown-active .engine-progress-wrap {
    z-index: 5;
}

.engine-form.dropdown-active .engine-card {
    z-index: 100;
}

.engine-question,
.engine-question.active,
.engine-question-inner,
.engine-input-area,
.engine-sub-question,
.engine-sub-block {
    overflow: visible;
}

.engine-question {
    display: none;
    animation: engineFade .42s cubic-bezier(.2,.8,.2,1);
    position: relative;
    z-index: 5;
}

.engine-question.active {
    display: block;
}

@keyframes engineFade {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.engine-question-inner {
    max-width: 760px;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.engine-kicker {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.engine-question h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    color: #0f172a;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.engine-question p {
    font-size: 18px;
    color: #64748b;
    max-width: 700px;
    margin-bottom: 30px;
}

.engine-input-area {
    max-width: 640px;
    position: relative;
    z-index: 20;
}

.engine-big-input,
.form-group .engine-big-input,
.engine-sub-question .engine-big-input {
    width: 100%;
    height: 70px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 22px;
    padding: 0 22px;
    font-size: 18px;
    font-family: inherit;
    background: rgba(255,255,255,0.98);
    color: #0f172a;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.engine-big-input:focus {
    border-color: rgba(37, 99, 235, 0.44);
    box-shadow:
        0 0 0 5px rgba(37, 99, 235, 0.12),
        0 18px 32px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.engine-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
}

.engine-choice-grid.two-col {
    max-width: 640px;
}

.engine-choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 124px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.engine-choice-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 22px 36px rgba(37, 99, 235, 0.08);
}

.engine-choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.engine-choice-card span {
    font-size: 22px;
    font-weight: 700;
    color: #102042;
    position: relative;
    z-index: 1;
}

.engine-choice-card small {
    font-size: 15px;
    color: #64748b;
    position: relative;
    z-index: 1;
}

.engine-choice-card:has(input:checked) {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(79, 70, 229, 0.09));
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: 0 22px 38px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px) scale(1.01);
}

.engine-choice-card:has(input:checked) span {
    color: #1d4ed8;
}

.engine-choice-card.pulse-selected {
    animation: pulseCard .32s ease;
}

@keyframes pulseCard {
    0% { transform: scale(1); }
    50% { transform: scale(1.018); }
    100% { transform: scale(1.01); }
}

.engine-sub-question,
.engine-sub-block {
    margin-top: 24px;
    max-width: 640px;
    position: relative;
    z-index: 20;
}

.engine-sub-question label,
.engine-sub-label {
    display: block;
    font-weight: 700;
    color: #173266;
    margin-bottom: 10px;
    font-size: 15px;
}

.engine-final-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 760px;
}

.engine-checkbox {
    margin-top: 26px;
    max-width: 760px;
}

.engine-navigation {
    position: sticky;
    bottom: 18px;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255,255,255,0.85);
}

.engine-navigation.dropdown-open {
    z-index: 2;
}

.engine-navigation .btn {
    min-width: 160px;
}

.hidden {
    display: none !important;
}

.footer {
    background: linear-gradient(180deg, #0d1b34, #102042 50%, #0c1932);
    color: #fff;
    padding: 64px 0;
    margin-top: 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.footer h3,
.footer h4 {
    margin-bottom: 12px;
}

.footer p,
.footer a {
    color: rgba(219, 232, 255, 0.9);
}

/* loading */

.analysis-loading {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200000;
}

.analysis-loading.hidden {
    display: none !important;
}

.loading-box {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    animation: fadeIn 0.4s ease;
    min-width: 320px;
}

.loading-box h3 {
    font-size: 22px;
    margin-top: 18px;
    color: #0f172a;
}

.loading-box p {
    color: #64748b;
    margin-top: 6px;
}

.spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.engine-form.is-submitting .engine-navigation {
    opacity: 0.75;
    pointer-events: none;
}

@media (max-width: 992px) {
    .hero-inner,
    .feature-grid,
    .footer-inner,
    .form-grid,
    .engine-choice-grid,
    .engine-final-grid,
    .nav-inner,
    .sonuc-ozet {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .custom-select-dropdown {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .analysis-form,
    .result-card,
    .engine-card {
        padding: 24px;
    }

    .engine-question h2 {
        font-size: 2rem;
    }

    .engine-question p {
        font-size: 16px;
    }

    .engine-navigation {
        flex-direction: column;
        bottom: 12px;
    }

    .engine-navigation .btn {
        width: 100%;
        min-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .engine-progress-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .engine-big-input {
        height: 60px;
        font-size: 17px;
    }

    .loading-box {
        min-width: auto;
        width: calc(100% - 32px);
        padding: 28px;
    }
}