:root {
    --bg: #0f172a;
    --card: rgba(15, 23, 42, 0.72);
    --card-soft: rgba(30, 41, 59, 0.55);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #f472b6;
    --primary-strong: #ec4899;
    --border: rgba(148, 163, 184, 0.18);
    --success: #22c55e;
    --danger: #f87171;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(244, 114, 182, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 28%),
        linear-gradient(135deg, #020617 0%, #0f172a 55%, #111827 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
    background: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin-bottom: 28px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.35);
}

.brand {
    font-size: 1.45rem;
    font-weight: 800;
}

.tagline {
    color: var(--muted);
    margin: 6px 0 0;
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
}

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

.container {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.hero,
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
    min-width: 0;
}

.hero-grid,
.grid-2,
.grid-3 {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    align-items: start;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-soft {
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 114, 182, 0.12);
    color: #f9a8d4;
    border: 1px solid rgba(244, 114, 182, 0.25);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .9rem;
    font-weight: 600;
}

.h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin: 18px 0 14px;
    font-weight: 800;
}

.lead {
    font-size: 1.06rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 0.98rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.12);
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}

input,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    outline: none;
    background: rgba(15, 23, 42, 0.52);
    color: var(--text);
    padding: 14px 15px;
    font: inherit;
}

input:focus,
textarea:focus {
    border-color: rgba(244, 114, 182, 0.5);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.12);
}

textarea {
    min-height: 135px;
    resize: vertical;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.form {
    display: grid;
    gap: 18px;
}

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

.session-code {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.18em;
    padding: 18px 22px;
    text-align: center;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px dashed rgba(244, 114, 182, 0.4);
}

.status-row,
.answers,
.participants-list {
    display: grid;
    gap: 14px;
}

.participant-pill,
.answer-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.54);
    border: 1px solid var(--border);
}

.answer-card h4,
.participant-pill h4 {
    margin: 0 0 8px;
}

.progress {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.14);
}

.progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    width: 0;
}

.alert {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 600;
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.24);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.24);
    color: #bbf7d0;
}

.small {
    font-size: .92rem;
}

.center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.footer-note {
    color: var(--muted);
    font-size: .92rem;
}

.kpi {
    font-size: 1.7rem;
    font-weight: 800;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
}

.hero-home {
    position: relative;
    overflow: hidden;
}

.hero-home::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15), transparent 65%);
    pointer-events: none;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}

.hero-point,
.category-pill,
.step-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-point {
    padding: 9px 12px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    font-size: .92rem;
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.trust-item,
.feature-card,
.category-card,
.stat-card,
.session-preview,
.cta-banner {
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.48);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.18);
}

.trust-item {
    padding: 16px 18px;
    border-radius: 18px;
}

.trust-item strong {
    display: block;
    margin-bottom: 8px;
}

.hero-side {
    display: flex;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.hero-panel {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
    overflow: hidden;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.stat-card {
    border-radius: 22px;
    padding: 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.stat-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(244, 114, 182, 0.22);
    background: rgba(244, 114, 182, 0.08);
    color: #f9a8d4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    max-width: 100%;
}

.stat-title {
    margin: 0 0 12px;
    font-size: clamp(1.1rem, 1.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    min-width: 0;
}

.stat-card p {
    margin: 0;
    line-height: 1.65;
    min-width: 0;
    overflow-wrap: break-word;
}

.session-preview {
    border-radius: 20px;
    padding: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.preview-head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-weight: 700;
    margin-bottom: 14px;
    max-width: 100%;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    box-shadow: 0 0 0 6px rgba(244, 114, 182, 0.12);
    flex: 0 0 auto;
}

.steps-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
    min-width: 0;
    max-width: 100%;
}

.steps-list li {
    overflow-wrap: break-word;
}

.section-block {
    display: grid;
    gap: 22px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}

.section-head h2 {
    margin: 4px 0 0;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.eyebrow,
.category-pill,
.step-badge {
    letter-spacing: 0.02em;
}

.eyebrow {
    margin: 0;
    color: #f9a8d4;
    background: rgba(244, 114, 182, 0.10);
    border: 1px solid rgba(244, 114, 182, 0.20);
    padding: 8px 12px;
    font-size: .88rem;
}

.feature-grid,
.category-grid {
    display: grid;
    gap: 20px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.category-card {
    border-radius: 24px;
    padding: 24px;
}

.feature-card h3,
.category-card h3 {
    margin: 14px 0 10px;
    font-size: 1.28rem;
}

.step-badge {
    width: 48px;
    height: 48px;
    background: rgba(244, 114, 182, 0.12);
    border: 1px solid rgba(244, 114, 182, 0.25);
    color: #f9a8d4;
}

.category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-pill {
    width: fit-content;
    padding: 8px 12px;
    font-size: .82rem;
    text-transform: uppercase;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.category-light {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.11), rgba(15, 23, 42, 0.55));
}

.category-hot {
    background: linear-gradient(180deg, rgba(244, 114, 182, 0.12), rgba(15, 23, 42, 0.55));
}

.cta-banner {
    border-radius: 28px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.compact {
    margin: 8px 0 0;
    max-width: 720px;
}

.help-text {
    color: var(--muted);
    font-size: .92rem;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(226, 232, 240, 0.85);
    border-bottom: 2px solid rgba(226, 232, 240, 0.85);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.select,
select.select-category {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    outline: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.88));
    color: var(--text);
    padding: 16px 50px 16px 16px;
    font: inherit;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 30px rgba(2, 6, 23, 0.22);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.select:hover,
select.select-category:hover {
    border-color: rgba(244, 114, 182, 0.28);
}

.select:focus,
select.select-category:focus {
    border-color: rgba(244, 114, 182, 0.55);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.12), 0 14px 30px rgba(2, 6, 23, 0.22);
}

@media (max-width: 1100px) {
    .hero-stats,
    .feature-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: auto;
    }
}

@media (max-width: 880px) {
    .topbar,
    .hero-grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
    }

    .hero-trust,
    .section-head,
    .cta-banner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cta-banner {
        align-items: start;
    }
}
