:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #a855f7;
    --accent: #f43f5e;
    --bg: #030712;
    --card-bg: rgba(17, 24, 39, 0.7);
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Gradient Background */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background: 
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(244, 63, 94, 0.1) 0%, transparent 50%);
    filter: blur(80px);
}

/* Shooting Stars Effect */
.shooting-star {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #fff, 0 0 40px #fff;
    z-index: -1;
    pointer-events: none;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(-90deg, #fff, transparent);
    transform-origin: right;
}

@keyframes shoot {
    0% {
        transform: rotate(45deg) translateX(-200px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateX(1500px);
        opacity: 0;
    }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav */
nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(3, 7, 18, 0.5);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

.btn-secondary {
    background: var(--glass);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Features Grid */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 100px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(30px);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
}

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

.feature-card p {
    color: var(--text-muted);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -1.5px; }
    .hero { padding: 120px 0 60px; }
    .hero p { font-size: 1rem; }
    
    nav .container {
        padding: 0 0.75rem;
    }

    .nav-right {
        gap: 0.5rem;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }

    /* Keep buttons horizontal and compact */
    nav .logo span {
        display: inline;
    }
    
    nav .nav-right {
        gap: 0.25rem;
    }

    nav .cta-group {
        display: flex;
        flex-wrap: nowrap !important;
        gap: 0.25rem;
    }
    
    nav .btn-secondary {
        display: flex !important; /* Restore but compact */
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 0;
        width: auto;
    }
    
    nav .btn-primary {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 0;
        width: auto;
        height: auto;
    }

    .lang-switch {
        padding: 2px;
        gap: 2px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 0.65rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding-bottom: 60px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }

    /* Legal Page Responsiveness */
    .legal-content {
        padding: 2rem !important;
        margin-top: 100px !important;
        margin-bottom: 60px !important;
        border-radius: 20px !important;
    }
    .legal-content h1 {
        font-size: 2.2rem !important;
    }
    .legal-content h2 {
        font-size: 1.5rem !important;
        margin: 2rem 0 0.75rem !important;
    }

    /* Sizing Utilities */
    .btn-fixed {
        width: 100% !important;
        max-width: 280px;
        height: 52px !important;
    }

    .profile-round {
        width: 180px;
        height: 180px;
        font-size: 4.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo span {
        display: none; /* Only show icon on very small screens if needed */
    }
    
    .lang-switch {
        gap: 2px;
    }

    /* Small Mobile Legal Content */
    .legal-content {
        padding: 1.25rem !important;
        margin-top: 80px !important;
        margin-bottom: 40px !important;
        border-radius: 16px !important;
    }
    .legal-content h1 {
        font-size: 1.75rem !important;
    }
    .legal-content h2 {
        font-size: 1.35rem !important;
        margin: 1.5rem 0 0.5rem !important;
    }
    .legal-content p, .legal-content li {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    .legal-content ul {
        margin-left: 1.2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.25rem;
    }

    .profile-round {
        width: 130px;
        height: 130px;
        font-size: 3.5rem;
        border-width: 4px;
    }
}

/* Language Switch */
.lang-switch {
    display: flex;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 4px;
    gap: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #fff;
    color: #000;
}

/* Disabled State */
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--glass);
    color: var(--text-muted);
    position: relative;
}

.coming-soon-badge {
    font-size: 0.75rem;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 0.5rem;
    display: inline-block;
    font-weight: 700;
}

/* Beta Link Section */
.beta-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.beta-section p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
}

.beta-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.beta-link:hover {
    text-decoration: underline;
}

/* Modal / Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 32px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
    .modal-content i {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
    .modal-content h2 {
        font-size: 1.5rem !important;
    }
    .modal-content p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    .modal-content div {
        font-size: 1rem !important;
        padding: 1rem !important;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Profile Circle */
.profile-round {
    width: 240px;
    height: 240px;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #fff;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border: 8px solid var(--glass-border);
    flex-shrink: 0;
}

/* Button Sizing Utility */
.btn-fixed {
    width: 240px; 
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    text-align: center;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* University/Company Logo Utility */
.logo-box {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
}
.logo-box img {
    max-width: 80%;
    max-height: 80%;
}
