/* ===== ROOT VARIABLES ===== */
:root {
    --primary-blue: #0040FF;
    --primary-light: rgba(0, 64, 255, 0.1);
    --primary-lighter: rgba(0, 64, 255, 0.05);
    --white: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --border-color: rgba(0, 64, 255, 0.15);
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 64, 255, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 64, 255, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 64, 255, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 0px; /* updated dynamically via JS */
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: var(--header-height);
}

/* Apply anchor offset for sections with IDs */
section[id] {
    scroll-margin-top: var(--header-height);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

/* Language dropdown */
.language-dropdown {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
    background: var(--primary-blue);
    color: var(--white);
}

.lang-icon {
    transition: var(--transition);
}

.lang-toggle:hover .lang-icon,
.lang-toggle[aria-expanded="true"] .lang-icon {
    transform: scale(1.05);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    list-style: none;
    margin: 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
    animation: fadeInDown 0.2s ease-out;
}

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

.lang-menu.show {
    display: block;
}

.lang-option {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.lang-option:hover {
    background: var(--primary-lighter);
    color: var(--primary-blue);
}

.lang-option.active {
    background: var(--primary-light);
    color: var(--primary-blue);
    font-weight: 600;
}

.lang-option.active::after {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
}

.navbar-toggler {
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230040FF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Add spacing before the button in navbar */
@media (min-width: 992px) {
    .navbar-nav .nav-item:last-child {
        margin-left: 0.5rem;
    }
}

/* Mobile navbar adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .nav-item:last-child {
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-item:last-child .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Language dropdown on mobile */
    .language-dropdown {
        display: flex;
        justify-content: center;
        padding: 0.5rem 0;
    }
    
    .lang-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background: #0035d9;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary-custom.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-custom:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== BADGE PILL ===== */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-lighter);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-blue);
    position: relative;
    z-index: 10;
}

.badge-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 160px 0 0;
    background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--white) 100%);
    position: relative;
    overflow: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 64, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 64, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.75rem;
    color: var(--text-dark);
    position: relative;
    z-index: 10;
    text-wrap: balance;
}

.text-primary-custom {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    max-width: 750px;
    position: relative;
    z-index: 10;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.trust-badges {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

.trust-badge svg path {
    stroke: var(--primary-blue);
}

/* Decorative Floating Cards */
.hero-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    color: var(--text-dark);
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
    pointer-events: auto;
    z-index: 1;
}

.floating-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.floating-card-1 {
    left: -220px;
    top: 80px;
    animation-delay: 0s;
}

.floating-card-2 {
    left: -200px;
    top: 300px;
    animation-delay: 2s;
}

.floating-card-3 {
    right: -220px;
    top: 150px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== SECTION STYLES ===== */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0.75rem auto 0;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.feature-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-lighter);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-light);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.step-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    line-height: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    padding: 80px 0;
    background: var(--white);
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

/* Ensure pricing buttons with full width have centered content */
.pricing-card .btn-primary-custom {
    width: 100%;
    justify-content: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.pricing-card-featured {
    border-color: var(--primary-blue);
    border-width: 3px;
    box-shadow: var(--shadow-md);
}

/* Trial Banner */
.trial-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0035d9 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.trial-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.trial-banner-content {
    position: relative;
    z-index: 1;
}

.trial-banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trial-banner-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.trial-banner-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.trial-banner .btn-primary-custom {
    background: var(--white);
    color: var(--primary-blue);
    position: relative;
    z-index: 1;
}

.trial-banner .btn-primary-custom:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.4rem 1.5rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.pricing-plan {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}

.price-currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pricing-features li svg {
    flex-shrink: 0;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.accordion-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Ensure consistent borders between items (override Bootstrap removing top border) */
.accordion-item:not(:first-of-type) {
    border-top: 1px solid var(--border-color);
}

/* Force equal rounding for first and last items (override Bootstrap defaults) */
.accordion-item:first-of-type,
.accordion-item:last-of-type {
    border-radius: 12px;
}

.accordion-button {
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
    border-radius: 0; /* rely on .accordion-item rounding for consistent corners */
}

/* Remove special rounding on first/last items applied by Bootstrap */
.accordion-item:first-of-type .accordion-button,
.accordion-item:last-of-type .accordion-button {
    border-radius: 0;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-lighter);
    color: var(--primary-blue);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230040FF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: var(--white);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0035d9 100%);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cta-card .btn-primary-custom {
    background: var(--white);
    color: var(--primary-blue);
}

.cta-card .btn-primary-custom:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1600px) {
    .floating-card-1 {
        left: -180px;
    }
    
    .floating-card-2 {
        left: -160px;
    }
    
    .floating-card-3 {
        right: -180px;
    }
}

@media (max-width: 1400px) {
    .floating-card-1 {
        left: -140px;
    }
    
    .floating-card-2 {
        left: -120px;
    }
    
    .floating-card-3 {
        right: -140px;
    }
}

@media (max-width: 1200px) {
    /* Hide floating cards on tablets and mobile */
    .hero-decorative-elements {
        display: none;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 130px 0 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1.1rem;
    }

    .cta-card {
        padding: 3rem 2rem;
    }

    .features-section {
        padding-top: 70px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }

    /* Footer adjustments for tablets */
    .footer {
        padding: 50px 0 25px;
    }

    .footer-brand {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 120px 0 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        margin-bottom: 2.5rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.7;
        margin: 0 auto 1.75rem;
        max-width: 90%;
    }

    .badge-pill {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    /* Respect notches on small screens */
    @supports (padding-top: env(safe-area-inset-top)) {
        .hero-section {
            padding-top: max(110px, calc(100px + env(safe-area-inset-top)));
        }
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .feature-card,
    .step-card,
    .pricing-card {
        padding: 2rem;
    }

    .trial-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .trial-banner-title {
        font-size: 1.5rem;
    }

    .trial-banner .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }

    .cta-card {
        padding: 2rem;
        text-align: center;
    }

    .features-section {
        padding-top: 60px;
    }

    .cta-card .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }

    /* Footer mobile adjustments */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-logo {
        height: 36px;
        margin: 0 auto 1rem;
        display: block;
    }

    .footer-description {
        font-size: 0.95rem;
        max-width: 90%;
        margin: 0 auto;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .footer-links {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-links li {
        margin-bottom: 0.65rem;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }

    /* Better spacing for footer columns on mobile */
    .footer .row.g-4 {
        row-gap: 2rem !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    /* Hero fine-tuning */
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.22;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 92%;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn-primary-custom.btn-lg,
    .hero-buttons .btn-outline-custom.btn-lg {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    /* Compress trust indicators into a neat grid */
    .trust-badges {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        gap: 0.75rem 1.25rem;
        margin-bottom: 2.25rem;
    }

    .trust-badge {
        font-size: 0.95rem;
    }

    /* Lighter decorative glow for performance and fit */
    .hero-section::before {
        width: 380px;
        height: 380px;
        top: -35%;
    }

    .hero-section::after {
        width: 260px;
        height: 260px;
        bottom: -8%;
    }

    /* Respect notches on very small screens */
    @supports (padding-top: env(safe-area-inset-top)) {
        .hero-section {
            padding-top: max(105px, calc(90px + env(safe-area-inset-top)));
        }
    }
    .footer {
        padding: 35px 0 18px;
    }

    .footer-brand {
        padding: 0 15px;
        margin-bottom: 1.75rem;
    }

    .footer-logo {
        height: 32px;
    }

    .footer-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
    }

    .footer-links {
        margin-bottom: 1.25rem;
    }

    .footer-links li {
        margin-bottom: 0.6rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        font-size: 0.85rem;
    }

    .footer-bottom p {
        margin-bottom: 0;
    }
}

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

.hero-content,
.hero-visual {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    animation-delay: 0.2s;
}

/* ===== SMOOTH SCROLLING ===== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}



/* ===== ADDITIONAL STYLES FOR POLICY AND TERMS PAGES ===== */
.hero-section-policy {
    padding: 140px 0 40px 0!important;
}

.step-card p {
    margin-bottom: 0.5rem;
}

.step-card p:last-child {
    margin-bottom: 0;
}

.step-card ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.step-card ul li {
    margin-bottom: 0.5rem;
}

/* Mobile adjustments for policy and terms hero titles */
@media (max-width: 576px) {
    .hero-section-policy .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }
    
    .hero-section-policy .hero-description {
        font-size: 1rem;
    }
    
    .hero-section-policy .badge-pill {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 480px) {
    /* Tighten hero on very small phones */
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.25;
    }

    .hero-description {
        font-size: 0.98rem;
        margin-bottom: 1.4rem;
    }

    .badge-pill {
        font-size: 0.8rem;
        padding: 0.35rem 0.9rem;
    }
    
    .hero-buttons .btn-primary-custom.btn-lg,
    .hero-buttons .btn-outline-custom.btn-lg {
        padding: 0.8rem 1.1rem;
        font-size: 0.98rem;
    }
    .hero-section-policy .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }
}

/* Fix for form controls */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Ensure proper active state for nav links */
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

.navbar-nav .nav-link.active::after {
    width: 60%;
}

