/* CSS Variables */
        :root {
            --primary-blue: #2563eb;
            --primary-hover: #1d4ed8;
            --bg-color: #ffffff;
            --bg-light: #f8fafc;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --border-color: #e2e8f0;
        }

        /* Reset & Base Styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Visually-hidden labels for accessibility */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Honeypot field - hidden from real users, visible to bots */
        .hp-field {
            position: absolute;
            left: -9999px;
            top: -9999px;
            opacity: 0;
            height: 0;
            width: 0;
            overflow: hidden;
        }

        /* Header */
        header {
            padding: 18px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 100;
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .logo {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-blue);
            text-decoration: none;
            letter-spacing: -0.5px;
        }
        .trust-badge {
            font-size: 11px;
            font-weight: 700;
            color: #16a34a;
            background: #dcfce7;
            padding: 4px 10px;
            border-radius: 999px;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }
        .main-nav {
            display: flex;
            align-items: center;
            gap: 28px;
        }
        .main-nav a {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-main);
            text-decoration: none;
            position: relative;
            padding-bottom: 4px;
            transition: color 0.2s;
        }
        .main-nav a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: var(--primary-blue);
            transition: width 0.25s ease;
        }
        .main-nav a:hover {
            color: var(--primary-blue);
        }
        .main-nav a:hover::after {
            width: 100%;
        }
        .main-nav a.nav-cta {
            background: var(--primary-blue);
            color: #fff;
            padding: 9px 18px;
            border-radius: 999px;
            font-weight: 700;
        }
        .main-nav a.nav-cta::after { display: none; }
        .main-nav a.nav-cta:hover {
            background: var(--primary-hover);
            color: #fff;
        }
        @media (max-width: 640px) {
            .main-nav { gap: 14px; }
            .main-nav a:not(.nav-cta) { display: none; }
            .trust-badge { display: none; }
        }

        /* Section 1: Hero */
        .hero {
            padding: 60px 0 80px;
            background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
            position: relative;
            overflow: hidden;
        }
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='103.92' viewBox='0 0 60 103.92' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%232563eb' stroke-width='1' stroke-opacity='0.06'/%3E%3C/svg%3E");
            background-size: 80px 138.56px;
        }
        .hero::after {
            content: '';
            position: absolute;
            top: -10%;
            right: -5%;
            width: 500px;
            height: 500px;
            z-index: 0;
            background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0) 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        .hero-layout {
            display: flex;
            align-items: center;
            gap: 50px;
            position: relative;
            z-index: 1;
        }
        .hero-text {
            flex: 1;
        }
        .hero-text h1 {
            font-size: 48px;
            line-height: 1.1;
            margin-bottom: 20px;
            letter-spacing: -1px;
        }
        .hero-text h1 span {
            color: var(--primary-blue);
        }
        .hero-text p.sub {
            font-size: 20px;
            color: var(--text-muted);
            margin-bottom: 30px;
        }
        
        /* Advanced Territory Map */
        .tm-wrap-v6 {
            position: relative; width: 320px; max-width: 100%; height: 200px; margin-top: 32px;
            overflow: hidden; border-radius: 14px;
            background: linear-gradient(135deg,#fff 0%,#f7faff 45%,#edf4ff 100%);
            box-shadow: 0 10px 28px rgba(25,91,180,.12), inset 0 0 0 1px rgba(42,108,210,.08);
        }
        .tm-grid {
            position: absolute; inset: 0;
            background-image: linear-gradient(rgba(42,108,210,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(42,108,210,.08) 1px, transparent 1px);
            background-size: 22px 22px; transform: rotate(-2deg) scale(1.15); opacity: .5;
        }
        .tm-territory {
            position: absolute; width: 68%; height: 62%; left: 17%; top: 8%;
            background: rgba(37,99,235,0.14);
            border: 2px solid var(--primary-blue);
            clip-path: polygon(13% 14%, 75% 4%, 97% 38%, 82% 93%, 23% 96%, 3% 58%);
            box-shadow: 0 0 20px rgba(37,99,235,.15);
            z-index: 2;
        }
        .tm-pin-wrap {
            position: absolute; left: 50%; top: 36%; transform: translate(-50%,-50%);
            z-index: 6; width: 34px; height: 34px;
            display: flex; align-items: center; justify-content: center;
        }
        .tm-pulse {
            position: absolute; width: 34px; height: 34px; border-radius: 50%;
            background: rgba(37,99,235,.35);
            animation: tm-pulse-anim 2.6s ease-out infinite;
        }
        .tm-pulse:nth-child(2) { animation-delay: 1.3s; }
        @keyframes tm-pulse-anim {
            0% { transform: scale(1); opacity: .6; }
            100% { transform: scale(2.4); opacity: 0; }
        }
        .tm-pin {
            position: relative; z-index: 2;
            width: 30px; height: 30px; border-radius: 50%;
            background: radial-gradient(circle at 35% 30%, #3b79ed, var(--primary-hover));
            border: 1.5px solid #8fb4f5;
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 15px; line-height: 1;
            filter: drop-shadow(0 5px 8px rgba(37,99,235,.35));
        }
        .tm-houses { position: absolute; inset: 0; z-index: 4; }
        .tm-houses span {
            position: absolute; font-size: 12px; color: var(--primary-blue); opacity: .8;
        }
        .tm-houses span:nth-child(1) { left: 34%; top: 20%; }
        .tm-houses span:nth-child(2) { left: 62%; top: 50%; }
        .tm-houses span:nth-child(3) { left: 28%; top: 52%; }
        .tm-badge {
            position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
            width: min(220px,88%); padding: 6px 12px 5px;
            background: rgba(255,255,255,.97); border-radius: 9px;
            border: 1px solid rgba(65,125,205,.15);
            box-shadow: 0 6px 16px rgba(42,94,165,.12);
            text-align: center; z-index: 10;
        }
        .tm-zip { color: var(--primary-hover); font-size: 13px; font-weight: 800; letter-spacing: .2px; margin-bottom: 2px; }
        .tm-pill {
            font-size: 8px; font-weight: 700; background: #16a34a; color: #fff;
            padding: 1.5px 5px; border-radius: 4px; margin-left: 5px; vertical-align: middle; letter-spacing: 0.2px;
        }
        .tm-sub { font-size: 9px; color: #475569; font-weight: 500; padding-top: 3px; border-top: 1px solid #e5edf9; margin-top: 2px; }
        @media (max-width: 640px) {
            .tm-wrap-v6 { display: none; }
        }

        .hero-form-wrapper {
            flex: 1;
            min-width: 0;
            background: #fff;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
            max-width: 500px;
        }

        /* Tabs */
        .tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            background: var(--bg-light);
            padding: 6px;
            border-radius: 8px;
            min-width: 0;
        }
        .tab {
            flex: 1;
            min-width: 0;
            padding: 12px 6px;
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            color: var(--text-muted);
            transition: all 0.3s ease;
        }
        .tab.active {
            background: var(--primary-blue);
            color: #fff;
            box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
        }

        /* Forms */
        .form {
            display: none;
            animation: fadeIn 0.4s ease;
        }
        .form.active {
            display: block;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .form h2 {
            font-size: 22px;
            margin-bottom: 8px;
        }
        .form p.form-desc {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        .input-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 12px;
        }
        .input-group.full {
            grid-template-columns: 1fr;
        }

        input, select {
            width: 100%;
            min-width: 0;
            padding: 14px 16px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 16px;
            font-family: inherit;
            transition: border 0.3s;
            outline: none;
        }
        input:focus, select:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        button.submit-btn {
            width: 100%;
            padding: 16px;
            margin-top: 10px;
            background: var(--primary-blue);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.3s, transform 0.1s;
        }
        button.submit-btn:hover {
            background: var(--primary-hover);
        }
        button.submit-btn:active {
            transform: scale(0.98);
        }
        button.submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        .guarantee {
            text-align: center;
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .form-status {
            font-size: 13px;
            margin-top: 10px;
            text-align: center;
            min-height: 18px;
        }
        .form-status.error { color: #dc2626; }
        .form-status.success { color: #16a34a; }

        #how-it-works, #get-quote {
            scroll-margin-top: 90px;
        }

        /* Section 2: How It Works */
        .steps-section {
            padding: 80px 0;
            background: var(--bg-color);
            text-align: center;
        }
        .steps-section h2 {
            font-size: 36px;
            margin-bottom: 50px;
        }
        .steps-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
        }
        .step {
            padding: 20px;
        }
        .step-number {
            width: 48px;
            height: 48px;
            background: var(--bg-light);
            color: var(--primary-blue);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 700;
            margin: 0 auto 20px;
            border: 2px solid var(--primary-blue);
        }
        .step h3 {
            font-size: 20px;
            margin-bottom: 12px;
        }
        .step p {
            color: var(--text-muted);
            font-size: 15px;
        }

        /* Section 3: Testimonial */
        .testimonial-section {
            padding: 80px 0;
            background: var(--bg-light);
            text-align: center;
        }
        .testimonial-box {
            max-width: 800px;
            margin: 0 auto;
        }
        .stars {
            color: #fbbf24;
            font-size: 24px;
            margin-bottom: 20px;
        }
        .quote {
            font-size: 28px;
            font-weight: 300;
            font-style: italic;
            color: var(--text-main);
            margin-bottom: 30px;
            line-height: 1.4;
        }
        .author {
            font-weight: 700;
            font-size: 18px;
        }
        .author-role {
            color: var(--text-muted);
            font-size: 14px;
        }

        /* Section 4: Footer */
        footer {
            background: var(--text-main);
            color: #fff;
            padding: 40px 0;
            text-align: center;
        }
        footer p {
            color: #94a3b8;
            font-size: 14px;
            margin-bottom: 10px;
        }
        .footer-links a {
            color: #94a3b8;
            text-decoration: none;
            margin: 0 10px;
            font-size: 14px;
        }
        .footer-links a:hover {
            color: #fff;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-layout {
                flex-direction: column;
            }
            .hero-text h1 {
                font-size: 36px;
            }
            .hero-text {
                text-align: center;
            }
            .steps-grid {
                grid-template-columns: 1fr;
            }
            .input-group {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 360px) {
            .tab {
                font-size: 12px;
                padding: 10px 2px;
            }
        }
