/* Add at the top of the file or update existing rules */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}
.logo-link {
    text-decoration: none;
    color: inherit;
  }
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #f0f4f8;
    --accent-color: #7c3aed;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --background-color: #ffffff;
    --card-background: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.page-container {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.login-btn {
    padding: 0.5rem 1.25rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
}

.login-btn:hover {
    background-color: var(--border-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 5%;
    background: linear-gradient(to right, #f8f9ff, #f0f4ff);
}

.hero-content {
    max-width: 550px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    width: 40%;
    max-width: 500px;
}

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

/* Feature Section */
.features-section {
    padding: 5rem 5%;
    text-align: center;
}

.features-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 5rem 5%;
    background-color: var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.cta-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.login-text {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.login-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-primary i {
    margin-left: 0.5rem;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Footer */
footer {
    background-color: #1f2937; /* Keep dark background for visibility */
    color: white;
    padding: 1.5rem 5% 1rem; /* Reduced top and bottom padding */
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; /* Align items vertically */
    margin-bottom: 1rem; /* Reduced margin */
    gap: 1rem;
  }
  .footer-links {
    display: flex;
    gap: 2rem;
  }
  .footer-links a {
    color: #d1d5db; /* Light gray for better visibility */
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .footer-links a:hover {
    color: white; /* Change to white on hover */
  }
  .footer-social {
    display: flex;
    gap: 1rem;
  }
  
  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #374151;
    color: white;
    transition: var(--transition);
  }
  
  .footer-social a:hover {
    background-color: var(--primary-color);
  }
  .copyright {
    text-align: center;
    padding-top: 1rem; /* Reduced padding */
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.875rem;
  }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 5%;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        width: 70%;
    }
    
    .about-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links a:not(.login-btn) {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Shared landing and content-page polish */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--background-color);
}

.page-container {
    width: 100%;
}

.navbar {
    min-height: 76px;
    padding: 0.9rem max(5%, calc((100% - 1200px) / 2));
    border-bottom: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--card-background) 94%, transparent);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(16px);
}

.logo {
    gap: 0.1rem;
    color: var(--text-color);
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}

.logo i,
.footer-logo i {
    color: var(--primary-color);
}

.nav-links {
    gap: 1.8rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .login-btn {
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--card-background);
    color: var(--text-color);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 550px;
    gap: 2.5rem;
    padding: 6.5rem max(8%, calc((100% - 1120px) / 2));
    overflow: hidden;
    color: #f8fbff;
    background:
        radial-gradient(ellipse at 80% 15%, rgba(45, 212, 191, 0.18), transparent 32%),
        radial-gradient(ellipse at 15% 110%, rgba(37, 99, 235, 0.28), transparent 38%),
        linear-gradient(120deg, #101c2e 0%, #132943 58%, #102439 100%);
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to right, transparent, black);
}

.hero-content {
    max-width: 590px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(148, 190, 214, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #b9d6e4;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero-eyebrow i {
    color: #73e2d2;
}

.hero h1 {
    max-width: 640px;
    margin-bottom: 1.3rem;
    color: #f8fbff;
    font-size: clamp(2.8rem, 5.4vw, 4.5rem);
    letter-spacing: -0.065em;
    line-height: 1.06;
}

.highlight {
    color: #73e2d2;
}

.hero-subtitle {
    max-width: 520px;
    margin-bottom: 2rem;
    color: #b8c7da;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-buttons {
    gap: 0.85rem;
}

.btn-primary,
.btn-secondary {
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.94rem;
    transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.hero .btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.hero .btn-secondary {
    border-color: rgba(226, 232, 240, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: #e5edf8;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-image {
    position: relative;
    width: min(42%, 460px);
    filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.22));
}

.hero-image::before {
    position: absolute;
    z-index: -1;
    inset: 12%;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.15);
    content: "";
    filter: blur(42px);
}

.features-section {
    padding: 6rem max(6%, calc((100% - 1160px) / 2));
    background: var(--background-color);
}

.features-section h2,
.about-content h2 {
    color: var(--text-color);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    letter-spacing: -0.045em;
}

.feature-cards {
    gap: 1.15rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 1.65rem;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--card-background);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 1.3rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.09);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-card h3 {
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.91rem;
    line-height: 1.7;
}

.about-section {
    align-items: center;
    justify-content: center;
    padding: 5rem max(8%, calc((100% - 1120px) / 2));
    background: #edf3fa;
}

.about-content,
.cta-container {
    max-width: 550px;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.cta-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-background);
    box-shadow: var(--shadow-md);
}

.cta-card h3 {
    color: var(--text-color);
    letter-spacing: -0.03em;
}

footer {
    padding: 2.25rem max(5%, calc((100% - 1200px) / 2)) 1.2rem;
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.footer-links {
    gap: 1.4rem;
}

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

.footer-social a {
    border: 1px solid rgba(226, 232, 240, 0.14);
    background: rgba(255, 255, 255, 0.07);
}

.copyright {
    border-color: rgba(226, 232, 240, 0.14);
}

.policy-container {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-background);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 5rem 7%;
    }

    .hero-image {
        width: 58%;
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 68px;
    }

    .hero {
        padding: 4.5rem 7%;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 9vw, 3.4rem);
    }

    .hero-image {
        width: min(78%, 420px);
    }

    .features-section,
    .about-section {
        padding: 4rem 7%;
    }

    .feature-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.2rem;
    }
}

@media (max-width: 520px) {
    .navbar {
        padding: 0.9rem 5%;
    }

    .logo {
        font-size: 1.05rem;
    }

    .nav-links {
        gap: 0.55rem;
    }

    .nav-links .login-btn {
        padding: 0.55rem 0.75rem;
    }

    .hero {
        padding: 3.7rem 6%;
    }

    .hero-content {
        margin-bottom: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.4rem;
    }

    .theme-toggle {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}