:root {
    --primary: #0a0e17;
    --secondary: #00d2ff;
    --accent: #3a7bd5;
    --text: #ffffff;
    --text-muted: #a0aec0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Sections */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Header & Auth */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 23, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

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

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

.logo-small {
    height: 48px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
    filter: brightness(1.1);
}

/* Hero Content */
.hero-tag {
    background: rgba(0, 210, 255, 0.1);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    display: inline-block;
    border: 1px solid rgba(0, 210, 255, 0.2);
    animation: fadeInUp 0.8s ease backwards;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-group {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
}

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

/* Services / Features Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 24px;
}

/* Showcase Section (Images) */
.showcase-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.showcase-row:nth-child(even) {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-image {
    flex: 1.2;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    background: #000;
}

.showcase-image img {
    width: 100%;
    display: block;
    mix-blend-mode: screen;
    /* Blend black backgrounds of AI images */
    opacity: 0.9;
}

/* Portal/Platform Hub */
.platform-hub {
    background: radial-gradient(circle at top, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
    border-top: 1px solid var(--glass-border);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portal-link {
    background: var(--glass);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.portal-link:hover {
    border-color: var(--secondary);
    background: rgba(0, 210, 255, 0.05);
}

.portal-link i {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
    color: var(--secondary);
}

/* Auth Pill (Header) */
.user-pill {
    background: var(--glass);
    padding: 4px 4px 4px 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-pill img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.btn-signout {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 968px) {
    .showcase-row {
        flex-direction: column !important;
        text-align: center;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 20px;
    }

    .nav-links {
        display: none;
        /* Hide nav links on mobile for simplicity */
    }
}

/* Auth Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal {
    background: #0d121d;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
}

.auth-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
    background: rgba(0, 210, 255, 0.05);
}

.auth-content {
    padding: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
    min-height: 1.2rem;
}