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

:root {
    --primary: #dc3545;
    --primary-dark: #c82333;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #f8f9fa;
    --border: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.text-primary {
    color: var(--primary);
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
}

.icon-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover .icon-arrow {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: #f8f9fa;
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 16px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.contact-info {
    display: flex;
    gap: 24px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-btn:hover {
    color: var(--primary);
}

.separator {
    color: #ccc;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-gray);
}

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

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
}

.mobile-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 20px 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #fff5f5 100%);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23dc3545' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 32px;
    animation: fadeInUp 0.7s ease;
}

.hero-badge .icon {
    color: var(--primary);
}

.hero-badge span {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.highlight {
    position: relative;
    color: var(--primary);
    display: inline-block;
}

.underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 12px;
}

.hero-subtitle-main {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 32px;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 16px;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeInUp 0.7s ease 0.5s both;
}

.hero-features {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-gray);
    animation: fadeIn 0.7s ease 0.7s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--white), var(--bg-light));
}

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

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-gray);
}

.steps-container {
    max-width: 1400px;
    margin: 0 auto;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.steps-row-2 {
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 53, 69, 0.2);
}

.step-number {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow);
    z-index: 10;
}

.step-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.gradient-red {
    background: linear-gradient(135deg, #f87171, #dc2626);
}

.gradient-orange {
    background: linear-gradient(135deg, #fb923c, #dc2626);
}

.gradient-pink {
    background: linear-gradient(135deg, #dc2626, #db2777);
}

.gradient-pink-dark {
    background: linear-gradient(135deg, #db2777, #dc2626);
}

.gradient-rose {
    background: linear-gradient(135deg, #dc2626, #be123c);
}

.step-description {
    color: var(--text-gray);
    line-height: 1.8;
}

.step-arrow {
    display: none;
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    z-index: 0;
}

.step-arrow svg {
    width: 32px;
    height: 32px;
    opacity: 0.3;
}

/* Properties Section */
.properties {
    padding: 80px 20px;
    background: var(--white);
}

.title-underline {
    width: 96px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 16px auto 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.property-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 53, 69, 0.3);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    color: var(--white);
}

.property-status.available {
    background: var(--primary);
}

.property-status.renovation {
    background: #ff9800;
}

.property-content {
    padding: 24px;
}

.property-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.property-card:hover .property-title {
    color: var(--primary);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    margin-bottom: 16px;
    font-size: 14px;
}

.property-location .icon {
    color: var(--primary);
}

.property-features {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-gray);
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--bg-light), var(--white));
}

.section-description {
    max-width: 900px;
    margin: 0 auto 24px;
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
}

.info-box {
    max-width: 1000px;
    margin: 0 auto 64px;
    background: rgba(220, 53, 69, 0.05);
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

.info-box p {
    color: var(--text-dark);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 53, 69, 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--primary);
}

.service-description {
    color: var(--text-gray);
    line-height: 1.8;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 48px;
    opacity: 0.9;
}

.cta-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 12px;
}

.cta-benefit .icon {
    flex-shrink: 0;
}

.cta-benefit span {
    font-weight: 500;
    text-align: left;
}

.cta-note {
    margin-top: 32px;
    opacity: 0.8;
    font-size: 14px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 64px 20px 24px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-description {
    color: #999;
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #999;
}

.footer-contact .icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-contact a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-newsletter-text {
    color: #999;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    color: var(--white);
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    padding: 12px 16px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.newsletter-form button svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

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

.footer-legal a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar,
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle-main {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .cta-title {
        font-size: 32px;
    }

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

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

    .step-arrow {
        display: none !important;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .step-arrow {
        display: block;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::selection {
    background: var(--primary);
    color: var(--white);
}