/* ============================================================
   AiCounsel — Main Stylesheet
   ============================================================ */
:root {
    --primary:   #2563eb;
    --primary-d: #1d4ed8;
    --cyan:      #0891b2;
    --indigo:    #4f46e5;
    --success:   #059669;
    --warning:   #d97706;
    --danger:    #dc2626;
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-400:  #9ca3af;
    --gray-600:  #4b5563;
    --gray-800:  #1f2937;
    --gray-900:  #111827;
    --dark:      #0f172a;
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #fff;
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ─────────────────────────────────── */
#mainNav {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: .9rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 0 var(--gray-200);
}
.navbar-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gray-900) !important;
    letter-spacing: -.3px;
}
.navbar-brand .dot { color: var(--primary); }
#mainNav .nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: .45rem .9rem;
    border-radius: 7px;
    transition: all .15s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--gray-900) !important; background: var(--gray-100); }
#mainNav .dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    padding: .4rem;
}
#mainNav .dropdown-item {
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
    padding: .5rem .85rem;
}
#mainNav .dropdown-item:hover { background: var(--gray-100); }
.navbar-brand-tag {
    font-size: .65rem;
    font-weight: 600;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    padding: .1rem .4rem;
    margin-left: .4rem;
    vertical-align: middle;
    letter-spacing: .3px;
}

/* ── Hero ────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #164e63 100%);
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(99,102,241,.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(8,145,178,.12) 0%, transparent 50%);
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: .3rem 1rem;
    font-size: .75rem;
    font-weight: 600;
    color: #bfdbfe;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.5px;
    color: #fff;
    margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: #60a5fa; }
.hero p.lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,.65);
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 2rem;
}
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--primary);
    color: #fff; font-weight: 600; font-size: .9rem;
    padding: .8rem 1.75rem; border-radius: 10px; border: none;
    transition: all .2s; text-decoration: none;
}
.btn-hero-primary:hover { background: var(--primary-d); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.4); }
.btn-hero-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    background: transparent;
    color: rgba(255,255,255,.8); font-weight: 600; font-size: .9rem;
    padding: .8rem 1.75rem; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.25);
    transition: all .2s; text-decoration: none;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Hero visual */
.hero-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}
.instrument-row {
    display: flex; align-items: center; gap: .85rem;
    padding: .8rem 1rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    margin-bottom: .6rem;
    transition: background .2s;
}
.instrument-row:last-child { margin-bottom: 0; }
.instrument-row:hover { background: rgba(255,255,255,.12); }
.instr-icon {
    width: 38px; height: 38px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.instr-title { font-weight: 600; font-size: .875rem; color: #fff; line-height: 1.2; }
.instr-sub   { font-size: .72rem; color: rgba(255,255,255,.5); }
.instr-badge {
    margin-left: auto; font-size: .68rem; font-weight: 700;
    background: rgba(255,255,255,.12); color: rgba(255,255,255,.8);
    border-radius: 5px; padding: .2rem .5rem;
}

/* Hero stats */
.hero-stats {
    display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat .n { font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-stat .l { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: .1rem; }

/* ── Sections ─────────────────────────────────── */
.section-label {
    font-size: .72rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--primary); margin-bottom: .5rem;
}
.section-heading {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800; color: var(--gray-900);
    letter-spacing: -.3px; margin-bottom: .75rem;
}
.section-body { color: var(--gray-600); font-size: .975rem; }

/* ── Why Cards ──────────────────────────────────── */
.why-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    transition: all .22s;
}
.why-card:hover { background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.why-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1rem;
}
.why-card h6 { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.why-card p  { font-size: .85rem; color: var(--gray-600); line-height: 1.65; margin: 0; }

/* ── Instrument Cards ───────────────────────────── */
.instr-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 2rem;
    height: 100%;
    transition: all .22s;
    position: relative;
    overflow: hidden;
}
.instr-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--top-color, var(--primary));
}
.instr-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.1); transform: translateY(-4px); }
.instr-card .chip {
    display: inline-block;
    background: var(--chip-bg, #eff6ff);
    color: var(--chip-color, var(--primary));
    border-radius: 6px; padding: .2rem .6rem;
    font-size: .72rem; font-weight: 700;
    margin: .15rem .1rem 0 0;
}
.instr-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.instr-icon-lg {
    width: 52px; height: 52px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.instr-name { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.instr-full { font-size: .78rem; color: var(--gray-400); margin-top: .15rem; }

/* Level grid */
.level-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin: 1rem 0 1.25rem; }
.level-chip {
    border-radius: 7px; padding: .35rem .6rem;
    font-size: .75rem; font-weight: 600; text-align: center;
}

/* ── Steps ─────────────────────────────────────── */
.steps-container { display: flex; flex-direction: column; gap: 0; }
.step-row {
    display: flex; align-items: flex-start; gap: 1.25rem;
    position: relative; padding-bottom: 2rem;
}
.step-row:last-child { padding-bottom: 0; }
.step-row::before {
    content: '';
    position: absolute; left: 21px; top: 44px;
    width: 2px; height: calc(100% - 20px);
    background: linear-gradient(180deg,var(--primary),transparent);
    opacity: .25;
}
.step-row:last-child::before { display: none; }
.step-circle {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: white; font-weight: 800; font-size: .9rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.step-text h6 { font-weight: 700; margin-bottom: .25rem; font-size: .95rem; }
.step-text p  { font-size: .85rem; color: var(--gray-600); margin: 0; line-height: 1.6; }

/* ── CTA Section ───────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #164e63 100%);
    padding: 5rem 0;
    text-align: center;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.cta-section p  { color: rgba(255,255,255,.6); margin-bottom: 2rem; }

/* ── Page Hero (kuesioner) ─────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #164e63 100%);
    color: white; padding: 2.5rem 0; margin-bottom: 2rem;
}
.page-hero h1 { font-size: 1.7rem; font-weight: 800; }
.page-hero p  { opacity: .7; font-size: .9rem; }
.info-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px; padding: .25rem .85rem;
    font-size: .77rem; color: rgba(255,255,255,.9);
}

/* ── Question blocks ───────────────────────────── */
.question-block {
    background: #fff; border-radius: 12px;
    padding: 1.2rem 1.4rem; margin-bottom: .75rem;
    border-left: 4px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: border-color .2s;
}
.question-block:hover { border-left-color: var(--primary); }
.q-number {
    background: linear-gradient(135deg,var(--primary),var(--cyan));
    color: white; width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .75rem; flex-shrink: 0;
}
.question-text { font-weight: 500; color: #374151; font-size: .875rem; line-height: 1.55; }

/* Scale options */
.scale-options { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .65rem; }
.scale-options .form-check { margin: 0; }
.scale-options .form-check-input { display: none; }
.scale-options .form-check-label {
    display: flex; flex-direction: column; align-items: center;
    padding: .4rem .7rem; border: 2px solid var(--gray-200);
    border-radius: 9px; cursor: pointer; font-size: .7rem;
    color: var(--gray-400); transition: all .18s; min-width: 66px;
    text-align: center; background: var(--gray-50); user-select: none;
}
.scale-options .form-check-label .scale-num {
    font-size: 1.05rem; font-weight: 700; color: var(--gray-200); transition: color .18s;
}
.scale-options .form-check-input:checked + .form-check-label {
    background: linear-gradient(135deg,var(--primary),var(--cyan));
    color: white; border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37,99,235,.28);
}
.scale-options .form-check-input:checked + .form-check-label .scale-num { color: white; }

/* Progress */
.score-meter { height: 7px; border-radius: 999px; background: var(--gray-200); overflow: hidden; margin: .4rem 0; }
.score-fill  { height: 100%; border-radius: 999px; transition: width .6s ease; }

/* Buttons */
.btn-primary   { background: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-gradient  { background: linear-gradient(135deg,var(--primary),var(--cyan)); color: white; border: none; font-weight: 600; }
.btn-gradient:hover { background: linear-gradient(135deg,var(--primary-d),#0e7490); color: white; }

/* General card */
.card { border: 1px solid var(--gray-200); border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.card-header { border-radius: 14px 14px 0 0 !important; }

/* Success box */
.success-box {
    background: linear-gradient(135deg,#ecfdf5,#d1fae5);
    border: 1px solid #6ee7b7; border-radius: 18px;
    padding: 3rem 2rem; text-align: center;
}

/* Footer */
footer {
    background: var(--dark); color: rgba(255,255,255,.45);
    font-size: .8rem; padding: 1.5rem 0; margin-top: auto;
}
footer strong { color: rgba(255,255,255,.75); }

/* Animations */
@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.animate-in { animation: fadeUp .4s ease both; }

/* Responsive */
@media (max-width:768px) {
    .hero { padding: 4.5rem 0 3.5rem; }
    .hero h1 { font-size: 1.9rem; }
    .scale-options .form-check-label { min-width: 56px; padding: .35rem .5rem; }
}

/* Print */
@media print {
    #mainNav, .btn, footer { display: none !important; }
    .card { box-shadow: none !important; }
}
