/* ===== Design System — Light Clean Theme ===== */
:root {
    /* Colors — White/Light */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-input: #f4f5f7;
    --bg-input-focus: #eef0f4;

    --text-primary: #1a1a2e;
    --text-secondary: #5a5f7a;
    --text-tertiary: #8e93a6;
    --text-muted: #b0b5c3;

    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-tertiary: #ec4899;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-secondary: linear-gradient(135deg, #a855f7, #ec4899);
    --gradient-glow: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(168,85,247,0.06));

    --border-subtle: #e8eaef;
    --border-medium: #d4d7e0;
    --border-accent: rgba(99, 102, 241, 0.3);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-glow: 0 4px 24px rgba(99,102,241,0.12);

    --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px;
    --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;

    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
    --radius-xl: 24px; --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Subtle Background ===== */
.bg-grid { display: none; }
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 25s ease-in-out infinite;
}
.bg-glow-1 { width: 500px; height: 500px; background: rgba(99,102,241,0.04); top: -200px; right: -100px; }
.bg-glow-2 { width: 400px; height: 400px; background: rgba(168,85,247,0.03); bottom: -150px; left: -100px; animation-delay: -8s; }
.bg-glow-3 { width: 300px; height: 300px; background: rgba(236,72,153,0.02); top: 50%; left: 50%; animation-delay: -16s; }
@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* ===== Header ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: var(--space-md) var(--space-xl);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}
.header-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--text-primary); }
.logo-icon { display: flex; align-items: center; justify-content: center; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.logo-accent { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.header-nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: var(--transition-fast); }
.nav-link:hover { color: var(--text-primary); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    font-family: var(--font-sans); font-weight: 600; border: none; cursor: pointer;
    transition: var(--transition-base); text-decoration: none; white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-md); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn:not(.btn-sm):not(.btn-lg) { padding: 11px 22px; font-size: 14px; border-radius: var(--radius-md); }
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: 0 2px 10px rgba(99,102,241,0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(99,102,241,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-medium); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-accent); background: rgba(99,102,241,0.04); }
.btn-glow { position: relative; }
.btn-glow::after {
    content: ''; position: absolute; inset: -2px;
    background: var(--gradient-primary); border-radius: inherit;
    z-index: -1; filter: blur(12px); opacity: 0.3;
    animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.4; } }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
    position: relative; z-index: 1; text-align: center;
    padding: 140px var(--space-xl) var(--space-3xl);
    max-width: 820px; margin: 0 auto;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 5px 14px; background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: var(--radius-full);
    font-size: 13px; color: var(--accent-primary);
    margin-bottom: var(--space-lg); animation: slideUp 0.6s ease-out;
}
.badge-dot { width: 6px; height: 6px; background: var(--accent-primary); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: var(--space-md); animation: slideUp 0.6s ease-out 0.1s both; }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-xl); animation: slideUp 0.6s ease-out 0.2s both; }
.highlight { color: var(--accent-primary); font-weight: 700; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: var(--space-xl); margin-bottom: var(--space-xl); animation: slideUp 0.6s ease-out 0.3s both; }
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-number { font-size: 28px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 12px; color: var(--text-tertiary); }
.stat-divider { width: 1px; height: 32px; background: var(--border-subtle); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); animation: slideUp 0.6s ease-out 0.4s both; }
.cta-hint { font-size: 13px; color: var(--text-tertiary); }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ===== How Section ===== */
.how-section { position: relative; z-index: 1; padding: var(--space-3xl) var(--space-xl); max-width: 1000px; margin: 0 auto; }
.section-title { text-align: center; font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-xs); }
.section-subtitle { text-align: center; font-size: 15px; color: var(--text-secondary); margin-bottom: var(--space-2xl); }
.steps-grid { display: flex; align-items: flex-start; justify-content: center; gap: var(--space-md); }
.step-card {
    flex: 1; max-width: 280px; padding: var(--space-lg);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); text-align: center;
    transition: var(--transition-base); position: relative;
}
.step-card:hover { border-color: var(--border-accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-number { position: absolute; top: var(--space-md); right: var(--space-md); font-size: 40px; font-weight: 800; color: rgba(99,102,241,0.06); line-height: 1; }
.step-icon {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--space-sm); background: var(--gradient-glow);
    border-radius: var(--radius-md); color: var(--accent-primary);
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: var(--space-xs); }
.step-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.step-connector { display: flex; align-items: center; padding-top: 50px; }

/* ===== Form Section ===== */
.form-section { position: relative; z-index: 1; padding: var(--space-2xl) var(--space-xl) var(--space-3xl); max-width: 880px; margin: 0 auto; }
.form-container {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl); padding: var(--space-2xl) var(--space-xl);
    box-shadow: var(--shadow-md);
}

/* Progress */
.progress-wrapper { margin-bottom: var(--space-xl); }
.progress-bar { height: 3px; background: var(--bg-input); border-radius: var(--radius-full); overflow: hidden; margin-bottom: var(--space-md); }
.progress-fill { height: 100%; background: var(--gradient-primary); border-radius: var(--radius-full); transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.progress-steps { display: flex; justify-content: space-between; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; }
.step-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-input); border: 2px solid var(--border-subtle); transition: var(--transition-base); }
.progress-step.active .step-dot { background: var(--accent-primary); border-color: var(--accent-primary); box-shadow: 0 0 8px rgba(99,102,241,0.3); }
.progress-step.completed .step-dot { background: var(--accent-success); border-color: var(--accent-success); }
.step-label { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }
.progress-step.active .step-label { color: var(--accent-primary); }
.progress-step.completed .step-label { color: var(--accent-success); }

/* Form Steps */
.form-step { display: none; animation: fadeIn 0.4s ease-out; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-header { margin-bottom: var(--space-lg); }
.step-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-primary); letter-spacing: 0.04em; margin-bottom: var(--space-xs); }
.step-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-xs); }
.step-desc { font-size: 14px; color: var(--text-secondary); }

/* Form Elements */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.form-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: var(--space-xs); }
.required { color: var(--accent-tertiary); font-size: 12px; }
.hint { font-size: 12px; color: var(--text-tertiary); font-weight: 400; }
.form-input {
    width: 100%; padding: 11px 14px; background: var(--bg-input);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
    color: var(--text-primary); font-family: var(--font-sans); font-size: 14px;
    transition: var(--transition-fast); outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { background: var(--bg-input-focus); border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.08); }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238e93a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer;
}
.form-select option { background: white; color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* Chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.chip-item { cursor: pointer; }
.chip-item input { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; background: var(--bg-input);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-full);
    font-size: 13px; color: var(--text-secondary);
    transition: var(--transition-fast); cursor: pointer; user-select: none;
}
.chip:hover { border-color: var(--border-accent); color: var(--text-primary); }
.chip-item input:checked + .chip { background: rgba(99,102,241,0.08); border-color: var(--accent-primary); color: var(--accent-primary); font-weight: 500; }

/* Range */
.range-wrapper { padding: var(--space-sm) 0; }
.form-range { width: 100%; height: 4px; border-radius: var(--radius-full); background: var(--bg-input); outline: none; appearance: none; -webkit-appearance: none; }
.form-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-primary); cursor: pointer; box-shadow: 0 0 8px rgba(99,102,241,0.3); }
.form-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-labels { display: flex; justify-content: space-between; margin-top: var(--space-sm); font-size: 12px; color: var(--text-tertiary); }
.range-value { color: var(--accent-primary); font-weight: 600; }

/* Skill Matrix */
.skill-matrix { display: flex; flex-direction: column; gap: var(--space-md); }
.skill-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md); background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); gap: var(--space-md); }
.skill-name { font-size: 14px; font-weight: 500; min-width: 150px; flex-shrink: 0; }
.skill-levels { display: flex; gap: var(--space-sm); }
.skill-level { cursor: pointer; display: flex; align-items: center; }
.skill-level input { display: none; }
.skill-level span { padding: 5px 12px; border-radius: var(--radius-full); font-size: 12px; color: var(--text-tertiary); background: transparent; border: 1px solid transparent; transition: var(--transition-fast); white-space: nowrap; }
.skill-level:hover span { color: var(--text-secondary); border-color: var(--border-subtle); }
.skill-level input:checked + span { background: rgba(99,102,241,0.08); color: var(--accent-primary); border-color: var(--accent-primary); font-weight: 500; }

/* Form Actions */
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); }

/* ===== Loading ===== */
.loading-state { text-align: center; padding: var(--space-3xl) 0; }
.loading-animation { position: relative; width: 80px; height: 80px; margin: 0 auto var(--space-lg); }
.loading-ring { position: absolute; inset: 0; border: 3px solid rgba(99,102,241,0.1); border-top-color: var(--accent-primary); border-radius: 50%; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.loading-title { font-size: 20px; font-weight: 700; margin-bottom: var(--space-lg); color: var(--text-primary); }
.loading-steps { display: flex; flex-direction: column; gap: var(--space-md); max-width: 300px; margin: 0 auto; }
.loading-step { display: flex; align-items: center; gap: var(--space-md); font-size: 14px; color: var(--text-tertiary); transition: var(--transition-base); }
.loading-step.active { color: var(--text-secondary); }
.loading-step.done { color: var(--accent-success); }
.ls-icon { font-size: 16px; min-width: 22px; }

/* ===== Results ===== */
.results-container { animation: fadeIn 0.6s ease-out; }
.result-hero {
    display: flex; align-items: center; gap: var(--space-2xl);
    padding: var(--space-xl) var(--space-2xl); background: var(--gradient-glow);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: var(--radius-lg); margin-bottom: var(--space-xl);
}
.score-ring { position: relative; width: 130px; height: 130px; flex-shrink: 0; }
.score-svg { width: 100%; height: 100%; }
.score-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-number { font-size: 34px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.score-label { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }
.score-summary h2 { font-size: 22px; font-weight: 700; margin-bottom: var(--space-sm); color: var(--text-primary); }
.score-summary p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* Metrics */
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin-bottom: var(--space-xl); }
.metric-card { padding: var(--space-lg) var(--space-md); background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); text-align: center; transition: var(--transition-base); }
.metric-card:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.metric-icon { font-size: 28px; margin-bottom: var(--space-sm); }
.metric-value { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.metric-value.accent { color: var(--accent-primary); }
.metric-value.success { color: var(--accent-success); }
.metric-value.warning { color: var(--accent-warning); }
.metric-label { font-size: 11px; color: var(--text-tertiary); }

/* Result Sections */
.result-section { margin-bottom: var(--space-xl); }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); }
.result-section-title { font-size: 18px; font-weight: 700; }
.free-badge { font-size: 11px; font-weight: 600; color: var(--accent-success); background: rgba(16,185,129,0.06); padding: 3px 10px; border-radius: var(--radius-full); border: 1px solid rgba(16,185,129,0.15); }

/* Opportunity Cards */
.opportunities-list { display: flex; flex-direction: column; gap: var(--space-md); }
.opportunity-card { padding: var(--space-lg); background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: var(--transition-base); }
.opportunity-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.opp-header { display: flex; gap: var(--space-lg); margin-bottom: var(--space-md); }
.opp-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.opp-header h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.opp-header p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.opp-steps { margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); background: rgba(99,102,241,0.03); border-radius: var(--radius-sm); border-left: 3px solid rgba(99,102,241,0.2); }
.opp-steps p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.opp-steps strong { color: var(--accent-primary); font-weight: 600; }
.opp-meta { display: flex; gap: var(--space-lg); flex-wrap: wrap; padding-top: var(--space-sm); border-top: 1px solid var(--border-subtle); }
.opp-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-tertiary); }
.opp-meta-item strong { color: var(--text-secondary); }
.difficulty-dots { display: flex; gap: 3px; }
.difficulty-dot { width: 8px; height: 8px; border-radius: 50%; background: #e2e5ea; }
.difficulty-dot.active { background: var(--accent-primary); }
.difficulty-dot.active.easy { background: var(--accent-success); }
.difficulty-dot.active.medium { background: var(--accent-warning); }
.difficulty-dot.active.hard { background: var(--accent-danger); }

/* Paywall — keep for structure but style as clean CTA */
.paywall-section { position: relative; margin-bottom: var(--space-lg); border-radius: var(--radius-lg); overflow: hidden; }
.paywall-blur { display: none; }
.paywall-overlay { position: relative; display: flex; align-items: center; justify-content: center; }
.paywall-content { text-align: center; max-width: 440px; padding: var(--space-xl); }
.paywall-icon { font-size: 40px; margin-bottom: var(--space-md); }
.paywall-content h3 { font-size: 20px; font-weight: 700; margin-bottom: var(--space-xs); }
.paywall-content > p { font-size: 14px; color: var(--text-secondary); margin-bottom: var(--space-lg); }
.paywall-features { display: flex; flex-direction: column; gap: var(--space-sm); text-align: left; margin-bottom: var(--space-lg); }
.pw-feature { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; color: var(--text-secondary); }
.paywall-pricing { margin-bottom: var(--space-md); }
.price-tag { display: inline-flex; align-items: baseline; gap: var(--space-sm); }
.price-original { font-size: 16px; color: var(--text-tertiary); text-decoration: line-through; }
.price-current { font-size: 32px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-period { font-size: 13px; color: var(--accent-primary); font-weight: 500; }
.paywall-btn { width: 100%; max-width: 260px; }
.paywall-guarantee { font-size: 12px; color: var(--text-tertiary); margin-top: var(--space-sm); }

/* ===== Chat ===== */
.chat-teaser { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-lg); }
.chat-header-bar { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border-subtle); background: white; }
.chat-avatar { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--gradient-glow); border-radius: var(--radius-md); }
.chat-header-bar h3 { font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.chat-status { font-size: 12px; color: var(--text-tertiary); }
.chat-messages { padding: var(--space-md); max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-sm); }
.chat-msg { display: flex; gap: var(--space-sm); animation: fadeIn 0.3s ease-out; }
.chat-msg.user { flex-direction: row-reverse; }
.msg-avatar { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--gradient-glow); border-radius: var(--radius-sm); flex-shrink: 0; }
.chat-msg.user .msg-avatar { background: rgba(168,85,247,0.08); }
.msg-bubble { max-width: 80%; padding: var(--space-sm) var(--space-md); background: white; border-radius: var(--radius-md); font-size: 13px; line-height: 1.6; color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.chat-msg.user .msg-bubble { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.12); color: var(--text-primary); }
.msg-suggestions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.suggestion-btn { padding: 5px 12px; background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.12); border-radius: var(--radius-full); color: var(--accent-primary); font-size: 12px; font-family: var(--font-sans); cursor: pointer; transition: var(--transition-fast); }
.suggestion-btn:hover { background: rgba(99,102,241,0.12); border-color: var(--accent-primary); }
.chat-input-area { padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--border-subtle); }
.chat-input-wrapper { display: flex; gap: var(--space-sm); align-items: center; }
.chat-input { flex: 1; padding: 9px 14px; background: white; border: 1px solid var(--border-subtle); border-radius: var(--radius-full); color: var(--text-primary); font-family: var(--font-sans); font-size: 13px; outline: none; transition: var(--transition-fast); }
.chat-input:focus { border-color: var(--accent-primary); }
.chat-send-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--gradient-primary); border: none; border-radius: 50%; color: white; cursor: pointer; transition: var(--transition-fast); flex-shrink: 0; }
.chat-send-btn:hover { transform: scale(1.05); }
.chat-limit { font-size: 12px; color: var(--text-tertiary); margin-top: var(--space-xs); text-align: center; }
.chat-limit a { color: var(--accent-primary); text-decoration: none; }
.chat-limit a:hover { text-decoration: underline; }

/* ===== Final CTA / Consultation Service ===== */
.final-cta { text-align: center; padding: var(--space-2xl) var(--space-xl); background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(168,85,247,0.06) 50%, rgba(236,72,153,0.04) 100%); border: 1px solid rgba(99,102,241,0.15); border-radius: var(--radius-xl); margin-top: var(--space-xl); }
.final-cta h3 { font-size: 24px; font-weight: 800; margin-bottom: var(--space-sm); letter-spacing: -0.02em; }
.final-cta .cta-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--space-xl); line-height: 1.7; }
.final-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: var(--space-md); }
.cta-buttons { display: flex; gap: var(--space-md); justify-content: center; }

/* Consultation Card */
.consult-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl);
    text-align: left; margin-bottom: var(--space-xl);
}
.consult-left { display: flex; flex-direction: column; gap: var(--space-lg); }
.consult-service-list { display: flex; flex-direction: column; gap: var(--space-md); }
.consult-item { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); background: rgba(255,255,255,0.7); border-radius: var(--radius-md); border: 1px solid rgba(99,102,241,0.08); }
.consult-item-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.consult-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; color: var(--text-primary); }
.consult-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.consult-right { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg); }
.consult-pricing { text-align: center; }
.consult-pricing .price-from { font-size: 13px; color: var(--text-tertiary); margin-bottom: var(--space-xs); }
.consult-pricing .price-amount-large { font-size: 42px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; }
.consult-pricing .price-unit { font-size: 14px; color: var(--text-secondary); }
.consult-pricing .price-note { font-size: 12px; color: var(--text-tertiary); margin-top: var(--space-xs); }
.consult-wechat { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); padding: var(--space-lg); background: white; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); width: 100%; max-width: 260px; }
.wechat-icon-row { display: flex; align-items: center; gap: var(--space-sm); }
.wechat-icon-row svg { color: #07c160; }
.wechat-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.wechat-id { font-size: 18px; font-weight: 700; color: var(--accent-primary); letter-spacing: 0.02em; padding: var(--space-sm) var(--space-lg); background: rgba(99,102,241,0.06); border: 1px dashed rgba(99,102,241,0.3); border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast); user-select: all; }
.wechat-id:hover { background: rgba(99,102,241,0.1); border-style: solid; }
.wechat-hint { font-size: 12px; color: var(--text-tertiary); }
.consult-guarantee { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }
.guarantee-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.guarantee-item .g-icon { font-size: 16px; }

/* ===== Pricing ===== */
.pricing-section { position: relative; z-index: 1; padding: var(--space-3xl) var(--space-xl); max-width: 1000px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.pricing-card { padding: var(--space-xl); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: var(--transition-base); position: relative; }
.pricing-card:hover { border-color: var(--border-accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--accent-primary); background: rgba(99,102,241,0.02); box-shadow: var(--shadow-glow); transform: scale(1.02); }
.pricing-card.featured:hover { transform: scale(1.02) translateY(-3px); }
.featured-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 14px; background: var(--gradient-primary); border-radius: var(--radius-full); font-size: 12px; font-weight: 600; color: white; white-space: nowrap; }
.pricing-header { text-align: center; padding-bottom: var(--space-md); border-bottom: 1px solid var(--border-subtle); margin-bottom: var(--space-md); }
.pricing-header h3 { font-size: 18px; font-weight: 700; margin-bottom: var(--space-sm); }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: var(--space-sm); }
.price-amount { font-size: 32px; font-weight: 800; }
.pricing-card.featured .price-amount { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-original-inline { font-size: 15px; color: var(--text-tertiary); text-decoration: line-through; }
.price-sub { font-size: 13px; color: var(--text-tertiary); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.pricing-features li { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; color: var(--text-secondary); }
.pricing-features li.disabled { color: var(--text-tertiary); opacity: 0.5; }

/* ===== Service / Pricing Section ===== */
.service-section {
    position: relative; z-index: 1;
    padding: var(--space-3xl) var(--space-xl);
    max-width: 1000px; margin: 0 auto;
}
.service-main-card {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-2xl);
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(99,102,241,0.03) 0%, rgba(168,85,247,0.04) 50%, rgba(236,72,153,0.02) 100%);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.service-highlights { display: flex; flex-direction: column; gap: var(--space-md); }
.service-highlight-item {
    display: flex; align-items: flex-start; gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255,255,255,0.75);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99,102,241,0.06);
    transition: var(--transition-base);
}
.service-highlight-item:hover {
    border-color: rgba(99,102,241,0.15);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}
.sh-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.service-highlight-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.service-highlight-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.service-cta-side {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: var(--space-xl);
}
.service-price-block { text-align: center; }
.service-price-block .price-label { font-size: 13px; color: var(--text-tertiary); display: block; margin-bottom: var(--space-xs); }
.service-price-block .price-big {
    font-size: 48px; font-weight: 800; line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.service-price-block .price-qi {
    font-size: 18px; font-weight: 600;
    -webkit-text-fill-color: var(--accent-secondary);
}
.service-price-block .price-desc { font-size: 12px; color: var(--text-tertiary); display: block; margin-top: var(--space-xs); }

.service-wechat-card {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
    padding: var(--space-lg); background: white;
    border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm); width: 100%; max-width: 240px;
}
.service-trust {
    display: flex; flex-direction: column; gap: var(--space-xs);
    font-size: 12px; color: var(--text-secondary); text-align: center;
}

/* ===== API Promo Banner ===== */
.api-promo {
    position: relative; z-index: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #1a1a2e 100%);
    padding: var(--space-xl) var(--space-xl);
    text-align: center; color: white;
}
.api-promo-inner { max-width: 700px; margin: 0 auto; }
.api-promo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-full); font-size: 12px; font-weight: 600; color: #a5b4fc; margin-bottom: var(--space-md); }
.api-promo h3 { font-size: 20px; font-weight: 800; margin-bottom: var(--space-xs); letter-spacing: -0.01em; }
.api-promo h3 span { background: linear-gradient(90deg, #818cf8, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.api-promo p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: var(--space-md); line-height: 1.6; }
.api-promo .btn { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.2); }
.api-promo .btn:hover { background: rgba(255,255,255,0.2); }

/* ===== Footer ===== */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border-subtle); padding: var(--space-lg) var(--space-xl); }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-brand p { font-size: 12px; color: var(--text-tertiary); margin-top: 3px; }
.footer-links { display: flex; gap: var(--space-lg); }
.footer-links a { font-size: 13px; color: var(--text-tertiary); text-decoration: none; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--text-primary); }

/* ===== Toast ===== */
.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex; align-items: center; gap: var(--space-sm);
    padding: 10px 20px; background: white;
    border: 1px solid var(--border-subtle); border-radius: var(--radius-full);
    font-size: 14px; z-index: 200; opacity: 0;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px); z-index: 300;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: var(--transition-base);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content {
    background: white; border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl); padding: var(--space-2xl);
    max-width: 420px; width: 90%; text-align: center;
    position: relative; transform: translateY(16px); transition: var(--transition-slow);
    box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: var(--space-md); right: var(--space-md); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--text-tertiary); font-size: 22px; cursor: pointer; border-radius: var(--radius-sm); }
.modal-close:hover { background: var(--bg-input); color: var(--text-primary); }
.modal-icon { font-size: 40px; margin-bottom: var(--space-md); }
.modal-content h3 { font-size: 20px; font-weight: 700; margin-bottom: var(--space-sm); }
.modal-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: var(--space-md); }
.modal-price { display: flex; align-items: baseline; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.modal-price-original { font-size: 18px; color: var(--text-tertiary); text-decoration: line-through; }
.modal-price-current { font-size: 36px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.qr-placeholder { margin-bottom: var(--space-md); }
.qr-tabs { display: flex; gap: var(--space-sm); justify-content: center; margin-bottom: var(--space-md); }
.qr-tab { padding: 5px 18px; background: transparent; border: 1px solid var(--border-subtle); border-radius: var(--radius-full); color: var(--text-secondary); font-family: var(--font-sans); font-size: 13px; cursor: pointer; transition: var(--transition-fast); }
.qr-tab.active { background: var(--accent-primary); border-color: var(--accent-primary); color: white; }
.qr-code { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.qr-mock { padding: var(--space-md); background: var(--bg-secondary); border-radius: var(--radius-md); }
.qr-hint { font-size: 13px; color: var(--text-tertiary); }
.modal-tip { font-size: 12px; color: var(--text-tertiary); }

/* ===== Typing ===== */
.typing-indicator { display: flex; gap: 4px; padding: 6px 0; }
.typing-indicator span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-tertiary); animation: typingBounce 1.4s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-nav .nav-link { display: none; }
    .hero { padding: 110px var(--space-md) var(--space-2xl); }
    .hero-subtitle br { display: none; }
    .hero-stats { gap: var(--space-md); }
    .stat-number { font-size: 22px; }
    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); padding: 0; }
    .form-container { padding: var(--space-md); }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: 1; }
    .skill-row { flex-direction: column; align-items: flex-start; }
    .skill-levels { flex-wrap: wrap; }
    .result-hero { flex-direction: column; text-align: center; }
    .metrics-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .progress-steps { display: none; }
    .footer-inner { flex-direction: column; gap: var(--space-md); text-align: center; }
    .cta-buttons { flex-direction: column; }
    .opp-meta { flex-direction: column; gap: var(--space-xs); }
    .consult-card { grid-template-columns: 1fr; }
    .consult-right { align-items: center; }
    .service-main-card { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .stat-divider { display: none; }
    .section-title { font-size: 22px; }
}
