:root {
    --bg: #07111f;
    --bg-soft: #0d1d33;
    --panel: rgba(12, 22, 38, 0.76);
    --panel-strong: rgba(14, 28, 47, 0.94);
    --panel-light: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text-main: #edf3ff;
    --text-soft: #aab8cf;
    --accent: #5dd5c8;
    --accent-strong: #17b6ac;
    --accent-warm: #ffb86f;
    --danger-soft: rgba(255, 124, 95, 0.12);
    --danger-line: rgba(255, 124, 95, 0.24);
    --success-soft: rgba(93, 213, 200, 0.14);
    --success-line: rgba(93, 213, 200, 0.26);
    --shadow-xl: 0 32px 90px rgba(2, 8, 18, 0.44);
    --shadow-lg: 0 18px 44px rgba(2, 8, 18, 0.28);
    --radius-2xl: 34px;
    --radius-xl: 26px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 15% 15%, rgba(93, 213, 200, 0.16), transparent 24%),
        radial-gradient(circle at 82% 22%, rgba(255, 184, 111, 0.16), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(36, 86, 152, 0.18), transparent 28%),
        linear-gradient(180deg, #06101e 0%, #081426 40%, #0a1830 100%);
    overflow-x: hidden;
}

.bg-orb {
    position: fixed;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
}

.orb-a {
    top: -8rem;
    left: -10rem;
    background: #1bc8bd;
}

.orb-b {
    top: 4rem;
    right: -8rem;
    background: #ff9f43;
}

.orb-c {
    bottom: -10rem;
    left: 35%;
    background: #3f7cff;
}

.page-shell {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1220px;
}

.hero-wrap {
    position: relative;
}

.hero-card,
.workspace-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 26, 46, 0.92), rgba(8, 18, 32, 0.88));
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-2xl);
}

.hero-card {
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(93, 213, 200, 0.06), transparent 38%),
        linear-gradient(315deg, rgba(255, 184, 111, 0.08), transparent 34%);
    pointer-events: none;
}

.notice-bar {
    margin-bottom: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
}

.notice-bar--success {
    border-color: var(--success-line);
    background: var(--success-soft);
}

.notice-bar--error {
    border-color: var(--danger-line);
    background: var(--danger-soft);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    gap: 1.4rem;
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker,
.mini-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.hero-copy h1 {
    margin: 1rem 0 0;
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    font-size: clamp(2.5rem, 4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 12ch;
}

.hero-lead {
    max-width: 56rem;
    margin: 1.2rem 0 0;
    color: var(--text-soft);
    font-size: 1.06rem;
    line-height: 1.82;
}

.hero-badges,
.hero-stats,
.chip-list,
.tag-row,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-badges {
    margin-top: 1.5rem;
}

.hero-pill,
.status-chip,
.tag,
.chip-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-pill {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.hero-stats {
    margin-top: 1.6rem;
}

.stat-chip {
    min-width: 180px;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.stat-chip span {
    display: block;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.stat-chip strong {
    display: block;
    margin-top: 0.34rem;
    font-size: 1rem;
    font-weight: 800;
}

.hero-side {
    display: grid;
    gap: 1rem;
}

.hero-side-card {
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    min-height: 160px;
}

.hero-side-main {
    background: linear-gradient(160deg, rgba(28, 104, 114, 0.88), rgba(13, 60, 76, 0.98));
    border-color: rgba(93, 213, 200, 0.24);
}

.side-title {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
}

.side-copy,
.side-list,
.section-subtitle,
.input-hint,
.metric-label,
.empty-muted,
.evidence-text,
.text-muted {
    color: var(--text-soft) !important;
}

.side-copy {
    margin-top: 0.75rem;
    line-height: 1.7;
}

.side-list {
    margin: 0.9rem 0 0;
    padding-left: 1.1rem;
    line-height: 1.9;
}

.workspace-section {
    margin-top: 1.75rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.section-heading h2 {
    margin: 0.3rem 0 0;
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    font-size: clamp(1.9rem, 2.5vw, 2.8rem);
    letter-spacing: -0.03em;
}

.section-subtitle {
    max-width: 560px;
    line-height: 1.8;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
    gap: 1.2rem;
}

.workspace-card {
    padding: 1.25rem;
    position: relative;
}

.workspace-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.card-head,
.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.card-head h3,
.compare-header h3 {
    margin: 0.35rem 0 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.card-tip {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.88rem;
    white-space: nowrap;
}

.stack-form,
.form-block {
    display: grid;
    gap: 0.5rem;
}

.stack-form {
    gap: 1rem;
}

.form-label {
    color: var(--text-main);
    font-weight: 700;
}

.soft-input {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    box-shadow: none !important;
    padding: 0.95rem 1rem;
}

.soft-input:focus {
    border-color: rgba(93, 213, 200, 0.55);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
}

.soft-input::placeholder {
    color: rgba(170, 184, 207, 0.82);
}

.text-editor {
    min-height: 210px;
    resize: vertical;
}

.job-editor {
    min-height: 150px;
}

.btn {
    border-radius: 16px;
    padding: 0.82rem 1.15rem;
    font-weight: 700;
}

.btn-solid {
    color: #041019;
    background: linear-gradient(135deg, #5dd5c8, #73f0c4);
    border: none;
    box-shadow: 0 14px 30px rgba(93, 213, 200, 0.24);
}

.btn-solid:hover {
    color: #041019;
    background: linear-gradient(135deg, #6ce6da, #86f7cd);
}

.btn-ghost {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.status-chip {
    min-width: 118px;
    background: rgba(93, 213, 200, 0.12);
    color: var(--accent);
    border: 1px solid rgba(93, 213, 200, 0.22);
}

.placeholder-panel {
    display: grid;
    place-items: center;
    min-height: 280px;
    border-radius: 28px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    text-align: center;
    padding: 1.6rem;
    color: var(--text-soft);
}

.summary-grid,
.dimension-grid,
.analysis-grid,
.diagnostic-grid,
.compare-grid {
    display: grid;
    gap: 0.95rem;
}

.summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 1rem;
}

.analysis-grid,
.diagnostic-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.compare-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.metric-card,
.dimension-card,
.panel-card,
.rewrite-card,
.suggestion-card,
.evidence-card,
.compare-card,
.compare-row,
.diagnostic-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.metric-card,
.dimension-card,
.diagnostic-card,
.rewrite-card,
.compare-row,
.compare-card,
.panel-card {
    padding: 1rem;
}

.metric-value {
    margin-top: 0.45rem;
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.metric-value--sm {
    font-size: 1.55rem;
}

.dimension-card strong {
    font-size: 1.05rem;
}

.progress {
    height: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.progress-bar {
    background: linear-gradient(90deg, #5dd5c8, #7ef0d5);
}

.result-stack,
.suggestion-list,
.evidence-list,
.rewrite-list,
.simple-list,
.resource-list,
.draft-sections {
    display: grid;
    gap: 0.95rem;
}

.result-hero {
    display: grid;
    gap: 1rem;
}

.summary-banner {
    padding: 1.25rem;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(93, 213, 200, 0.14), rgba(43, 102, 170, 0.2)),
        rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(93, 213, 200, 0.18);
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.profile-pill {
    display: inline-flex;
    margin-top: 0.7rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
}

.friendly-banner {
    padding: 1rem 1.1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 184, 111, 0.22);
    background: linear-gradient(135deg, rgba(255, 184, 111, 0.14), rgba(255, 255, 255, 0.04));
}

.panel-title {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.journey-grid {
    display: grid;
    gap: 1rem;
}

.journey-card {
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.journey-card--wide {
    background: linear-gradient(180deg, rgba(20, 31, 56, 0.92), rgba(11, 23, 43, 0.92));
}

.resource-list--courses {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.resource-card {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.resource-line {
    padding: 0.72rem 0.82rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    line-height: 1.7;
}

.resource-link {
    display: inline-flex;
    margin-top: 0.45rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.resource-link:hover {
    color: #8bf4d8;
}

.draft-card {
    border-radius: 26px;
    border: 1px solid rgba(93, 213, 200, 0.2);
    background: linear-gradient(180deg, rgba(16, 28, 49, 0.96), rgba(9, 20, 37, 0.94));
    padding: 1rem;
}

.draft-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.draft-section {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.draft-section-title {
    margin-bottom: 0.6rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--accent);
}

.draft-text {
    margin: 1rem 0 0;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 9, 20, 0.56);
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.8;
    font-family: "Noto Sans SC", "Consolas", monospace;
    font-size: 0.95rem;
}

.skill-chip,
.gap-chip,
.chip-pill {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.88rem;
}

.skill-chip,
.chip-pill--good {
    color: var(--accent);
    background: rgba(93, 213, 200, 0.12);
    border: 1px solid rgba(93, 213, 200, 0.18);
}

.gap-chip,
.chip-pill--bad {
    color: #ffab8e;
    background: rgba(255, 124, 95, 0.12);
    border: 1px solid rgba(255, 124, 95, 0.2);
}

.chip-pill--neutral {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
}

.tag {
    color: var(--accent);
    background: rgba(93, 213, 200, 0.1);
    border: 1px solid rgba(93, 213, 200, 0.16);
}

.evidence-text {
    margin: 0.45rem 0 0;
    line-height: 1.8;
}

.suggestion-card {
    padding: 1.05rem 1rem;
}

.suggestion-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.compare-shell {
    padding: 1.3rem;
}

.compare-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.compare-output {
    margin-top: 1.5rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
}

.compare-row-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

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

.workspace-section--compare {
    margin-bottom: 3rem;
}

@media (max-width: 991px) {
    .hero-grid,
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-card,
    .workspace-card,
    .compare-shell {
        padding: 1rem;
        border-radius: 24px;
    }

    .section-heading,
    .card-head,
    .compare-header,
    .compare-row-title,
    .draft-toolbar {
        flex-direction: column;
        align-items: start;
    }

    .metric-value {
        font-size: 1.72rem;
    }
}
