:root {
    --text-primary: #f8fafc;
    --text-muted: #cbd5e1;
    --accent-emerald: #22c55e;
    --accent-emerald-dark: #16a34a;
    --accent-emerald-light: #34d399;
    --accent-sky: #38bdf8;
    --accent-gold: #facc15;
    --accent-magenta: #d946ef;
    --glass: rgba(15, 23, 42, 0.8);
    --card-bg: rgba(15, 23, 42, 0.75);
    --surface-soft: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(15, 23, 42, 0.9);
    --blur: 18px;
    --focus-ring: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #020617 0%, #1e1b4b 55%, #0f172a 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    color: var(--text-muted);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1.5rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.6rem 1.1rem;
    background: #38bdf8;
    color: #0b1120;
    border-radius: 0.75rem;
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.35);
    z-index: 200;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 2.75rem);
    width: 100%;
}

/* Header */
header {
    padding: 1.25rem clamp(1rem, 5vw, 2rem) 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 100;
}

.logo img {
    height: 65px;
    width: auto;
    max-width: clamp(100px, 10vw, 150px);
    object-fit: contain;
    display: block;
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #34d399;
}

.phone-btn {
    background: var(--accent-emerald);
    color: #f8fafc;
    padding: 0.65rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-icon {
    flex-shrink: 0;
}

.phone-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.phone-btn:hover {
    background: var(--accent-emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.phone-btn:hover::before {
    width: 300px;
    height: 300px;
}

.phone-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    display: block;
    color: var(--accent-emerald);
    margin-top: 0.5rem;
}

.hero-description {
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 34ch;
}

.features {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stars {
    color: var(--accent-emerald);
}

/* Customization Chips */
.customization-section {
    margin: 1.5rem 0;
}

.customization-category {
    margin-bottom: 1rem;
}

.category-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.82);
    margin-bottom: 0.45rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chip:hover {
    background: rgba(148, 163, 184, 0.18);
    transform: translateY(-1px);
}

.chip.selected {
    background: rgba(34, 197, 94, 0.18);
    color: rgba(34, 197, 94, 0.95);
    border-color: rgba(34, 197, 94, 0.4);
}

.chip[data-address-summary].active-address {
    background: rgba(34, 197, 94, 0.18);
    color: rgba(34, 197, 94, 0.95);
}

/* Image Upload */
.image-upload-section {
    margin: 1.5rem 0;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent-sky);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.upload-button:hover {
    background: rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

.upload-preview {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: none;
}

.upload-preview.active {
    display: block;
}

.upload-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Share & Fullscreen Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-primary);
    border: 1px solid rgba(148, 163, 184, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Process Section */
.process-overview {
    padding: 0 0 clamp(2.5rem, 4vw, 3rem);
    position: relative;
}

.process-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.process-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-subtitle {
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.process-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 1.8rem;
    display: grid;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.4);
}

.process-card::after {
    content: "";
    position: absolute;
    inset: auto -40% -40% -40%;
    height: 140px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.22), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-card:hover::after {
    opacity: 1;
}

.process-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.process-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
    padding: 4.5rem 0 5rem;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.reviews-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
}

.reviews-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.reviews-heading h2 {
    margin-bottom: 0;
}

.reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.reviews-rating:hover {
    transform: translateY(-2px);
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.reviews-rating .brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
}

.reviews-rating .brand svg {
    width: 100%;
    height: 100%;
}

.reviews-rating .score {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.reviews-rating .stars {
    color: #facc15;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
    font-size: 0.9rem;
}

.reviews-rating .label {
    color: var(--accent-emerald);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.reviews-description {
    color: var(--text-muted);
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.7;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.review-card {
    background: rgba(248, 250, 252, 0.06);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(248, 250, 252, 0.12);
    display: grid;
    gap: 0.9rem;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
}

.review-photo {
    width: 100%;
    height: 180px;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.review-header strong {
    font-size: 1.08rem;
    color: #f8fafc;
}

.review-meta {
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.9rem;
}

.review-stars {
    color: #facc15;
    letter-spacing: 0.12em;
    font-size: 1.05rem;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

.review-quote {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-link {
    color: var(--accent-emerald);
    font-weight: 600;
    text-decoration: none;
    width: max-content;
    transition: all 0.2s ease;
}

.review-link:hover {
    text-decoration: underline;
    color: var(--accent-emerald-light);
}

.owner-response {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.owner-response strong {
    color: var(--text-primary);
}

.reviews-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.reviews-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-emerald);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 20px 48px rgba(34, 197, 94, 0.22);
    transition: all 0.2s ease;
}

.reviews-cta a:hover {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 24px 56px rgba(34, 197, 94, 0.3);
}

/* Hero Section */
main.hero {
    display: flex;
    align-items: start;
    padding: clamp(0.75rem, 2vw, 1.5rem) 0 clamp(1rem, 2vw, 1.5rem);
    position: relative;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
}

main.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.18), transparent 60%),
                radial-gradient(ellipse at top right, rgba(34, 197, 94, 0.15), transparent 55%),
                radial-gradient(ellipse at bottom, rgba(217, 70, 239, 0.12), transparent 65%);
    opacity: 0.85;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2.4rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    width: 100%;
    align-items: start;
    justify-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content { order: 1; }
    .hero-art { order: 2; }
}

.hero-art {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    align-self: start;
    align-items: center;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: -8% -8% -8%;
    background: conic-gradient(from 160deg,
            rgba(34, 197, 94, 0.25),
            rgba(56, 189, 248, 0.22),
            rgba(217, 70, 239, 0.18),
            rgba(34, 197, 94, 0.25));
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.house-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.15),
            rgba(56, 189, 248, 0.14),
            rgba(217, 70, 239, 0.12));
    padding: 0.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.15);
    width: 100%;
    max-width: 480px;
    z-index: 1;
    box-sizing: border-box;
}

.house-frame {
    position: relative;
    border-radius: 1.2rem 1.2rem 0 0;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: none;
    aspect-ratio: 4 / 3;
    min-height: 260px;
}

#hero-house {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    max-height: 400px;
    border-radius: 1.5rem 1.5rem 0 0;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: saturate(1.15) brightness(1.05);
    background: linear-gradient(
        90deg,
        rgba(30, 41, 59, 0.4) 0%,
        rgba(51, 65, 85, 0.5) 20%,
        rgba(30, 41, 59, 0.4) 40%,
        rgba(30, 41, 59, 0.4) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

#hero-house.loaded {
    animation: none;
    background: transparent;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

body.has-address #hero-house {
    transform: scale(1.01);
    filter: saturate(1.2) brightness(1.1);
}

.house-frame.loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    z-index: 10;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(20px) saturate(1.3);
    }
    50% {
        background: rgba(34, 197, 94, 0.2);
        backdrop-filter: blur(25px) saturate(1.5);
    }
}

.house-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(2, 6, 23, 0.45) 100%);
    pointer-events: none;
}

.hero-preview-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 15;
    pointer-events: none;
}

.hero-preview-status.loading {
    background: transparent;
    border-color: transparent;
}

.hero-preview-label {
    display: none;
}

.hero-preview-status.loading .hero-preview-label {
    display: none;
}

.hero-loading-dots {
    display: inline-flex;
    gap: 0.35rem;
}

.hero-loading-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent-sky);
    opacity: 0.45;
    transform-origin: center bottom;
    animation: hero-dot-pop 2.2s ease-in-out 1 forwards;
}

.hero-loading-dot:nth-child(2) {
    background: var(--accent-gold);
    animation-delay: 0.1s;
}

.hero-loading-dot:nth-child(3) {
    background: var(--accent-emerald);
    animation-delay: 0.2s;
}

@keyframes hero-dot-pop {
    0% { transform: translateY(0); opacity: 0.2; }
    18% { transform: translateY(-6px); opacity: 1; }
    32% { transform: translateY(0); opacity: 0.75; }
    46% { transform: translateY(-4px); opacity: 0.9; }
    60% { transform: translateY(0); opacity: 0.6; }
    74% { transform: translateY(0); opacity: 0.55; }
    100% { transform: translateY(0); opacity: 0.55; }
}

.house-wrapper.loading .hero-loading-dot {
    animation: hero-dot-wave 1.6s ease-in-out infinite;
}

.house-wrapper.loading .hero-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.house-wrapper.loading .hero-loading-dot:nth-child(3) { animation-delay: 0.3s; }

.house-wrapper.lights-rest .hero-loading-dot {
    animation: none;
    opacity: 0.55;
}

@keyframes hero-dot-wave {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-4px); opacity: 0.95; }
}

/* Hero Before/After Animations */
.hero-before-after {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-before-after.active {
    opacity: 1;
    pointer-events: all;
    position: relative;
}

.hero-before,
.hero-after {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-before {
    z-index: 1;
    /* Subtle nighttime filter on carousel before images */
    filter: brightness(0.6) contrast(1.05) saturate(0.9) hue-rotate(-10deg) sepia(5%) blur(2px);
}

.hero-after {
    z-index: 2;
    /* Starts hidden via clip-path, set by JavaScript */
}

/* Hero CTA Chip */
.hero-cta {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(56, 189, 248, 0.15));
    backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.6);
    opacity: 0;
    transition: opacity 0.8s ease 2s;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    animation: chipGlow 3s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

@keyframes chipGlow {
    0%, 100% {
        color: rgba(255, 255, 255, 0.9);
        border-color: rgba(34, 197, 94, 0.6);
        box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
    }
    50% {
        color: rgba(34, 197, 94, 1);
        border-color: rgba(34, 197, 94, 0.9);
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4), 0 0 30px rgba(34, 197, 94, 0.3);
    }
}

.hero-before-after.show-after .hero-cta {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-cta {
        bottom: 12px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

.hero-ai-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.hero-ai-loading.active {
    opacity: 1;
    pointer-events: all;
}

.hero-ai-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(34, 197, 94, 0.2);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

.hero-ai-loading span {
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.hero-ai-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.hero-ai-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.house-wrapper.enhancing .house-frame {
    position: relative;
}

.house-wrapper.enhancing .enhancement-loader {
    display: flex !important;
}

.enhancement-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 0.5rem;
    z-index: 30;
    filter: none !important;
    -webkit-filter: none !important;
}

.enhancement-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    animation: dot-wave 1.4s ease-in-out infinite;
}

.enhancement-dot:nth-child(1) {
    background: #4285F4;
    animation-delay: 0s;
}

.enhancement-dot:nth-child(2) {
    background: #EA4335;
    animation-delay: 0.2s;
}

.enhancement-dot:nth-child(3) {
    background: #FBBC05;
    animation-delay: 0.4s;
}

.enhancement-dot:nth-child(4) {
    background: #34A853;
    animation-delay: 0.6s;
}

@keyframes dot-wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.house-wrapper.enhanced .hero-after {
    opacity: 1;
}

/* Reveal Slider for User's House */
.reveal-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.reveal-before,
.reveal-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none !important;
}

.reveal-before {
    z-index: 1;
    /* Subtle nighttime CSS filter */
    filter: brightness(0.6) contrast(1.05) saturate(0.9) hue-rotate(-10deg) sepia(5%);
}

.reveal-after {
    z-index: 2;
    /* Clip path will be updated by JavaScript */
    clip-path: inset(0 50% 0 0);
}

/* Interactive Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.8) 0%, rgba(16, 185, 129, 0.8) 100%);
    z-index: 10;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
}

@keyframes slider-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5),
                    0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5),
                    0 0 0 12px rgba(34, 197, 94, 0);
    }
}

/* Slider labels */
.slider-label {
    position: absolute;
    top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 5;
    pointer-events: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reveal-slider-container:hover .slider-label {
    opacity: 1;
}

.slider-label-before {
    left: 1.5rem;
    color: #94a3b8;
}

.slider-label-after {
    right: 1.5rem;
    color: var(--accent-emerald);
}

/* AI Control Chips - Top Right */
.ai-control-chips.top-chips {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

/* Decoration Chips - Bottom Center Horizontal */
.decoration-chips {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

.floating-chip {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.floating-chip:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.floating-chip svg {
    width: 14px;
    height: 14px;
}

.chip-symbol {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

/* Toggle chips with labels (wider pills) */
.floating-chip.toggle-chip {
    width: auto;
    min-width: 32px;
    padding: 0 10px;
    border-radius: 16px;
    gap: 4px;
}

.chip-label {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.floating-chip.toggle-chip[data-active="true"] {
    background: rgba(34, 197, 94, 0.25);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.floating-chip.toggle-chip[data-active="true"] .chip-symbol {
    content: '−';
}

/* Chip with Dropdown */
.chip-with-dropdown {
    position: relative;
}

/* Expand hover area with invisible padding */
.chip-with-dropdown::before {
    content: '';
    position: absolute;
    inset: -12px;
    z-index: 0;
}

.chip-dropdown {
    position: absolute;
    bottom: calc(100% - 0.25rem);
    right: -20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 0.75rem 0.5rem 0.5rem;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.15s ease;
    z-index: 30;
}

.chip-with-dropdown:hover .chip-dropdown,
.chip-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    pointer-events: auto;
}

.dropdown-item:hover {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-emerald);
}

.dropdown-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Inline Prompt Input */
.inline-prompt-input {
    position: absolute;
    bottom: 3.5rem;
    left: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 20;
    pointer-events: auto;
}

.inline-prompt-input.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.inline-prompt-input input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.inline-prompt-input input:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.inline-prompt-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.inline-prompt-actions button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.fullscreen-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.fullscreen-content {
    position: relative;
    width: 50%;
    max-width: 1200px;
    aspect-ratio: 4/3;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    z-index: 10001;
}

.fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10002;
}

.fullscreen-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .fullscreen-content {
        width: 70%;
        max-width: none;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom Prompt Modal */
.custom-prompt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--accent-emerald);
    font-size: 1.5rem;
}

.modal-content textarea {
    width: 100%;
    padding: 0.875rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    margin-bottom: 1.5rem;
}

.modal-content textarea:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.hero-custom-house {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.hero-custom-house.loaded {
    opacity: 1;
}

body.has-address .hero-before-after {
    display: none !important;
}

body.has-address .hero-custom-house {
    display: block !important;
}

/* Form Styles */
.address-card {
    background: rgba(248, 250, 252, 0.08);
    border-radius: 1.5rem;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 24px 60px rgba(4, 9, 20, 0.5);
    border: 1px solid rgba(248, 250, 252, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--blur));
}

.address-card h2 {
    margin: 0.15rem 0 1rem;
    font-size: 1.32rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(100%, 540px);
    margin: 0 auto;
    min-height: 0;
}

.address-step h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
}

.hero-card-media {
    display: flex;
    justify-content: center;
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

.address-step {
    width: 100%;
    padding: 0.25rem 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-top: none;
    border-radius: 0 0 1rem 1rem;
}

.address-hint {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.7);
    margin: 0.5rem 0 0.25rem;
    padding: 0;
}

.step-card {
    width: 100%;
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem clamp(0.85rem, 1.6vw, 1.15rem);
    border-radius: 1.4rem;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 52px rgba(4, 9, 20, 0.42);
}

.step-card .step-label {
    align-self: flex-start;
}

.address-step h2 {
    margin: 0;
    font-size: 1.28rem;
}

.details-step {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    margin: 0 !important;
}

body.has-address .address-step {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.has-address .details-step {
    display: grid !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

@media (min-width: 900px) {
    .hero-card {
        max-width: 560px;
    }
}

#address-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.input-with-button {
    position: relative;
    width: 100%;
    padding: 0;
}

.input-with-button input {
    width: 100%;
}

.input-with-button input::placeholder {
    font-weight: 400;
    color: rgba(100, 116, 139, 0.5);
}

.input-button {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0B1120;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3), 0 0 16px rgba(34, 197, 94, 0.2);
}

.input-button:hover {
    background: linear-gradient(135deg, #2dd76e 0%, #22c55e 100%);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.3);
}

.input-button:active {
    transform: translateY(-50%) scale(0.98);
}

#address-form label span,
#details-form label span,
.field-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.82);
    margin-bottom: 0.45rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input::placeholder,
textarea::placeholder {
    color: rgba(226, 232, 240, 0.85);
}

#address-input::placeholder {
    color: rgba(100, 116, 139, 0.75);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: var(--focus-ring);
    background: rgba(15, 23, 42, 0.75);
}

input.error,
select.error,
textarea.error {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}

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

@keyframes blink-caret {
    0%, 49% { caret-color: #22c55e; }
    50%, 100% { caret-color: transparent; }
}

#address-input {
    width: 100%;
    padding: 0.95rem 1.35rem;
    padding-right: 3.75rem;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
    caret-color: #22c55e;
    animation: blink-caret 0.7s steps(1) infinite;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

#address-input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
    background: #ffffff;
    caret-color: #22c55e;
    animation: blink-caret 0.7s steps(1) infinite;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-dark));
    color: #04130a;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 20px 38px rgba(34, 197, 94, 0.28);
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 48px rgba(52, 211, 153, 0.35);
}

.subtext {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.75);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 520px;
    align-items: center;
    text-align: center;
    justify-self: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: var(--accent-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
}

.hero-title span {
    color: var(--accent-emerald);
}

.hero-copy {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 36ch;
    line-height: 1.55;
    margin: 0 auto;
    text-align: center;
}

.hero-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 0.35rem;
    width: 100%;
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #f8fafc;
    font-weight: 600;
    box-shadow: 0 18px 32px rgba(15, 118, 110, 0.22);
}

.metric-pill-link {
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.metric-pill-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.15);
}

.metric-pill-link:hover .metric-cta {
    opacity: 1;
}

.metric-cta {
    color: var(--accent-emerald);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    margin-left: 0.15rem;
    opacity: 0.95;
}

.metric-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
}

.metric-brand svg {
    width: 100%;
    height: 100%;
}

.metric-stars {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    color: #facc15;
}

.metric-score {
    color: var(--text-muted);
    font-weight: 500;
}

.metric-dot {
    color: rgba(148, 163, 184, 0.65);
    font-size: 1.1rem;
}

.metric-text {
    color: var(--accent-emerald-light);
    font-weight: 600;
    text-align: center;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--accent-sky);
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-button:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

#details-panel {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    position: relative;
}

#details-panel form {
    display: grid;
    gap: 0.5rem;
}

.details-card {
    width: min(100%, 540px);
    margin: 0 auto 0;
    display: grid;
    gap: 0.6rem;
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 1.5rem 1.8rem 1.8rem;
}

.details-card form[aria-hidden="true"] {
    display: none;
}

#details-panel h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

body.has-address #details-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.details-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.details-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(226, 232, 240, 0.65);
    margin-bottom: 0.35rem;
}

.progress-count {
    font-weight: 600;
    color: rgba(248, 250, 252, 0.8);
    letter-spacing: 0.08em;
}

.step-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent-sky);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.compact-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.compact-grid label span {
    margin-bottom: 0;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
    font-weight: 600;
}

.full-span {
    grid-column: 1 / -1;
}

/* Multi-Step Form Layout */
.step-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.field-row label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.field-row label span {
    margin-bottom: 0;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
    font-weight: 600;
}

/* Step Transitions */
.form-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideInStep 0.3s ease forwards;
}

@keyframes slideInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Secondary Button */
.secondary-button {
    padding: 0.9rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Google Places Autocomplete Dropdown Styling */
.pac-container {
    z-index: 9999 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    padding: 8px 0 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 197, 94, 0.1) !important;
}

.pac-container:after {
    display: none !important;
}

.pac-item {
    font-size: 0.9rem !important;
    padding: 14px 18px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1.5 !important;
}

.pac-item:last-child {
    border-bottom: none !important;
}

.pac-item:hover,
.pac-item-selected {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
}

.pac-item-query {
    color: #f8fafc !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.pac-matched {
    color: #22c55e !important;
    font-weight: 700 !important;
}

.pac-icon {
    display: none !important;
}

.pac-icon-marker {
    display: none !important;
}

.success-state {
    display: none;
    margin-top: 1.5rem;
    padding: 1.4rem 1.6rem;
    border-radius: 1.5rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: var(--text-primary);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.25);
}

.success-state.active { display: block; }

.loader-backdrop {
    display: none !important;
}

.loader-backdrop.active {
    display: none !important;
}

.loader-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
}

.loader-dots {
    display: inline-flex;
    gap: 0.4rem;
}

.loader-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #38bdf8;
    opacity: 0.4;
    transform-origin: center;
    animation: loader-wave 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }

.loader-copy {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

@keyframes loader-wave {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
    60% { transform: translateY(0); opacity: 0.65; }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    main.hero {
        padding: 0;
    }

    .hero-inner {
        padding: 0 0.25rem 0 0.25rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-content {
        order: 1;
        gap: 0.05rem;
        text-align: center;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
        margin: 0;
        text-align: center;
    }

    .hero-badge {
        display: none;
    }

    .mobile-nc-chip {
        display: block !important;
        text-align: center;
        margin-top: -1.5rem;
        margin-bottom: 0.3rem;
    }

    .mobile-review-widget {
        display: block !important;
    }

    .mobile-review-widget a {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
        border: 1px solid rgba(34, 197, 94, 0.25) !important;
    }

    .mobile-review-widget a:active {
        transform: scale(0.98);
        background: rgba(34, 197, 94, 0.12) !important;
    }

    .hero-metrics {
        display: none;
    }

    .hero-art {
        order: 2;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        margin-top: -4rem;
    }

    .hero-art::before {
        display: none;
    }

    .house-wrapper {
        max-width: 100% !important;
        margin: 0;
        padding: 0.25rem;
        width: 100%;
    }

    .house-frame {
        min-height: 180px;
    }

    .address-step {
        padding: 0.5rem 0.25rem;
    }

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

    .details-card {
        padding: 1.5rem 0.5rem 1.8rem;
        margin: 0 auto 0;
        width: 100%;
        max-width: 100%;
    }

    header {
        padding: 1rem;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 44px;
        max-width: 180px;
        width: 100%;
    }

    .nav-links {
        display: flex;
    }

    .nav-link {
        display: none;
    }

    .phone-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
        position: relative;
        flex-shrink: 0;
    }

    .phone-btn svg,
    .phone-btn span {
        display: none;
    }

    .phone-btn::after {
        content: "";
        width: 22px;
        height: 22px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform: scaleX(-1);
    }

    .mobile-call-btn {
        display: flex;
    }

    .mobile-floating-call {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
        background: var(--accent-emerald);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        text-decoration: none;
        transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
        opacity: 0;
        transform: translateY(100px);
    }

    .mobile-floating-call.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-floating-call::after {
        content: "";
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform: scaleX(-1);
    }

    .mobile-floating-call:active {
        transform: translateY(0) scale(0.95);
    }

    /* Mobile Form Field Rows */
    .field-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .step-fields {
        gap: 0.5rem;
    }

    .secondary-button,
    .primary-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Footer */
footer {
    background: transparent;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #34d399;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

footer p,
footer span {
    color: var(--text-muted);
}

.footer-section p {
    margin-top: 1rem;
}

.footer-bottom a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--accent-emerald-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--surface-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background-color 0.2s, color 0.2s;
}

.social-link:hover {
    background: rgba(34, 197, 94, 0.2);
    color: var(--text-primary);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(248, 250, 252, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(248, 250, 252, 0.12);
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card.featured {
    border: 2px solid var(--accent-emerald);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(4, 9, 20, 0.45);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-sky));
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    white-space: nowrap;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features i {
    color: var(--accent-emerald-light);
}

.pricing-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-dark));
    color: #04130a;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pricing-button:hover {
    background: linear-gradient(135deg, var(--accent-emerald-light), var(--accent-emerald));
}

.services-cta {
    margin-top: 3rem;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(56, 189, 248, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.services-cta h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}

.services-cta p {
    margin: 0;
    color: var(--text-muted);
    max-width: 52ch;
    line-height: 1.6;
}

.services-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.services-cta button,
.services-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.services-cta-primary {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-sky));
    color: #031525;
    box-shadow: 0 20px 45px rgba(56, 189, 248, 0.3);
    border: none;
}

.services-cta-primary:hover {
    box-shadow: 0 24px 55px rgba(34, 197, 94, 0.32);
}

.services-cta-secondary {
    background: var(--accent-emerald);
    color: #f8fafc;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.services-cta-secondary:hover {
    background: var(--accent-emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45), 0 3px 6px rgba(0, 0, 0, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
}

.services-cta-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

section {
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
}

.section-dark {
    background: rgba(15, 23, 42, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}
