/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
    /* Color Palette - Premium Dark Mode */
    --bg-color: #030014;
    /* Deep dark blue/black */
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);

    --primary-gradient: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
    --secondary-gradient: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Ambient Glows */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
    animation: floating 20s infinite ease-in-out;
}

body::before {
    background: #7F00FF;
    top: -100px;
    left: -100px;
}

body::after {
    background: #00C6FF;
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Navigation */
nav {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

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

.lang-selector {
    margin-right: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lang-selector a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
    padding: 0 0.3rem;
}

.lang-selector a:hover,
.lang-selector a.active {
    color: var(--text-primary);
}

.lang-selector span {
    opacity: 0.3;
}

.nav-links button {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.nav-links button.primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.nav-links button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

h1 span {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-large {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-glow {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(127, 0, 255, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-large:hover {
    transform: scale(1.05);
}

/* Features Glass Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

/* Auth Specific */
.auth-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}

.auth-card h2 {
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #7F00FF;
    background: rgba(255, 255, 255, 0.08);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.alert.error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

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

.icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Animations */
@keyframes floating {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

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

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

/* Promo Section */
.promo-section {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 0, 128, 0.1) 100%);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.promo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 165, 0, 0.1), transparent 60%);
    pointer-events: none;
}

.promo-content {
    flex: 1;
    z-index: 1;
}

.promo-brand {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #FFB700;
    /* Matching the gold tone of the gradient */
    text-shadow: 0 2px 10px rgba(255, 183, 0, 0.3);
}

.promo-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFB700 0%, #FF0080 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.app-store-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.app-icon-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FFB700 0%, #FF0080 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 20px 40px rgba(255, 0, 128, 0.3);
    z-index: 1;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .promo-section {
        flex-direction: column;
        text-align: center;
    }

    .promo-content p {
        margin-left: auto;
        margin-right: auto;
    }
}