/* =====================================================
   UNIVERSAL RESET & BASE
   (USED BY ALL PAGES)
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rethink Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    color: #1A1F3C;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em; /* Added base letter-spacing */
}

/* Import Rethink Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@300;400;500;600;700;800&display=swap');

a {
    text-decoration: none;
    color: inherit;
    letter-spacing: 0.01em;
}

img {
    max-width: 100%;
    display: block;
}

/* =====================================================
   GLOBAL CONTAINERS
===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HEADER (LOCKED)
===================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #394EFD;
    box-shadow: 0 4px 20px rgba(57, 78, 253, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: "Rethink Sans", sans-serif;
    background: linear-gradient(90deg, #394EFD, #6A7CFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em; /* Better letter-spacing */
}

/* NAVIGATION */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a,
.dropdown-toggle {
    font-size: 1rem;
    font-weight: 600;
    font-family: "Rethink Sans", sans-serif;
    color: #1A1F3C;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.main-nav a:hover,
.dropdown-toggle:hover {
    color: #394EFD;
}

.main-nav a::after,
.dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #394EFD;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.main-nav a:hover::after,
.dropdown-toggle:hover::after {
    width: 100%;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 35px;
    left: 0;
    background: #ffffff;
    border: 1px solid rgba(57, 78, 253, 0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(57, 78, 253, 0.12);
    overflow: hidden;
}

.dropdown-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-family: "Rethink Sans", sans-serif;
    color: #3A3F5C;
    border-bottom: 1px solid rgba(57, 78, 253, 0.05);
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(57, 78, 253, 0.05);
    color: #394EFD;
    padding-left: 24px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* =====================================================
   HERO SECTION (UPDATED - Fixed letter spacing issue)
===================================================== */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9faff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, rgba(57, 78, 253, 0.05), transparent);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* FIXED HERO HEADING - Proper letter spacing */
.hero h1 {
    font-size: 3.5rem;
    font-family: "Rethink Sans", sans-serif;
    margin-bottom: 24px;
    color: #1A1F3C;
    line-height: 1.1;
    font-weight: 800;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em; /* Fixed: Better letter spacing */
    word-spacing: 0.02em; /* Added word spacing for better readability */
}

.hero h1 .highlight {
    background: linear-gradient(90deg, #394EFD, #6A7CFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.015em; /* Slightly tighter for gradient text */
}

.hero p {
    font-size: 1.25rem;
    font-family: "Rethink Sans", sans-serif;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 48px;
    color: #3A3F5C;
    line-height: 1.7;
    letter-spacing: 0.01em; /* Added letter-spacing */
}

.features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(57, 78, 253, 0.08);
    border: 1px solid rgba(57, 78, 253, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(57, 78, 253, 0.12);
}

.feature span {
    font-family: "Rethink Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1A1F3C;
    letter-spacing: 0.01em;
}

.feature i {
    color: #394EFD;
    font-size: 1.2rem;
    background: rgba(57, 78, 253, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* =====================================================
   BUTTONS (GLOBAL - UPDATED)
===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, #394EFD, #6A7CFF);
    color: white;
    padding: 18px 42px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: "Rethink Sans", sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(57, 78, 253, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.02em; /* Added letter-spacing */
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2A3ABD, #394EFD);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(57, 78, 253, 0.4);
}

/* =====================================================
   GRID SYSTEM (GLOBAL - UPDATED)
===================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
}

/* =====================================================
   CARD (GLOBAL - UPDATED)
===================================================== */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 42px 32px;
    box-shadow: 0 8px 30px rgba(57, 78, 253, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: "Rethink Sans", sans-serif;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(57, 78, 253, 0.12);
    border-color: rgba(57, 78, 253, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #394EFD, #FF4E8D);
}

.card h3 {
    font-size: 1.6rem;
    font-family: "Rethink Sans", sans-serif;
    margin-bottom: 18px;
    color: #1A1F3C;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.01em; /* Better letter-spacing */
}

.card h3 i {
    color: #394EFD;
    font-size: 1.4rem;
    background: rgba(57, 78, 253, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card p {
    font-size: 1rem;
    font-family: "Rethink Sans", sans-serif;
    color: #3A3F5C;
    margin-bottom: 24px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em; /* Added letter-spacing */
}

/* AI Badge */
.ai-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(90deg, #FF4E8D, #FF7CA8);
    color: white;
    font-size: 0.75rem;
    font-family: "Rethink Sans", sans-serif;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.03em; /* Slightly more spacing for small text */
}

/* Card Link */
.card-link {
    color: #394EFD;
    font-weight: 700;
    font-family: "Rethink Sans", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.card:hover .card-link {
    gap: 12px;
}

/* =====================================================
   SECTION TITLE (NEW - Fixed letter spacing)
===================================================== */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-family: "Rethink Sans", sans-serif;
    margin-bottom: 70px;
    color: #1A1F3C;
    font-weight: 800;
    position: relative;
    letter-spacing: -0.015em; /* Better letter-spacing */
    word-spacing: 0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: #394EFD;
    border-radius: 3px;
}

/* =====================================================
   TOOLS SECTION (NEW)
===================================================== */
.tools {
    padding: 80px 0 120px;
    background: white;
}

/* =====================================================
   WHY CHOOSE US SECTION (NEW)
===================================================== */
.why-us {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9faff 0%, #f0f4ff 100%);
    border-radius: 30px;
    margin-bottom: 80px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(57, 78, 253, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Rethink Sans", sans-serif;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(57, 78, 253, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(57, 78, 253, 0.1), rgba(255, 78, 141, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.benefit-icon i {
    font-size: 2rem;
    background: linear-gradient(90deg, #394EFD, #FF4E8D);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-family: "Rethink Sans", sans-serif;
    margin-bottom: 16px;
    color: #1A1F3C;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.benefit-card p {
    color: #3A3F5C;
    line-height: 1.7;
    font-family: "Rethink Sans", sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* =====================================================
   FOOTER (LOCKED - UPDATED)
===================================================== */
.site-footer {
    background: #1A1F3C;
    border-top: none;
    text-align: left;
    padding: 80px 0 30px;
    color: #ffffff;
    margin-top: 0;
    font-family: "Rethink Sans", sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-family: "Rethink Sans", sans-serif;
    margin-bottom: 24px;
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.01em;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #394EFD;
    border-radius: 2px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: #b0b7d6;
    margin-bottom: 24px;
    line-height: 1.7;
    font-family: "Rethink Sans", sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b7d6;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Rethink Sans", sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.social-link:hover {
    background: #394EFD;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(57, 78, 253, 0.3);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #8a94c4;
    font-size: 0.9rem;
    font-family: "Rethink Sans", sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal a {
    color: #8a94c4;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: "Rethink Sans", sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.footer-legal a:hover {
    color: white;
}

.divider {
    color: #8a94c4;
    font-size: 0.8rem;
}

/* =====================================================
   RESPONSIVE (GLOBAL - UPDATED)
===================================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
        letter-spacing: -0.015em;
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .grid-2 {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .section-title {
        font-size: 2.4rem;
        letter-spacing: -0.01em;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -0.01em;
        word-spacing: 0.01em;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
        letter-spacing: -0.008em;
    }
    
    .why-us {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-logo-img {
        height: 35px;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: -0.008em;
        line-height: 1.2;
    }
    
    .card {
        padding: 32px 24px;
    }
    
    .btn-primary {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: translateX(3px);
    }
}

/* =====================================================
   ADDITIONAL TYPOGRAPHY STYLES - IMPROVED
===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: "Rethink Sans", sans-serif;
    font-weight: 700;
    color: #1A1F3C;
    letter-spacing: -0.01em;
}

h1 {
    letter-spacing: -0.02em;
}

h2 {
    letter-spacing: -0.015em;
}

h3 {
    letter-spacing: -0.01em;
}

p, li, span, div {
    font-family: "Rethink Sans", sans-serif;
    letter-spacing: 0.01em;
}

strong, b {
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* =====================================================
   ANIMATION FOR FEATURES
===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature {
    animation: fadeInUp 0.5s ease-out forwards;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }

/* =====================================================
   SPECIAL HERO HEADING FIX - For your specific text
===================================================== */
.hero-heading-fix {
    letter-spacing: -0.02em;
    word-spacing: 0.03em;
    line-height: 1.1;
}

/* If you need to target the specific heading structure */
.hero h1 br + span,
.hero h1 .highlight {
    letter-spacing: -0.015em;
}