/* ======================================================
   MotorGuage — Premium Car Price Estimator
   Design System & Full Styles
   ====================================================== */

/* ---- CSS Custom Properties (Design Tokens) ---- */
:root {
    /* Color palette */
    --bg-primary: #06070a;
    --bg-secondary: #0c0d12;
    --bg-card: rgba(15, 16, 24, 0.8);
    --bg-card-hover: rgba(20, 22, 34, 0.9);
    --bg-input: rgba(18, 20, 32, 0.9);
    --bg-input-focus: rgba(24, 27, 42, 0.95);

    --text-primary: #f0f1f5;
    --text-secondary: #9498a8;
    --text-muted: #5c6078;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a78bfa;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-glow-strong: rgba(99, 102, 241, 0.35);

    --border-subtle: rgba(99, 102, 241, 0.1);
    --border-default: rgba(99, 102, 241, 0.15);
    --border-focus: rgba(99, 102, 241, 0.5);

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-bg: radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);

    --success: #10b981;
    --warning: #f59e0b;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    pointer-events: none;
    z-index: 0;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

input, select {
    font-family: inherit;
}

/* ---- Background Particles ---- */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
    10% { opacity: 0.6; }
    50% { opacity: 0.3; transform: translateY(-120px) scale(1.5); }
    90% { opacity: 0; }
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-default);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    transition: var(--transition-default);
}

.nav-logo:hover .logo-icon {
    border-color: var(--border-focus);
    background: var(--accent-glow-strong);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    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;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: var(--transition-default);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-default);
}

.nav-cta:hover {
    box-shadow: 0 0 30px var(--accent-glow-strong);
    transform: translateY(-1px);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 32px 80px;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-tertiary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 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: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-default);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-car-card {
    position: relative;
    width: 400px;
    height: 350px;
}

.car-silhouette {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    opacity: 0.6;
    animation: carFloat 4s ease-in-out infinite;
}

@keyframes carFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    animation: floatCard 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-card .fc-icon {
    font-size: 1.25rem;
}

.floating-card .fc-title {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
}

.floating-card .fc-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

.card-1 {
    top: 20px;
    left: 10px;
    animation-delay: 0s;
}

.card-2 {
    top: 60px;
    right: -10px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10px;
    left: 40px;
    animation-delay: 4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-default);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 40px var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
    background: var(--accent-glow);
}

/* ---- Section Shared ---- */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ---- How It Works ---- */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.step-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 40px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition-default);
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.step-card:hover {
    border-color: var(--border-focus);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
}

.step-icon-wrap {
    margin-bottom: 20px;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--accent-glow);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--accent-tertiary);
    transition: var(--transition-default);
}

.step-card:hover .step-icon {
    background: var(--accent-glow-strong);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 72px;
}

/* ---- Estimator Section ---- */
.estimator-section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.estimator-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Form Card */
.form-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-default);
}

.form-card:hover {
    border-color: var(--border-default);
}

.form-progress {
    width: 100%;
    height: 3px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 2px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group label svg {
    color: var(--accent-tertiary);
    flex-shrink: 0;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
    min-width: 0;
}

.select-wrapper select {
    width: 100%;
    min-height: 52px;
    padding: 14px 40px 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-wrapper select:focus {
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.select-wrapper select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.select-wrapper select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.select-wrapper select:focus + .select-arrow {
    color: var(--accent-primary);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    min-width: 0;
}

.input-wrapper input {
    width: 100%;
    min-height: 52px;
    padding: 14px 50px 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    outline: none;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Color Selector */
.color-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    background: var(--bg-input);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--dot-color);
    transition: var(--transition-fast);
}

.color-option:hover {
    border-color: var(--text-muted);
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow-strong);
}

.color-option.active .color-dot {
    transform: scale(0.85);
}

.color-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    min-height: 18px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 1rem;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-loader {
    display: none;
    animation: spin 1s linear infinite;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-arrow {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: block;
    position: absolute;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- Result Panel ---- */
.result-panel {
    flex: 1;
    display: none;
    animation: resultSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-panel.visible {
    display: block;
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 100px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-tertiary);
}

.result-confidence {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 100px;
}

.result-car-info h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.result-car-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.result-price-section {
    text-align: center;
    padding: 32px 0;
    margin: 24px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.result-price-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 8px;
}

.result-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.result-price .currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.result-price .amount {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Range Bar */
.result-range {
    margin: 24px 0;
}

.range-bar {
    width: 100%;
    height: 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 3px;
    position: relative;
    margin-bottom: 10px;
    overflow: visible;
}

.range-fill {
    position: absolute;
    left: 15%;
    right: 15%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    opacity: 0.6;
}

.range-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow-strong);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.range-mid-label {
    color: var(--accent-tertiary);
    font-weight: 600;
}

/* Price Factors */
.result-factors {
    margin: 24px 0;
}

.result-factors h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.factors-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.factor {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 16px;
}

.factor-bar {
    grid-column: 1 / -1;
    height: 4px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.factor-fill {
    height: 100%;
    width: var(--factor-width);
    background: var(--factor-color);
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.factor-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.factor-impact {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
}

/* Reset Button */
.btn-reset {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    padding: 14px;
}

/* ---- Stats Section ---- */
.market-insights-section {
    position: relative;
    z-index: 1;
    padding: 24px 0 96px;
}

.market-insights-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 44px;
    align-items: center;
}

.market-insights-copy .section-title,
.market-insights-copy .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.market-insights-copy .section-title {
    max-width: 620px;
}

.market-insights-copy .section-subtitle {
    max-width: 620px;
    margin-bottom: 30px;
}

.market-insights-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.insight-preview-card {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-default);
}

.insight-preview-card:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.preview-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insight-preview-card strong {
    display: block;
    margin: 18px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insight-preview-card span:last-child {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.stats-section {
    position: relative;
    z-index: 1;
    padding: 80px 0 var(--section-padding);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-default);
}

.trust-card:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.trust-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered fade in */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .estimator-layout {
        flex-direction: column;
    }

    .market-insights-layout {
        grid-template-columns: 1fr;
    }

    .result-card {
        position: static;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .section-container,
    .nav-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-links {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .market-insights-preview {
        grid-template-columns: 1fr 1fr;
    }

    .form-card {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .result-card {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .section-container,
    .nav-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .estimator-section {
        padding-top: 72px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .form-card,
    .result-card {
        padding: 20px;
    }

    .form-row {
        gap: 16px;
        margin-bottom: 16px;
    }

    .select-wrapper select,
    .input-wrapper input {
        min-height: 54px;
        font-size: 1rem;
    }

    .color-options {
        gap: 8px;
    }

    .color-option {
        width: 36px;
        height: 36px;
    }

    .color-dot {
        width: 20px;
        height: 20px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .market-insights-preview {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .result-price .amount {
        font-size: 2rem;
    }

    .range-labels {
        align-items: flex-start;
        gap: 8px;
        font-size: 0.66rem;
    }

    .range-mid-label {
        display: none;
    }
}
