/* Font Face Declarations */
@font-face {
    font-family: 'Neue Haas Display';
    src: url('./font/NeueHaasDisplayXXThin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./font/NeueHaasDisplayXThin.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./font/NeueHaasDisplayThin.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./font/NeueHaasDisplayLight.ttf') format('truetype');
    font-weight: 350;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./font/NeueHaasDisplayRoman.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./font/NeueHaasDisplayMediu.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

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

:root {
    --accent-purple: #5B21B6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Neue Haas Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
    font-size: 17px;
    font-weight: 350;
}

/* Smooth transitions for interactive elements */
a, button, input, select, .card, .review-card, .metric-card {
    transition: all 0.2s ease;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ==================== STICKY APPLY BUTTON ==================== */
.sticky-apply-btn {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 999;
    padding: 14px 32px;
    background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.2px;
    box-shadow: 0 8px 24px rgba(91, 33, 182, 0.35);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.sticky-apply-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-apply-btn:hover {
    box-shadow: 0 12px 32px rgba(91, 33, 182, 0.4);
}

.sticky-apply-btn:active {
    transform: translateY(0);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: relative;
    z-index: 1000;
    padding: 32px 80px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.nav-logo svg {
    color: #1a1a1a;
}

.logo-img {
    height: 38px;
    width: auto;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    gap: 4px;
    background: #fff;
    padding: 6px 8px;
    border-radius: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    display: block;
    text-decoration: none;
    color: #666;
    font-weight: 400;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 50px;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    margin-bottom: 5px;
}

.hamburger span:nth-child(2) {
    margin-bottom: 5px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1000;
    padding: 80px 32px 40px;
    flex-direction: column;
    overflow-y: auto;
}

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

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
}

.mobile-nav-close span:first-child {
    transform: rotate(45deg);
}

.mobile-nav-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    letter-spacing: -0.2px;
}

.mobile-nav-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-chevron {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-submenu {
    max-height: 500px;
}

.mobile-nav-submenu a {
    display: block;
    padding: 16px 0 16px 20px;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-submenu a:last-child {
    border-bottom: none;
    padding-bottom: 20px;
}

.mobile-nav-direct-link {
    display: block;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.mobile-nav-cta {
    margin-top: auto;
    padding-top: 24px;
}

.mobile-nav-cta .btn-cta {
    width: 100%;
    text-align: center;
}

.nav-link-text {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: -0.2px;
}

.btn-login {
    padding: 8px 20px;
    background: #5B21B6;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    letter-spacing: -0.2px;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-login:active {
    transform: scale(0.98);
}

/* ==================== MEGA DROPDOWN ==================== */
.has-dropdown {
    position: relative;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: -200px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    width: 600px;
    margin-top: 12px;
    z-index: 1000;
    transition: opacity 0.2s, visibility 0.2s;
    display: flex;
}

.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Bridge the gap between nav and dropdown */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.dropdown-left {
    width: 160px;
    background: #f8f9fa;
    border-radius: 16px 0 0 16px;
    padding: 20px 0;
}

.dropdown-section {
    padding: 14px 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-section:hover {
    background: #e8e9ea;
}

.dropdown-section h3 {
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.2px;
}

.dropdown-right {
    flex: 1;
    padding: 28px 32px;
    position: relative;
}

.dropdown-content {
    display: none;
}

.dropdown-content.active {
    display: block;
}

.get-started-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 28px;
    letter-spacing: -0.1px;
    transition: background 0.2s;
}

.get-started-btn:hover {
    background: #e8e9ea;
}

.get-started-btn:active {
    transform: scale(0.98);
}

.content-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.content-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-links li {
    margin-bottom: 4px;
}

.content-links li a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    display: block;
    padding: 10px 0;
    letter-spacing: -0.2px;
    transition: color 0.2s;
}

.content-links li a:hover {
    color: #5B21B6;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 0 200px;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    bottom: 0;
    width: 70%;
    height: auto;
    z-index: 1;
    opacity: 1;
}

.hero-image-left {
    left: 0;
    width: 60%;
}

.hero-image-right {
    right: 0;
    left: auto;
}

.hero-image-right img {
    transform: scaleX(-1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero .container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 72px;
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 19px;
    font-weight: 350;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 40px;
    letter-spacing: -0.3px;
}

.btn-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #5B21B6;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    letter-spacing: 0.3px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-cta:active {
    transform: scale(0.98);
}

/* Floating Stats Bar */
.floating-stats {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    
    display: flex;
    align-items: center;
    gap: 0;
    
    background: #fff;
    padding: 28px 48px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
                0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    
    width: max-content;
    max-width: none;
}

.stats-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: #1a2b3a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-divider {
    width: 1px;
    height: 50px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0 60px;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: -1px;
    line-height: 1;
    white-space: nowrap;
}

.stat-label {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.stat-label .star {
    color: #f5a623;
    font-size: 11px;
}

.stat-label .info {
    color: #bbb;
    font-size: 11px;
}

/* ==================== YOUR 4 STEP PATH ==================== */
.four-step-path {
    padding: 140px 0;
    background: #f8f9fa;
}

.step-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
}

.tab-item {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tab-number {
    font-size: 18px;
    font-weight: 400;
    color: #ccc;
    letter-spacing: -0.3px;
}

.tab-label {
    font-size: 16px;
    font-weight: 400;
    color: #ccc;
    letter-spacing: -0.2px;
}

.tab-underline {
    height: 2px;
    background: #e8e8e8;
    margin-top: 12px;
    width: 100%;
}

.tab-item.active .tab-number,
.tab-item.active .tab-label {
    color: #1a1a1a;
}

.tab-item.active .tab-underline {
    background: #1a1a1a;
}

.tab-item:active {
    transform: scale(0.98);
}

.step-content-wrapper {
    position: relative;
    min-height: 400px;
}

.step-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-content.active {
    display: flex;
    opacity: 1;
    gap: 60px;
    align-items: center;
}

.content-left {
    flex: 1;
}

.content-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 16px;
}

.content-heading {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: -0.8px;
}

.content-description {
    font-size: 18px;
    line-height: 1.7;
    color: #4a4a4a;
    font-weight: 350;
    letter-spacing: -0.3px;
}

.content-right {
    flex: 1;
}

.form-preview-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-preview-card img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 4px 12px rgba(102, 51, 204, 0.2));
}

/* Make find house card smaller and remove shadow */
#step-3 .form-preview-card img {
    width: 85%;
    height: 85%;
    box-shadow: none;
    filter: none;
}

/* Make close loan card smaller and remove shadow */
#step-4 .form-preview-card img {
    width: 85%;
    height: 85%;
    box-shadow: none;
    filter: none;
}

.form-visual-placeholder {
    display: none;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 140px 0;
    background: #f8f9fa;
}

.how-it-works .container {
    max-width: 1800px;
    margin: 0 auto;
}

.section-title {
    font-size: 48px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
    color: #1a1a1a;
    letter-spacing: -1.2px;
}

.steps-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.step-card {
    border-radius: 20px;
    padding: 36px;
    min-height: 360px;
    min-width: 300px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: default;
}

.step-card.dark,
.step-card.active {
    background: #5B21B6;
    color: #fff;
    flex: 1;
}

.step-card.light {
    background: #fafafa;
    color: #1a1a1a;
}

.step-header {
    margin-bottom: 16px;
}

.step-number {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #999;
    display: block;
    margin-bottom: 12px;
}

.step-card.dark .step-number,
.step-card.active .step-number {
    color: rgba(255, 255, 255, 0.6);
}

.step-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.step-description {
    font-size: 17px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 24px;
    font-weight: 350;
    letter-spacing: -0.2px;
}

.step-card.dark .step-description,
.step-card.active .step-description {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 350;
}

.step-visual {
    margin-top: auto;
}

.step-visual img {
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: contain;
    transform: scale(1.35);
}

.visual-placeholder {
    width: 100%;
    height: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.step-card.light .visual-placeholder {
    background: rgba(0, 0, 0, 0.02);
}

/* ==================== CALCULATOR ==================== */
.calculator {
    padding: 140px 0;
    background: #5B21B6;
    color: #fff;
    position: relative;
}

.calculator-label {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.calculator-title {
    font-size: 48px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

.calculator-card {
    background: #fff;
    border-radius: 24px;
    padding: 50px 60px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    color: #1a1a1a;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
}

.calc-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.calc-tab {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    color: #666;
    font-family: inherit;
    letter-spacing: -0.2px;
    transition: all 0.2s;
}

.calc-tab.active {
    background: #fff;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.calc-tab:active {
    transform: scale(0.98);
}

.calc-form {
    margin-bottom: 40px;
    width: 100%;
}

.purchase-form,
.refinance-form {
    display: none;
}

.purchase-form.active,
.refinance-form.active {
    display: block;
}

.calc-paragraph {
    font-size: 19px;
    line-height: 2.6;
    color: #1a1a1a;
    font-weight: 350;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.calc-dropdown {
    padding: 10px 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    color: #1a1a1a;
    letter-spacing: -0.2px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    transition: all 0.2s ease;
}

.calc-dropdown:hover {
    border-color: #5B21B6;
    background: #fafafa;
}

.calc-dropdown:focus {
    outline: none;
    border-color: #5B21B6;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

.calc-input {
    padding: 10px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 18px;
    font-weight: 400;
    font-family: inherit;
    color: #1a1a1a;
    letter-spacing: -0.2px;
    width: 140px;
    transition: all 0.2s ease;
}

.calc-input.small {
    width: 60px;
}

.calc-input:focus {
    outline: none;
    border-color: #5B21B6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

.calc-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-update-rates {
    padding: 18px 50px;
    background: #5B21B6;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.2px;
}

.btn-update-rates:active {
    transform: scale(0.98);
}

.checkbox-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    width: 48px;
    height: 26px;
    background: var(--accent-purple);
    border-radius: 50px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.toggle-input:not(:checked) + .toggle-slider {
    background: #ddd;
}

.toggle-input:checked + .toggle-slider::after {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 15px;
    font-weight: 350;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}

/* ==================== CALCULATOR RESULTS ==================== */
.calc-results {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease 0.1s,
                margin-top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.calc-results.active {
    max-height: 5000px;
    overflow: visible;
    opacity: 1;
    margin-top: 50px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

/* Left Side - Options */
.results-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.result-tabs {
    display: flex;
    gap: 12px;
}

.result-tab {
    flex: 1;
    padding: 12px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.result-tab.active {
    background: #1a2b3a;
    color: #fff;
}

.result-tab:hover:not(.active) {
    background: #e8e8e8;
}

.result-tab:active {
    transform: scale(0.98);
}

.result-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-option-wrapper {
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-option-wrapper.active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.option-label {
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
}

.option-arrow {
    font-size: 22px;
    font-weight: 300;
    color: #999;
    transition: all 0.3s ease;
    width: 20px;
    text-align: center;
}

.result-option-wrapper.active .option-arrow {
    transform: rotate(45deg);
    color: #5B21B6;
}

.option-description {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.result-option-wrapper.active .option-description {
    max-height: 200px;
    opacity: 1;
    padding: 0 20px 20px 20px;
}

.option-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    font-weight: 400;
}

.btn-signup {
    padding: 16px 32px;
    background: #1a2b3a;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    margin-top: 10px;
}

.btn-signup:active {
    transform: scale(0.98);
}

/* Right Side - Details */
.results-right {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 40px;
}

.results-title {
    font-size: 14px;
    font-weight: 500;
    color: #5B21B6;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.results-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.metric-row {
    display: contents;
}

.metric-card {
    background: #fff;
    border: 2px solid #f5f5f5;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.metric-value {
    font-size: 32px;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.metric-label {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-details {
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #f5f5f5;
}

.quote-title {
    font-size: 10px;
    font-weight: 500;
    color: #999;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.quote-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.quote-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
}

.quote-value {
    font-size: 22px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.4px;
}

.quote-label {
    font-size: 11px;
    font-weight: 400;
    color: #888;
}

/* ==================== BLOG ==================== */
.blog {
    padding: 100px 0;
    background: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-image {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}

.blog-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.blog-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.2px;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 80px 0 40px;
    background: #f8f9fa;
    color: #1a1a1a;
    overflow: hidden;
}

.footer-content {
    display: flex;
    gap: 60px;
    align-items: flex-end;
}

.footer-left {
    flex: 1;
    padding: 0 60px 0 60px;
}

.footer-title {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
    color: #1a1a1a;
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 350;
    color: #4a4a4a;
    margin-bottom: 36px;
    letter-spacing: -0.2px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 60px;
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 15px;
    color: #1a1a1a;
    font-family: inherit;
    letter-spacing: -0.2px;
    transition: all 0.2s ease;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-input:focus {
    outline: none;
    border-color: #5B21B6;
    box-shadow: 0 0 0 3px rgba(102, 51, 204, 0.1);
}

.btn-newsletter {
    padding: 16px 36px;
    background: #5B21B6;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.btn-newsletter:active {
    transform: scale(0.98);
}

.footer-links-wrapper {
    display: flex;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-links-column h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.1px;
    color: #1a1a1a;
}

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

.footer-links-column ul li {
    margin-bottom: 14px;
}

.footer-links-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 350;
    letter-spacing: -0.1px;
    transition: color 0.2s ease;
}

.footer-links-column ul li a:hover {
    color: #5B21B6;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

.footer-bottom-pill {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #5B21B6;
    padding: 14px 28px;
    border-radius: 50px;
}

.footer-eho-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-bottom p {
    font-size: 14px;
    color: #fff;
    font-weight: 350;
    margin: 0;
}

.footer-right {
    flex: 1.3;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-right: 0;
    padding-right: 0;
}

.footer-image {
    width: 170%;
    height: auto;
    display: block;
    max-height: 700px;
    margin-right: -350px;
    margin-bottom: -50px;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    padding: 140px 0;
    background: #fff;
}

.testimonials .section-title {
    font-weight: 300;
    letter-spacing: -1.2px;
}

.testimonial-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.carousel-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    color: #1a1a1a;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: #f8f9fa;
    border-color: #1a1a1a;
}

.carousel-arrow:active {
    transform: scale(0.98);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.reviews-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.review-card {
    display: none;
    gap: 40px;
    background: linear-gradient(135deg, #5B21B6 0%, #5028B5 100%);
    border-radius: 24px;
    padding: 50px;
    color: #fff;
    animation: fadeIn 0.4s ease;
    box-shadow: var(--shadow-md);
}

.review-card.active {
    display: flex;
}

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

.review-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stars {
    font-size: 20px;
    color: #FFD700;
    letter-spacing: 6px;
    font-weight: 200;
}

.review-text {
    font-size: 24px;
    font-weight: 350;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: -0.3px;
    flex: 1;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.reviewer-avatar {
    display: none;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-name {
    font-size: 17px;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.1px;
}

.reviewer-location {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.loan-details {
    flex: 1;
    background: #fff;
    color: #1a1a1a;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.details-title {
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.2px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f8f8f8;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.detail-value {
    font-size: 26px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.6px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot:hover {
    background: #bbb;
}

.dot.active {
    background: #5B21B6;
    transform: scale(1.2);
}

.dot:active {
    transform: scale(0.98);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1600px) {
    .how-it-works .container {
        max-width: 100%;
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .step-card {
        min-width: 280px;
    }
}

@media (max-width: 1440px) {
    .hero-title {
        font-size: 60px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .how-it-works,
    .four-step-path,
    .testimonials {
        padding: 100px 0;
    }
    
    .step-card {
        padding: 32px;
        min-height: 340px;
        max-width: 340px;
    }
    
    .step-title {
        font-size: 22px;
    }
    
    .step-description {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .navbar {
        padding: 20px 40px;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .section-title {
        font-size: 38px;
    }

    .steps-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .steps-grid .step-card {
        flex: 1 1 45%;
    }
    
    .step-card {
        padding: 28px;
        min-height: 320px;
    }
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 80px 0 160px;
    }
    
    .hero-image-right {
        width: 90%;
        opacity: 0.4 !important;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 38px;
    }
    
    .floating-stats {
        width: auto;
        max-width: 92%;
        gap: 12px;
        padding: 14px 18px;
        justify-content: center;
    }
    
    .stats-divider {
        height: 40px;
        margin: 0 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }

    .steps-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .steps-grid .step-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .step-card {
        padding: 32px;
        min-height: auto;
    }
    
    .step-title {
        font-size: 22px;
    }
    
    .step-description {
        font-size: 16px;
    }

    .review-card {
        flex-direction: column;
        padding: 36px;
    }

    .review-text {
        font-size: 19px;
    }

    .testimonial-carousel {
        gap: 20px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .calculator-card {
        padding: 36px 28px;
    }
    
    .calculator-title {
        font-size: 40px;
    }
    
    .calc-paragraph {
        font-size: 16px;
        line-height: 2.4;
    }
    
    .calc-dropdown {
        font-size: 15px;
        padding: 9px 36px 9px 12px;
        border-radius: 9px;
    }
    
    .calc-input {
        font-size: 15px;
        padding: 9px 12px;
        width: 90px;
        border-radius: 9px;
    }
    
    .calc-input.small {
        width: 48px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        min-height: 280px;
    }

    .footer-links-wrapper {
        gap: 32px;
    }
    
    .footer-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0 180px;
        min-height: 60vh;
        position: relative;
    }
    
    .hero .container {
        padding-bottom: 40px;
    }
    
    .hero-image-left {
        display: none;
    }
    
    .hero-image-right {
        position: absolute;
        width: 100%;
        right: 0;
        left: 0;
        bottom: 0;
        opacity: 0.35 !important;
        z-index: 1;
    }
    
    .hero-image-right img {
        transform: none;
    }
    
    .floating-stats {
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: none;
        padding: 14px 24px;
        border-radius: 18px;
        gap: 0;
        z-index: 2;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .floating-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        gap: 8px;
        padding: 16px 18px;
        justify-content: space-between;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .stats-divider {
        margin: 0 12px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    /* Step cards vertical */
    .step-card {
        padding: 28px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 16px 20px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    /* Hide desktop nav, show hamburger */
    .nav-right .nav-link-text,
    .nav-right .btn-login {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 40px 0 120px;
        min-height: 70vh;
        position: relative;
    }
    
    .hero .container {
        padding-bottom: 80px;
        position: relative;
        z-index: 3;
    }
    
    .hero-image-left {
        display: none;
    }
    
    .hero-image-right {
        position: absolute;
        width: 140%;
        right: -20%;
        left: auto;
        bottom: 0;
        opacity: 0.35 !important;
        z-index: 1;
    }
    
    .hero-image-right img {
        transform: none;
        width: 100%;
        height: auto;
    }
    
    .floating-stats {
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 90%;
        padding: 12px 20px;
        border-radius: 16px;
        gap: 0;
        z-index: 2;
        display: inline-flex;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 36px;
        margin-bottom: 16px;
        letter-spacing: -0.8px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
        line-height: 1.5;
    }
    
    .btn-cta {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .stats-logo {
        display: none;
    }
    
    .stat-item {
        flex-shrink: 0;
        gap: 3px;
        align-items: center;
    }
    
    .stat-value {
        font-size: 18px;
        font-weight: 500;
    }
    
    .stat-label {
        font-size: 9px;
        letter-spacing: 0.4px;
    }
    
    .stats-divider {
        height: 40px;
        margin: 0 16px;
        display: block;
        background: rgba(0, 0, 0, 0.08);
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
        letter-spacing: -0.5px;
    }
    
    .how-it-works,
    .four-step-path,
    .testimonials {
        padding: 60px 0;
    }
    
    /* Step cards - vertical layout */
    .step-card {
        padding: 28px 32px;
        min-height: auto;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .step-header {
        margin-bottom: 12px;
        order: 1;
    }
    
    .step-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .step-description {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.5;
        order: 2;
    }
    
    .step-visual {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        order: 3;
    }
    
    .step-visual img {
        border-radius: 10px;
        width: 100%;
        height: auto;
        min-height: auto;
        transform: scale(1);
    }
    
    /* Path to homeownership - vertical layout */
    .step-content.active {
        flex-direction: column;
        gap: 32px;
    }
    
    .content-left {
        order: 1;
        width: 100%;
    }
    
    .content-right {
        order: 2;
        width: 100%;
    }
    
    .content-heading {
        font-size: 24px;
    }
    
    .content-description {
        font-size: 15px;
    }
    
    .form-preview-card {
        min-height: 300px;
    }
    
    /* Calculator */
    .calculator {
        padding: 60px 0;
    }
    
    .calculator-title {
        font-size: 28px;
        margin-bottom: 28px;
    }
    
    .calculator-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .calc-tabs {
        margin-bottom: 24px;
    }
    
    .calc-tab {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .calc-form {
        margin-bottom: 20px;
    }
    
    .calc-paragraph {
        font-size: 14px;
        line-height: 2.4;
        letter-spacing: 0.2px;
        word-spacing: 2px;
    }
    
    .calc-dropdown {
        font-size: 13px;
        padding: 8px 32px 8px 10px;
        border-radius: 8px;
        font-weight: 400;
    }
    
    .calc-input {
        font-size: 13px;
        padding: 8px 10px;
        width: 85px;
        border-radius: 8px;
    }
    
    .calc-input.small {
        width: 42px;
    }
    
    .btn-update-rates {
        padding: 14px 32px;
        font-size: 14px;
    }
    
    /* Results */
    .results-grid {
        gap: 20px;
    }
    
    .result-card {
        padding: 20px;
    }
    
    /* Testimonials */
    .review-card {
        padding: 28px;
        border-radius: 20px;
    }
    
    .review-text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .review-author-info h4 {
        font-size: 15px;
    }
    
    .review-author-info span {
        font-size: 13px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 30px;
    }
    
    .footer-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .footer-subtitle {
        font-size: 14px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .btn-newsletter {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .footer-right {
        display: none;
    }
    
    .footer-image {
        display: none;
    }
    
    .footer-links-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .footer-links-column {
        min-width: 0;
    }
    
    .footer-links-column h4 {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .footer-links-column ul li {
        margin-bottom: 10px;
    }
    
    .footer-links-column ul li a {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding-top: 24px;
        margin-top: 32px;
        text-align: center;
    }
    
    .footer-bottom-pill {
        padding: 12px 16px;
        gap: 12px;
        flex-wrap: nowrap;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        max-width: 95%;
    }
    
    .footer-eho-logo {
        height: 26px;
        flex-shrink: 0;
    }
    
    .footer-bottom p {
        font-size: 11px;
        line-height: 1.4;
    }

    .carousel-arrow {
        display: none;
    }
    
    /* Sticky Apply Button on mobile */
    .sticky-apply-btn {
        top: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Page Hero for subpages */
    .page-hero {
        min-height: 50vh !important;
        padding: 80px 20px 60px !important;
    }
    
    .page-hero-content h1 {
        font-size: 36px !important;
        letter-spacing: -0.8px !important;
    }
    
    .page-hero-content p {
        font-size: 16px !important;
    }
    
    /* Benefits grid on mobile */
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .benefit-card {
        padding: 28px !important;
    }
    
    .benefit-card h3 {
        font-size: 20px !important;
    }
    
    .benefit-card p {
        font-size: 14px !important;
    }
    
    /* Process steps on mobile */
    .process-steps {
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .process-step .step-number {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
    
    .process-step h3 {
        font-size: 18px !important;
    }
    
    .process-step p {
        font-size: 14px !important;
    }
    
    /* CTA box on mobile */
    .cta-box {
        padding: 50px 28px !important;
        border-radius: 24px !important;
    }
    
    .cta-box h2 {
        font-size: 32px !important;
    }
    
    .cta-box p {
        font-size: 15px !important;
    }
}

/* ==================== LOGIN MODAL ==================== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    pointer-events: all;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.login-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

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

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

.login-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-modal-logo {
    height: 32px;
    width: auto;
}

.login-form-container {
    display: none;
}

.login-form-container.active {
    display: block;
    animation: fadeInContent 0.3s ease;
}

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

.login-modal-title {
    font-size: 32px;
    font-weight: 200;
    letter-spacing: -1px;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 8px;
}

.login-modal-subtitle {
    font-size: 16px;
    font-weight: 350;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Neue Haas Display', sans-serif;
    font-weight: 350;
    color: #1a1a1a;
    transition: all 0.2s ease;
    background: white;
}

.login-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(91, 33, 182, 0.1);
}

.login-input::placeholder {
    color: #999;
}

.input-hint {
    font-size: 13px;
    color: #666;
    font-weight: 300;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 300;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-purple);
}

.forgot-password {
    font-size: 14px;
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-login-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Neue Haas Display', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 33, 182, 0.3);
}

.btn-login-submit:active {
    transform: translateY(0);
}

.login-divider {
    text-align: center;
    margin: 24px 0 16px;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 0;
}

.login-divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    font-size: 14px;
    color: #666;
    font-weight: 300;
    z-index: 1;
}

.btn-switch-form {
    width: 100%;
    padding: 14px 32px;
    background: transparent;
    color: var(--accent-purple);
    border: 1.5px solid var(--accent-purple);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Neue Haas Display', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-switch-form:hover {
    background: rgba(91, 33, 182, 0.05);
}

.btn-switch-form:active {
    transform: scale(0.98);
}

.form-terms {
    margin-top: 4px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 300;
    cursor: pointer;
    line-height: 1.5;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: var(--accent-purple);
    flex-shrink: 0;
}

.terms-checkbox a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 400;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-modal-content {
        padding: 32px 24px;
        border-radius: 20px;
        max-height: 95vh;
    }

    .login-modal-title {
        font-size: 28px;
    }

    .login-modal-subtitle {
        font-size: 15px;
    }

    .login-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-login-submit,
    .btn-switch-form {
        padding: 14px 24px;
        font-size: 15px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
