/* 
 * Flight Agent - Premium Design System
 * Focus: Dark mode, Aero-inspired aesthetics, High legibility
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Color Palette - HSL for harmony */
    --primary-h: 210;
    --primary-s: 100%;
    --primary-l: 50%;
    
    --bg-dark: hsl(220, 20%, 5%);
    --bg-card: hsl(220, 20%, 10%);
    --text-main: hsl(220, 10%, 95%);
    --text-muted: hsl(220, 10%, 70%);
    --accent: hsl(var(--primary-h), 100%, 50%);
    --accent-glow: hsla(var(--primary-h), 100%, 50%, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 8rem;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-m);
}

.section {
    padding: var(--space-xl) 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-s) 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    gap: var(--space-m);
    list-style: none;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-s);
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-m);
}

.btn-group {
    display: flex;
    gap: var(--space-s);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

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

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-m);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--space-m);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--space-s);
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

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

/* Installation Section */
.install-section {
    background: var(--bg-card);
    border-radius: 24px;
    padding: var(--space-l);
    margin: var(--space-xl) 0;
}

.code-container {
    background: #0d0f14;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
}

.code-container code {
    font-family: 'Fira Code', monospace;
    color: #61afef;
    display: block;
    word-break: break-all;
}

.copy-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.1);
}

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

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

/* Footer */
footer {
    padding: var(--space-l) 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}
