/* CSS Variables - Design System */
:root {
    --bg-dark: #01010c;
    --bg-light: #f8f9fa;
    --accent-glow: #00ffee;
    --text-main: #ffffff;
    --text-dark: #111827;
    --text-muted: #8b8b9e;
    --surface: linear-gradient(to right, #00ffee 0%, #01010c 33%, #01010c 100%);
    --surface-hover: linear-gradient(to right, #00e5d6 0%, #01010c 38%, #01010c 100%);
    --border: rgba(255, 255, 255, 0.1);
    
    --gradient-bg: linear-gradient(to right, #00ffee 0%, #01010c 33%, #01010c 100%);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: inherit;
}

h1 { font-size: 4rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-bg);
    color: var(--text-main);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    border: 1px solid var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-secondary {
    background: var(--gradient-bg);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(0, 255, 238, 0.2);
}

.btn-outline-primary {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.btn-outline-primary:hover {
    background-color: var(--text-dark);
    color: var(--text-main);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition);
    padding: 0.7rem 0;
    background: var(--gradient-bg);
    color: var(--text-main);
}

.main-header.scrolled {
    background: var(--gradient-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 0;
}

/* Interior Pages Hero/Header Section */
.page-header h1 {
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
    font-weight: 700;
}

.page-header p {
    font-size: 0.95rem !important;
    max-width: 700px;
    margin: 0 auto !important;
    line-height: 1.6;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #fff, var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
    gap: 1.2rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 1;
    white-space: nowrap;
    text-shadow: 0 0 1px rgba(0,0,0,0.3); /* Optional subtle shadow for better readability over images if any */
}

.main-nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 255, 238, 0.6);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.header-actions .btn-ghost {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 9rem 0 2rem;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-headline {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-check-text {
    font-size: 1.05rem;
}

.hero-check-group {
    margin-bottom: 3rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    font-weight: 600;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
    text-align: center;
}

/* Floating Elements */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-dashboard {
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 40px rgba(0, 255, 238, 0.1);
    position: absolute;
    right: 0;
    top: 50px;
    animation: float 6s ease-in-out infinite;
    color: var(--text-main);
}

.dashboard-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-dot.red { background: #ff5f56; }
.dash-dot.yellow { background: #ffbd2e; }
.dash-dot.green { background: #27c93f; }

.dash-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.dash-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dash-value {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.dash-trend.positive {
    color: var(--accent-glow);
    font-size: 0.9rem;
}

.dash-graph {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
    padding-top: 20px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, rgba(0, 255, 238, 0.2), var(--accent-glow));
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.floating-card {
    position: absolute;
    bottom: 50px;
    left: -30px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 5s ease-in-out infinite reverse;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: var(--text-main);
}

.icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 255, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Trust Section */
.trust-section {
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(0, 255, 238, 0.1);
}

.trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.trust-item {
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.trust-item h4 {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 600;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Featured Listings */
.featured-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header.center {
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.section-header h2 {
    margin: 0;
}

.view-all {
    color: var(--accent-glow);
    font-weight: 500;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.listings-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.listings-slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.slider-wrapper {
    position: relative;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--gradient-bg);
    color: #fff;
    border-color: var(--accent-glow);
}

.slider-prev {
    left: -20px;
}

.slider-next {
    right: -20px;
}

.listings-slider .listing-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
    scroll-snap-align: start;
}

.listing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-main);
}

.listing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 238, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.listing-thumb {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 1rem;
}

.bg-gradient-1 { background: linear-gradient(135deg, #1f1c2c, #928DAB); }
.bg-gradient-2 { background: linear-gradient(135deg, #232526, #414345); }
.bg-gradient-3 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }

.badge.featured {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--accent-glow);
    color: var(--accent-glow);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.listing-details {
    padding: 1.5rem;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.listing-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.listing-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat .val {
    font-weight: 600;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-footer .price {
    font-size: 1.25rem;
    font-weight: 700;
}

/* How It Works */
.how-it-works-section {
    padding: 6rem 0;
    background: rgba(255,255,255,0.01);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    position: relative;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-card h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border);
    padding: 6rem 0 2rem;
    background: var(--gradient-bg);
    color: var(--text-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .tagline {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    text-align: right;
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Grid Utilities */
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-cols-sidebar {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.grid-cols-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 4rem;
    }
    
    .floating-dashboard {
        position: relative;
        top: 0;
        margin: 0 auto;
    }
    
    .hero-cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
    
    .trust-grid, .listings-grid, .steps-grid, .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content-card {
    background: #fff; 
    border: 1px solid #e5e5e5; 
    border-radius: var(--radius-md); 
    padding: 2.5rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .content-card, .sidebar-purchase-card {
        padding: 1.25rem !important;
    }
    
    .sidebar-purchase-card p {
        font-size: 2rem !important;
    }
    
    .grid-cols-2 strong, .grid-cols-2 span {
        font-size: 0.9rem !important;
    }
    
    .container {
        padding: 0 1rem !important;
    }

    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.2rem !important; }
    section {
        padding-top: 4rem !important;
        padding-bottom: 3rem !important;
    }
    
    section:first-of-type, .page-header {
        padding-top: 6.5rem !important;
    }
    
    
    .page-header h1 {
        font-size: 1.4rem !important;
    }
    .page-header p {
        font-size: 0.85rem !important;
    }
    
    .hero-headline {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-subheadline {
        font-size: 0.75rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-check-group {
        margin-bottom: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-check-text {
        font-size: 0.7rem !important;
    }
    
    .listings-grid, .steps-grid, .footer-grid, .grid-cols-2, .grid-cols-3, .grid-cols-sidebar, .grid-cols-details {
        grid-template-columns: 1fr !important;
    }
    
    .listings-grid > div, .steps-grid > div, .footer-grid > div, .grid-cols-2 > div, .grid-cols-3 > div, .grid-cols-sidebar > div, .grid-cols-details > div {
        grid-column: 1 / -1 !important;
    }
    
    .footer-links {
        text-align: right !important;
    }
    .footer-brand {
        text-align: left !important;
    }
    
    .trust-grid {
        flex-wrap: nowrap !important;
        gap: 0.2rem !important;
        justify-content: space-between !important;
    }
    
    .hero-section {
        padding-top: 6.5rem !important;
        padding-bottom: 1rem !important;
        min-height: auto !important;
    }
    
    .trust-section {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .featured-section {
        padding-top: 1rem !important;
    }
    .trust-grid > div {
        flex: 1 1 0 !important;
        padding: 0 !important;
    }
    .trust-grid > div > div:first-child {
        font-size: 1.5rem !important;
        margin-bottom: 0.2rem !important;
    }
    .trust-grid h4 {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
    }
    
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block;
        color: #fff;
        margin-left: 1rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 1.5rem;
        border-top: 1px solid var(--border);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .main-nav ul li a {
        color: #1a1a1a;
        font-weight: 600;
        font-size: 1.1rem;
    }
    
    .main-nav.nav-active {
        display: flex !important;
    }
    
    /* Utility to fix overlapping filters on mobile */
    .filters-sidebar form {
        position: static !important;
    }
    
    /* General flex stack utility */
    .flex-stack-mobile {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Proportional scaling for standard text/elements so they don't overshadow 1.2rem h2 */
    h3 { font-size: 1rem !important; }
    h4 { font-size: 0.9rem !important; }
    p { font-size: 0.85rem; }
    .view-all { font-size: 0.85rem !important; }
    .listing-title, .listing-footer .price { font-size: 1rem !important; margin-bottom: 0.5rem !important; }
    .step-card h3 { font-size: 1rem !important; margin-top: 0.5rem !important; }
    .step-card p, .trust-item p, .listing-meta { font-size: 0.75rem !important; line-height: 1.4 !important; }
    .btn, .btn-large { font-size: 0.85rem !important; padding: 0.5rem 1rem !important; }
    
    #whatsapp-float {
        width: 38px !important;
        height: 38px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
    #whatsapp-float svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .listings-slider {
        gap: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .listings-slider .listing-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .slider-prev {
        left: -10px;
    }
    .slider-next {
        right: -10px;
    }
}

/* Links in blog content and listing descriptions */
.blog-body-content a,
#descSection a {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

.blog-body-content a:hover,
#descSection a:hover {
    color: #003d82 !important;
}
