/* ----------------------------------------------------
   DESIGN TOKENS & GLOBALS
---------------------------------------------------- */
:root {
    /* Colors */
    --primary: #FF5A5F;        /* Vibrant Coral/Red */
    --primary-hover: #FC454A;
    --secondary: #00A699;      /* Teal */
    --dark: #222222;
    --light: #F7F7F9;
    --white: #FFFFFF;
    --text-main: #484848;
    --text-muted: #767676;
    
    /* Gradients */
    --gradient-hero: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #FF8A8E 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-pill: 50px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* ----------------------------------------------------
   UTILITIES
---------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 90, 95, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 95, 0.6);
}

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

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ----------------------------------------------------
   NAVIGATION
---------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white); /* White initially for hero */
    transition: var(--transition);
}
.logo ion-icon {
    font-size: 1.8rem;
    color: var(--primary);
}
.navbar.scrolled .logo {
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--white);
    font-weight: 500;
}
.navbar.scrolled .nav-links a {
    color: var(--text-main);
}
.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 16px;
}
.navbar:not(.scrolled) .btn-outline {
    color: var(--white);
    border-color: var(--white);
}
.navbar:not(.scrolled) .btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}
.navbar.scrolled .mobile-menu-toggle {
    color: var(--dark);
}

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/hero_bg.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 24px;
    margin-top: 50px;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

/* Search Glass Panel */
.search-glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-glass);
    max-width: 800px;
    margin: 0 auto;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
}
.search-field:nth-last-child(2) {
    border-right: none;
}
.search-field ion-icon {
    font-size: 1.4rem;
    color: var(--white);
}
.search-field input {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}
.search-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-search {
    padding: 12px 32px;
}

/* ----------------------------------------------------
   HOW IT WORKS
---------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(0, 166, 153, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition);
}
.step-card:hover .step-icon {
    background: var(--secondary);
    color: var(--white);
}

.step-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}
.step-card p {
    color: var(--text-muted);
}

/* ----------------------------------------------------
   FOR AGENTS SECTION (SPLIT LAYOUT)
---------------------------------------------------- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(255, 90, 95, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.split-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}
.split-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.benefits-list {
    margin-bottom: 40px;
}
.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.benefits-list ion-icon {
    color: var(--secondary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Glass Mockup Graphic */
.glass-mockup {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}
.glass-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: rgba(247, 247, 249, 0.8);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-body {
    padding: 32px;
}
.mockup-stat {
    margin-bottom: 24px;
}
.mockup-stat span {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.mockup-stat h4 {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 700;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 120px;
    border-bottom: 2px solid var(--light);
    padding-bottom: 8px;
}
.bar {
    flex: 1;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: var(--transition);
}
.bar:hover {
    opacity: 1;
    transform: scaleY(1.05);
}
.h-40 { height: 40%; }
.h-60 { height: 60%; }
.h-70 { height: 70%; }
.h-80 { height: 80%; }
.h-100 { height: 100%; }


/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}
.footer-brand .logo {
    color: var(--white);
    margin-bottom: 24px;
}
.footer-brand p {
    color: rgba(255,255,255,0.6);
    max-width: 300px;
}
.footer-links h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 24px;
}
.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links ul a {
    color: rgba(255,255,255,0.6);
}
.footer-links ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ----------------------------------------------------
   ANIMATIONS & RESPONSIVE
---------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Media Queries */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .search-glass-panel {
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--radius-lg);
    }
    .search-field {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        width: 100%;
    }
    .search-field input {
        color: var(--dark);
    }
    .search-field input::placeholder {
        color: var(--text-muted);
    }
    .search-field ion-icon {
        color: var(--primary);
    }
    .btn-search {
        width: 100%;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none; /* simple mobile menu hiding for now */
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
