:root {
    --bg: #000000;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --border: #2a2a2a;
    --accent: #ffffff;
    --accent-hover: #e0e0e0;
    --success: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 100;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.app-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: inline-block;
}

.logo-sep {
    color: var(--text-muted);
    opacity: 0.9;
    margin: 0 0.4rem;
    font-weight: 600;
}

.nav-cta {
    background: var(--text);
    color: var(--bg);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid var(--text);
}

.nav-cta:hover {
    background: var(--bg);
    color: var(--text);
}

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

.nav-account {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-account:hover,
.nav-account:focus {
    color: var(--text);
    background: none;
    border-color: rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1.25rem;
    transform: none;
}

.nav-account.has-session {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-account.has-session::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    margin-left: 0.45rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Themed link styles */
a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 2px;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

a:hover,
a:focus {
    color: var(--bg);
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    text-decoration: none;
    transform: translateY(-1px);
}

.contact-for-pilots a {
    display: inline-block;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    transition: all 0.18s ease;
}

.contact-for-pilots a:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    box-shadow: 0 8px 24px rgba(255,255,255,0.06);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--text);
    color: var(--bg);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.gradient-text {
    color: var(--text);
}

.subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
    
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary:hover {
    background: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

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

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 5rem;
    
}

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

.feature-card {
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0a0a0a;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--text), var(--text-muted));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.08);
    border-color: var(--text);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--bg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.7;
}

.preorder {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg) 0%, #0a0a0a 100%);
    position: relative;
}

.preorder-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.preorder-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.preorder-form {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #000000;
    color: var(--text);
}

.form-input:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-submit {
    width: 100%;
    padding: 1.25rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit:hover {
    background: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.success-message {
    display: none;
    background: var(--text);
    color: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

.success-message.show {
    display: block;
}

.footer {
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .features {
        padding: 4rem 1.5rem;
    }

    .preorder {
        padding: 4rem 1.5rem;
    }

    .preorder-form {
        padding: 2rem 1.5rem;
    }

    .cta-container {
        flex-direction: column;
    }

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