:root {
    --bg-color: #ffffff;
    /* Slate 950 */
    --card-bg: rgba(15, 23, 42, 0.6);
    --primary-color: #3b82f6;
    /* Blue 500 */
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.1);
    --glow-color: rgba(59, 130, 246, 0.5);
    --font-inter: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-inter);
}

body {
    background-color: #000000;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    z-index: 0;
}

/* Top Background Glow/Image - restricted to top */
/* Top Background Glow/Image - restricted to top */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 900px;
    background: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.15), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 6%;
    background: rgba(2, 6, 23, 0.65);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header:hover {
    background: rgba(2, 6, 23, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.logo img {
    height: 52px;
    transition: transform 0.3s ease;
}

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

.navbar {
    display: flex;
    gap: 45px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 30px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login-nav {
    padding: 10px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 99px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Mobile Menu Button - Styled as Link */
.mobile-menu-btn {
    display: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    position: relative;
    z-index: 200;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

/* Hide the old overlay components on mobile */
.navbar,
.nav-actions {
    display: none;
}

/* Desktop Styles Override for Navbar */
@media (min-width: 769px) {
    .navbar {
        display: flex;
    }

    .nav-actions {
        display: flex;
    }
}

/* Hero Section */
.hero {
    padding: 140px 5% 100px;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    position: relative;
}

/* Specific Home Page Hero with Fixed Background */
.home-page .hero {
    background:
        linear-gradient(to bottom, rgba(2, 6, 23, 0.3), #000000),
        url('/bg2.png') no-repeat top center fixed;
    background-size: cover;
    box-shadow: inset 0 -50px 50px #000000;
}

.hero h1 {
    font-size: 4.5rem;
    /* Larger title */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 660px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* Hero Buttons */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Ensure link reset */
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}


/* Features Section */
.features-section {
    padding: 100px 5%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: left;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card ion-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: white;
}

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

/* Footer Styles */
.footer-premium {
    background: #020617;
    /* Slate 950 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    /* Slate 400 */
    padding: 80px 5% 30px;
    font-size: 0.95rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 25px;
}

.footer-brand p {
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 350px;
}

.compliance-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.compliance-box h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
}

.compliance-box p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.compliance-box span {
    color: #64748b;
    font-weight: 500;
}

.link-column h4,
.footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.link-column a {
    display: block;
    color: #94a3b8;
    margin-bottom: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.link-column a:hover {
    color: #3b82f6;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item .label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-item p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
}

.contact-item ion-icon {
    font-size: 1.2rem;
    color: #3b82f6;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        padding: 15px 5%;
        border-bottom: none;
        background: rgba(2, 6, 23, 0.9);
        position: relative;
        z-index: 1000005;
        /* Header needs to be accessible, but menu covers it */
    }

    /* Mobile Menu Button - Styled as Link */
    .mobile-menu-btn {
        display: block;
        padding: 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);

        position: relative;
        z-index: 200;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.95);
    }

    /* Hide the old overlay components on mobile since we use /menu now */
    .navbar,
    .nav-actions {
        display: none;
    }

    /* Links Styles */
    .navbar a {
        font-size: 1.5rem;
        /* Larger text */
        font-weight: 600;
        color: #94a3b8;
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: color 0.2s ease;
    }

    .navbar a:hover,
    .navbar a:active {
        color: white;
        background: transparent;
    }

    .nav-actions .btn-login-nav {
        width: 100%;
        text-align: center;
        padding: 18px;
        font-size: 1.2rem;
        background: #3b82f6;
        /* Solid Blue */
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

    /* Hero Responsive */
    .hero {
        padding: 140px 5% 80px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

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

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px;
    }
}

/* Founder Section */
.founder-section {
    padding: 100px 5%;
    background: linear-gradient(to right, #020617 40%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.founder-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
}

.founder-content h3 {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.founder-content p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.founder-image-container {
    position: relative;
    z-index: 1;
}

.founder-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    z-index: -1;
}

.founder-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    z-index: -1;
}

.founder-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
    /* In a real scenario, you'd want a transparent PNG cutout of the person */
}

.floating-stat {
    position: absolute;
    background: white;
    color: #0f172a;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.stat-1 {
    top: 10%;
    right: 0;
    animation-delay: 0s;
}

.stat-2 {
    top: 40%;
    left: -20px;
    animation-delay: 2s;
}

.stat-3 {
    bottom: 15%;
    right: 10%;
    animation-delay: 4s;
}

.floating-stat ion-icon {
    font-size: 1.8rem;
    color: #3b82f6;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 1024px) {
    .founder-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-image-container {
        margin-top: 60px;
    }

    .floating-stat {
        position: relative;
        display: inline-flex;
        margin: 10px;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
}

/* --- Global Animations & Scroll Effects --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Utility classes for Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1.2s ease-out;
    will-change: opacity;
}

.fade-in.visible {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Enhanced Hover Effects for Interactive Elements */
.btn-primary:active,
.btn-secondary:active,
.btn-login-nav:active {
    transform: scale(0.96);
}

/* Subtle pulse for critical CTAs */
@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.btn-primary.pulse {
    animation: softPulse 2s infinite;
}

/* Login Page Specific Styles */
.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s ease-out;
}

.back-btn {
    display: inline-flex;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: white;
}

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

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-container img {
    height: 48px;
    /* Adjust as needed based on actual logo */
}

.card-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(2, 6, 23, 0.8);
}

.btn-continue {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.35);
}

.error-msg,
.error {
    color: #ef4444;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 15px;
    display: none;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 8px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Extra Mobile Refinements */
@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .founder-content h2 {
        font-size: 2rem;
    }

    .footer-premium {
        padding-top: 40px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .card-header h1 {
        font-size: 1.5rem;
    }

    .login-card {
        padding: 25px;
    }
}