/* ==========================================================================
   Global Styles & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #334155 25%, #475569 50%, #64748b 75%, #94a3b8 100%);
    min-height: 100vh;
    color: #ffffff;
}

/* === Global Navigation & Button Styles === */

/* Base style for all nav items - Reserve space to prevent shifting */
.nav-menu a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    background-color: transparent;
    border: 2px solid transparent;
    border-bottom: 2px solid transparent; /* Reserve space for underline */
    color: white;
    white-space: nowrap;
    /* Reserve space for bold text to prevent shifting */
    min-width: -webkit-fill-available;
}

/* Style for outline buttons in the header (Sign Up & Login) */
.nav-menu a.btn-signup,
.nav-menu a.btn-login {
    border-color: white; /* Add full white border */
    border-bottom: 2px solid white; /* Keep consistent border */
}

/* Hover state for TEXT links (How it Works, etc.) - Keep white, no shifting */
.nav-menu a:not(.btn-signup):not(.btn-login):hover {
    color: white; /* Keep text WHITE on hover */
    /* No font-weight change to prevent shifting */
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6); /* White glow */
    background-color: rgba(255, 255, 255, 0.1); /* Subtle white background */
}

/* Hover state for OUTLINE buttons */
.nav-menu a.btn-signup:hover,
.nav-menu a.btn-login:hover {
    color: #3b82f6;
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Active state for the current page's link (TEXT links only) - White underline like in image */
.nav-menu a:not(.btn-signup):not(.btn-login).active {
    color: white; /* Keep text WHITE for active page */
    border-bottom: 2px solid white; /* White underline like in the image */
    /* No background change, no font-weight change to prevent shifting */
}

/* Prevent visited link color changes */
.nav-menu a:visited {
    color: white;
}

.nav-menu a.active:visited {
    color: white;
}

/* Remove default link underline globally */
a {
    text-decoration: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 55%, #0F1F33 100%);
    color: white;
    padding: 0.15rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 14px -6px rgba(15,31,51,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 60px;
    max-height: 72px;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5em;
    font-weight: 800;
    flex-shrink: 0;
}

.company-logo img {
    height: 120px;
    max-height: 120px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

.header-center {
    flex: 1;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.nav-menu li {
    margin: 0;
    padding: 0;
    flex-shrink: 0; /* Prevent individual items from shrinking */
}

/* ==========================================================================
   Buttons inside Page Content (e.g., Pricing Cards)
   ========================================================================== */
.pricing-card a {
    /* Base styles for all buttons in pricing cards */
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    transition: color 0.3s ease, border-color 0.3s ease;

    /* Default State: Transparent with white border */
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.pricing-card a:hover {
    /* Hover State: Transparent with blue border and text */
    background-color: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

/* This styles the "Most Popular" card's button with a gradient */
.pricing-card.popular-card a {
    background: linear-gradient(to right, #3B82F6, #8B5CF6);
    border-color: transparent;
    color: white;
    transition: filter 0.3s ease;
}

.pricing-card.popular-card a:hover {
    filter: brightness(1.15);
    color: white; /* Ensure text stays white on hover */
}


.btn-padz {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-padz:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    min-width: 200px;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid #475569;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    min-width: 200px;
}
.btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* ==========================================================================
   Page Structure & Common Sections
   ========================================================================== */
.main-content {
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    padding: 0.5rem 0;
    display: inline-block;
}

.page-subtitle {
    font-size: 1.4rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.7;
    padding-bottom: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   How It Works Page
   ========================================================================== */
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem; /* Increased gap for better separation */
    margin: 3rem 0;
}

.step-card {
    background: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 2rem 3rem;
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: 1.5rem;
    left: -15px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal columns */
    gap: 3rem;
    align-items: center;
}

.step-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.step-info p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-features {
    list-style: none;
    padding-left: 0;
}

.step-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
    font-size: 1rem;
}

.step-features li::before {
    content: "•";
    color: #8b5cf6;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.step-visual {
    text-align: center;
}

.step-visual img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Pricing Page
   ========================================================================== */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    color: #cbd5e1;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.comparison-table thead th {
    color: #ffffff;
    font-weight: 600;
    text-align: center;
}

.comparison-table tbody td {
    text-align: center;
}

/* Additional styles for How It Works table format */
.comparison-table tbody td p {
    text-align: left;
}

.comparison-table tbody td ul {
    text-align: left;
    list-style: none;
    padding-left: 0;
}

.partner-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 55%, #0F1F33 100%);
    box-shadow: 0 -1px 0 rgba(15,31,51,0.35);
    color: white;
    padding: 12px 20px;
    margin-top: 0rem;
}

.footer-content {
    display: flex;
    gap: 70px;
    max-width: 150900; /* Reduce this value to make footer narrower */
    margin: 0 auto; /* Center the narrower footer */
    padding: 0 1rem; /* Add some padding on the sides */
    justify-content: space-between;
}

.footer-left {
    display: flex;
    gap: 80px;
}

.footer-section h4 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 4px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-icon:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
    .header { padding: 0.5rem 1rem; }
    .nav-menu { gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
    .nav-menu li a { font-size: 0.85rem; padding: 0.45rem 0.75rem; }
}

@media (max-width: 768px) {
    .header {
        padding: 0.15rem 0.75rem;
        min-height: 56px;
        max-height: none;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .company-logo img { height: 88px; max-height: 88px; }
    .nav-menu {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        flex: 1 1 100%;
    }
    .nav-menu li a { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
    .btn-padz, .btn-signup, .btn-login { padding: 0.45rem 0.75rem !important; font-size: 0.8rem !important; }

    .main-content {
        padding: 1rem;
    }

    .step-card .step-content {
        grid-template-columns: 1fr;
    }

    .pricing-container {
        grid-template-columns: 1fr;
    }

    .footer-content,
    .footer-left {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .company-logo img { height: 72px; max-height: 72px; }
    .nav-menu li a { font-size: 0.75rem; padding: 0.35rem 0.5rem; }
}

/* ==========================================================================
   Search Input
   ========================================================================== */
.search-input {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #475569;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    transition: border-color 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1; /* Override default opacity for placeholders */
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.2);
}