/* COLOR PALETTE MATCHED TO YOUR LOGO GRADIENT */
 :root {
     --primary: #2563EB;
    /* Bright Electric Blue from Logo */
     --primary-dark: #1D4ED8;
    /* Darker Blue for hover states */
     --accent-purple: #7C3AED;
    /* Deep Purple/Indigo from Logo Gradient */
     --accent-purple-hover: #6D28D9;
     --accent-green: #10B981;
    /* Vibrant Green for positive CTAs & badges */
     --bg-light: #F8FAFC;
     --text-dark: #0F172A;
     --text-muted: #475569;
     --border: #E2E8F0;
     --white: #FFFFFF;
     --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
     --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
     --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
     --radius: 8px;
     --max-width: 1200px;
}
/* GLOBAL RESETS */
 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
}
 html {
     scroll-behavior: smooth;
}
 body {
     font-family: 'Inter', sans-serif;
     color: var(--text-dark);
     background-color: var(--white);
     line-height: 1.6;
}
 a {
     text-decoration: none;
     color: inherit;
}
 ul {
     list-style: none;
}
/* LAYOUT & CONTAINERS */
 .container {
     max-width: var(--max-width);
     margin: 0 auto;
     padding: 0 24px;
}
 .section-padding {
     padding: 80px 0;
}
 .text-center {
     text-align: center;
}
 .text-left {
     text-align: left;
}
/* BUTTONS */
 .btn {
     display: inline-block;
     padding: 14px 28px;
     border-radius: var(--radius);
     font-weight: 600;
     font-size: 1rem;
     cursor: pointer;
     transition: all 0.2s ease;
     border: none;
     white-space: nowrap;
    /* Prevents awkward line wraps */
}
 .btn-primary {
     background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
     color: var(--white);
}
 .btn-primary:hover {
     opacity: 0.95;
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
 .btn-secondary {
     background-color: var(--white);
     color: var(--text-dark);
     border: 1px solid var(--border);
}
 .btn-secondary:hover {
     background-color: var(--bg-light);
     transform: translateY(-2px);
}
 .btn-accent {
     background-color: var(--accent-green);
     color: var(--white);
}
 .btn-accent:hover {
     filter: brightness(0.95);
     transform: translateY(-2px);
}
/* 1. HEADER */
 header {
     position: sticky;
     top: 0;
     background-color: var(--white);
     border-bottom: 1px solid var(--border);
     z-index: 1000;
     box-shadow: var(--shadow-sm);
}
 .header-container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     height: 80px;
     gap: 16px;
}
 .logo-wrap {
     display: flex;
     align-items: center;
     gap: 12px;
     flex-shrink: 1;
    /* Allows logo to shrink cleanly on small screens */
     min-width: 0;
}
 .logo-img {
     height: 44px;
     width: auto;
     display: block;
     flex-shrink: 0;
}
 .logo-text {
     font-size: 1.5rem;
     font-weight: 800;
     background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     white-space: nowrap;
}
 .nav-links {
     display: flex;
     gap: 32px;
}
 .nav-links a {
     font-weight: 500;
     color: var(--text-muted);
     transition: color 0.2s;
}
 .nav-links a:hover {
     color: var(--primary);
}
 .header-btn {
     flex-shrink: 0;
    /* Ensures button doesn't get squeezed */
}
/* 2. HERO SECTION */
 .hero {
     position: relative;
     background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.82)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
     color: var(--white);
     padding: 120px 0 100px;
}
 .hero-content {
     max-width: 800px;
     margin: 0 auto;
     text-align: center;
}
 .hero h1 {
     font-size: 3rem;
     font-weight: 800;
     line-height: 1.2;
     margin-bottom: 20px;
}
 .hero .subtitle {
     font-size: 1.2rem;
     color: #E2E8F0;
     margin-bottom: 36px;
}
 .hero-buttons {
     display: flex;
     gap: 16px;
     justify-content: center;
     margin-bottom: 48px;
     flex-wrap: wrap;
}
 .trust-badges {
     display: flex;
     justify-content: center;
     gap: 24px;
     flex-wrap: wrap;
     font-size: 0.95rem;
     font-weight: 500;
     color: #CBD5E1;
}
/* 3. PAIN SECTION */
 .section-title {
     font-size: 2.25rem;
     font-weight: 700;
     margin-bottom: 48px;
     color: var(--text-dark);
}
 .cards-grid-3 {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 32px;
}
 .card {
     background: var(--white);
     border: 1px solid var(--border);
     padding: 36px 28px;
     border-radius: var(--radius);
     box-shadow: var(--shadow-sm);
     transition: transform 0.2s, box-shadow 0.2s;
}
 .card:hover {
     transform: translateY(-4px);
     box-shadow: var(--shadow-md);
}
 .card-icon {
     font-size: 2.5rem;
     margin-bottom: 20px;
}
/* 4. SOLUTION SECTION */
 .solution-section {
     background-color: var(--bg-light);
}
 .two-column-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 60px;
     align-items: center;
}
 .solution-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     border-radius: var(--radius);
     box-shadow: var(--shadow-md);
}
 .checklist {
     margin: 24px 0 32px;
}
 .checklist li {
     font-size: 1.05rem;
     font-weight: 500;
     margin-bottom: 12px;
     display: flex;
     align-items: center;
     gap: 10px;
}
 .checklist span {
     color: var(--primary);
     font-weight: bold;
}
/* 5. WHY HOMELYNEST */
 .cards-grid-4 {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
     gap: 24px;
}
 .feature-box {
     border: 1px solid var(--border);
     padding: 28px 20px;
     border-radius: var(--radius);
     text-align: center;
     background-color: var(--bg-light);
}
 .feature-box .icon {
     font-size: 2rem;
     margin-bottom: 12px;
}
/* 6. SAMPLE DEAL SHOWCASE */
 .deal-section {
     background-color: var(--bg-light);
}
 .deal-card {
     max-width: 700px;
     margin: 0 auto;
     background: var(--white);
     border: 1px solid var(--border);
     border-radius: var(--radius);
     box-shadow: var(--shadow-lg);
     overflow: hidden;
}
 .deal-header {
     background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
     color: var(--white);
     padding: 24px;
}
 .deal-body {
     padding: 32px;
}
 .deal-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 20px;
     margin-bottom: 32px;
}
 .deal-metric {
     padding: 12px;
     background: var(--bg-light);
     border-radius: 6px;
}
 .deal-label {
     font-size: 0.85rem;
     color: var(--text-muted);
     display: block;
}
 .deal-value {
     font-size: 1.15rem;
     font-weight: 700;
     color: var(--text-dark);
}
/* 7. HOW IT WORKS */
 .timeline {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 32px;
     margin-top: 40px;
}
 .step-badge {
     display: inline-block;
     background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
     color: var(--white);
     font-size: 0.85rem;
     font-weight: 700;
     padding: 4px 12px;
     border-radius: 20px;
     margin-bottom: 16px;
}
/* 8. ABOUT SECTION */
 .about-section {
     background-color: var(--bg-light);
}
 .about-grid {
     display: grid;
     grid-template-columns: 300px 1fr;
     gap: 48px;
     align-items: center;
}
 .about-photo {
     width: 100%;
     height: 350px;
     object-fit: cover;
     border-radius: var(--radius);
     box-shadow: var(--shadow-md);
}
/* 9. SIGNUP FORM */
 .signup-section {
     background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
     color: var(--white);
}
 .signup-container {
     max-width: 600px;
     margin: 0 auto;
}
 .form-group {
     margin-bottom: 20px;
     text-align: left;
}
 .form-group label {
     display: block;
     margin-bottom: 8px;
     font-weight: 500;
}
 .form-control {
     width: 100%;
     padding: 14px;
     border-radius: var(--radius);
     border: 1px solid rgba(255,255,255,0.2);
     background: rgba(255,255,255,0.05);
     color: var(--white);
     font-size: 1rem;
}
 select.form-control option {
     background: var(--text-dark);
     color: var(--white);
}
/* COMPLIANCE LOGOS BAR */
 .compliance-bar {
     background-color: #FFFFFF;
     border-top: 1px solid var(--border);
     padding: 24px 0;
     text-align: center;
}
 .compliance-title {
     font-size: 0.85rem;
     text-transform: uppercase;
     letter-spacing: 1px;
     color: var(--text-muted);
     margin-bottom: 16px;
     font-weight: 600;
}
 .compliance-logos {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 40px;
     flex-wrap: wrap;
}
 .compliance-logo {
     height: 45px;
     width: auto;
     filter: grayscale(100%);
     opacity: 0.85;
     transition: all 0.2s ease;
}
 .compliance-logo:hover {
     filter: grayscale(0%);
     opacity: 1;
}
/* FOOTER */
 footer {
     background-color: var(--text-dark);
     color: #94A3B8;
     padding: 60px 0 30px;
     font-size: 0.9rem;
}
 .footer-grid {
     display: grid;
     grid-template-columns: 1.5fr 1fr 1fr;
     gap: 40px;
     margin-bottom: 40px;
}
/* MOBILE RESPONSIVENESS FIXES */
 @media (max-width: 768px) {
     .container {
         padding: 0 16px;
    }
     .header-container {
         height: 70px;
         gap: 8px;
    }
     .join-btn {
         display: none !important;
    }
     .nav-links {
         display: none;
    }
     .logo-img {
         height: 36px;
    }
     .logo-text {
         font-size: 1.25rem;
    }
     .header-btn {
         padding: 10px 14px;
         font-size: 0.8rem;
         letter-spacing: -0.2px;
    }
     .hero h1 {
         font-size: 2.1rem;
    }
     .two-column-grid, .about-grid, .deal-grid, .footer-grid {
         grid-template-columns: 1fr;
    }
     .compliance-logos {
         gap: 20px;
    }
    /* Direct layout fix for Header */
    /* ========================================== Legal Pages Header Fix ========================================== */
    /* 1. Header Container Constraints */
     header.navbar {
         width: 100%;
         background-color: #ffffff;
         border-bottom: 1px solid #e5e7eb;
    }
     .legal-nav-container {
         display: flex !important;
         flex-direction: row !important;
         justify-content: space-between !important;
         align-items: center !important;
         width: 100% !important;
         max-width: 1200px !important;
         height: 80px !important;
         margin: 0 auto !important;
         padding: 0 20px !important;
         box-sizing: border-box !important;
    }
    /* 2. Group Brand Logo + Text */
     .legal-brand {
         display: flex !important;
         flex-direction: row !important;
         align-items: center !important;
         gap: 10px !important;
         text-decoration: none !important;
         white-space: nowrap !important;
    }
    /* 3. STRICT LOGO IMAGE SIZE FIX */
     .legal-logo-img {
         height: 38px !important;
         width: auto !important;
         max-height: 38px !important;
         display: block !important;
    }
    /* 4. Brand Text */
     .legal-logo-text {
         font-weight: 700 !important;
         font-size: 1.25rem !important;
         color: #6366f1 !important;
         white-space: nowrap !important;
    }
    /* 5. Back Button Layout Position */
     .legal-back-btn {
         margin: 0 !important;
         white-space: nowrap !important;
    }
}
