/* kHomes Product Landing Page Design System */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --accent-emerald: #10b981;
    --accent-emerald-dark: #059669;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --radius-lg: 16px;
    --radius-md: 12px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(96, 165, 250, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.khomes-logo {
    background-color: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo:hover .khomes-logo {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.45);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-cta-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.nav-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    padding: 3rem 1.5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-split-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.hero-text-content {
    flex: 1 1 500px;
    max-width: 600px;
    text-align: left;
}

.left-aligned-buttons {
    justify-content: flex-start;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald-dark);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* Hero Visual Showcase */
.hero-visual-wrapper {
    position: relative;
    flex: 0 0 460px;
    max-width: 460px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-glow {
    position: absolute;
    width: 105%;
    height: 105%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(16, 185, 129, 0.12) 50%, transparent 75%);
    filter: blur(25px);
    z-index: 1;
}

.hero-visual-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 0.6rem;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-visual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.hero-visual-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    display: block;
    border-radius: 16px;
    object-fit: contain;
}

/* Floating Feature Badges */
.floating-badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-top-left {
    top: -10px;
    left: -10px;
}

.badge-bottom-right {
    bottom: -10px;
    right: -10px;
    animation-delay: -2s;
}

.badge-icon {
    font-size: 1.25rem;
    background: rgba(37, 99, 235, 0.1);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-content strong {
    font-size: 0.88rem;
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.badge-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes floatBadge {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-8px);
    }
}

/* Store Buttons */
.store-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.center-buttons {
    justify-content: center;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #0f172a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
    background: #1e293b;
}

.store-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-text .small-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.store-text .large-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-actions {
    margin-bottom: 1.5rem;
}

.secondary-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.secondary-hero-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.check-icon {
    color: var(--accent-emerald);
    font-weight: 800;
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.highlight-card {
    border: 2px solid rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 253, 245, 0.6) 100%);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

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

.badge-free {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--accent-emerald);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-addon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Banner Section */
.banner-section {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
}

.banner-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.banner-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.banner-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.banner-contact-note {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.banner-contact-note p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.banner-contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.banner-contact-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.banner-contact-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: white;
    transform: translateY(-1px);
}

/* Download Section */
.download-section {
    max-width: 1000px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
    text-align: center;
}

.download-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
}

.download-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.download-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: #090d16;
    color: var(--text-light);
    padding: 4rem 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .brand-name {
    color: white;
}

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-info {
    line-height: 1.8;
}

.contact-info a {
    color: var(--primary-light);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.footer-links h4, .footer-legal h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 0.6rem;
}

.footer-links a, .footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover, .footer-legal a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .hero-split-grid {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .hero-text-content {
        flex: 1 1 auto;
        max-width: 100%;
        text-align: center;
    }

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

    .hero-subtitle {
        margin: 0 auto 2rem auto;
    }

    .left-aligned-buttons {
        justify-content: center;
    }

    .hero-visual-wrapper {
        flex: 1 1 auto;
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-visual-card {
        max-width: 380px;
        padding: 0.5rem;
        border-radius: 16px;
    }

    .hero-visual-img {
        max-height: 300px;
    }

    .floating-badge {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0.75rem auto 0 auto;
        width: 100%;
        max-width: 340px;
        justify-content: flex-start;
        animation: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem 3rem;
    }

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

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-visual-wrapper {
        max-width: 320px;
    }

    .hero-visual-card {
        max-width: 320px;
    }

    .hero-visual-img {
        max-height: 240px;
    }

    .store-buttons-container {
        flex-direction: column;
        width: 100%;
    }

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

/* Modal Coming Soon & Waitlist Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    padding: 2.25rem 2rem 2rem;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: rgba(241, 245, 249, 0.8);
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-badge-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.modal-input {
    flex: 1;
    padding: 0.85rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.modal-submit-btn {
    padding: 0.85rem 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.modal-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.modal-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

.status-msg {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    margin-top: 0.5rem;
}

.status-msg.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-msg.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.modal-footer-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.25rem;
}

@media (max-width: 520px) {
    .input-group {
        flex-direction: column;
    }
    .modal-submit-btn {
        width: 100%;
    }
}
