/* ============================================
   PropertyBot — Design System
   "Home Butler" — Warm, creamy, premium
   ============================================ */

:root {
    --bg: #fdf8f2;
    --bg-subtle: #f7f0e6;
    --surface: #ffffff;
    --surface-warm: #fef9f4;
    --border: rgba(180, 140, 100, 0.12);
    --border-hover: rgba(180, 140, 100, 0.25);
    --text: #1c1510;
    --text-muted: #7a6a58;
    --text-light: #b5a090;
    --accent: #c4673a;
    --accent-hover: #d4784b;
    --accent-glow: rgba(196, 103, 58, 0.12);
    --accent-glow-strong: rgba(196, 103, 58, 0.22);
    --accent-light: #fdf0ea;
    --success: #5a8a5a;
    --error: #c0392b;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --shadow-sm: 0 1px 3px rgba(100, 60, 20, 0.06), 0 1px 2px rgba(100, 60, 20, 0.04);
    --shadow-md: 0 4px 16px rgba(100, 60, 20, 0.08), 0 2px 6px rgba(100, 60, 20, 0.05);
    --shadow-lg: 0 8px 32px rgba(100, 60, 20, 0.1), 0 4px 12px rgba(100, 60, 20, 0.06);
}

/* ---- Reset ---- */
*, *::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-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(160, 110, 60, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ---- Noise Overlay ---- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---- Shared Section Spacing ---- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-overline {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #e08a50 50%, #c4673a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.features-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.features-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.4s; }

.steps .animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.steps .animate-on-scroll:nth-child(3) { transition-delay: 0.24s; }


/* ============================================
   Navbar
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 242, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-hover);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-light);
}


/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    padding: 10rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center,
        rgba(196, 103, 58, 0.07) 0%,
        rgba(224, 138, 80, 0.03) 40%,
        transparent 70%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem 0.375rem 0.75rem;
    background: var(--accent-light);
    border: 1px solid rgba(196, 103, 58, 0.2);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
}

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

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

/* ---- Hero Form ---- */
.hero-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

#email {
    flex: 1;
    padding: 0.875rem 1.125rem;
    background: var(--surface);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

#email::placeholder {
    color: var(--text-light);
}

#email:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(196, 103, 58, 0.3), 0 1px 2px rgba(100, 40, 10, 0.1);
}

button[type="submit"]:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(196, 103, 58, 0.4), 0 2px 6px rgba(100, 40, 10, 0.12);
    transform: translateY(-1px);
}

button[type="submit"]:active { transform: translateY(0); }
button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    min-height: 20px;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
}

.form-message.success { color: var(--success); }
.form-message.error { color: var(--error); }

.hero-trust {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}


/* ============================================
   Social Proof Bar
   ============================================ */

.social-proof {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.proof-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.proof-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.proof-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.proof-divider {
    width: 1px;
    height: 32px;
    background: var(--border-hover);
}


/* ============================================
   Features Grid
   ============================================ */

.features {
    padding: 6rem 2rem;
}

.features-container {
    max-width: 1120px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(196, 103, 58, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

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


/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    padding: 6rem 2rem;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hiw-container {
    max-width: 720px;
    margin: 0 auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 44px;
    bottom: 44px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-glow-strong), var(--border), var(--accent-glow-strong));
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--surface);
    border: 1px solid rgba(196, 103, 58, 0.2);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.step-content { flex: 1; padding-top: 0.25rem; }

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ============================================
   Bottom CTA
   ============================================ */

.bottom-cta {
    padding: 6rem 2rem;
}

.cta-container {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #fff9f5 0%, #fef3eb 100%);
    border: 1px solid rgba(196, 103, 58, 0.15);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 103, 58, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-container h2 {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
}

.cta-container p {
    position: relative;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(196, 103, 58, 0.3);
}

.cta-button:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(196, 103, 58, 0.4);
    transform: translateY(-1px);
}


/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-light);
}


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero { padding: 8rem 1.5rem 3rem; }
    .hero-glow { width: 400px; height: 300px; }
    .form-row { flex-direction: column; }
    button[type="submit"] { justify-content: center; }
    .proof-container { gap: 1.5rem; }
    .proof-number { font-size: 1.25rem; }
    .features { padding: 4rem 1.5rem; }
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .how-it-works { padding: 4rem 1.5rem; }
    .step { gap: 1.25rem; }
    .bottom-cta { padding: 4rem 1.5rem; }
    .cta-container { padding: 3rem 1.5rem; }
    .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 1rem; }
    .hero { padding: 7rem 1rem 2.5rem; }
    .hero-badge { font-size: 0.75rem; }
    .proof-container { flex-direction: column; gap: 1.5rem; }
    .proof-divider { width: 32px; height: 1px; }
    .features { padding: 3rem 1rem; }
    .section-header { margin-bottom: 2.5rem; }
    .how-it-works { padding: 3rem 1rem; }
    .steps::before { display: none; }
    .bottom-cta { padding: 3rem 1rem; }
}
