/* ===================================
   OUTLINE KEYS LANDING PAGE
   Premium Dark Theme with Neon Green Accents
   =================================== */

/* === CSS RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --color-bg-primary: #0a0e1a;
    --color-bg-secondary: #111827;
    --color-bg-tertiary: #1a2332;
    
    /* Neon Accents - Green Theme */
    --color-accent-primary: #31b390; /* Neon Green */
    --color-accent-secondary: #093828; /* Dark Green */
    --color-accent-glow: #4dd4a8; /* Bright Green Glow */
    
    /* Text Colors */
    --color-text-primary: #f9fafb;
    --color-text-secondary: #d1d5db;
    --color-text-muted: #9ca3af;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #31b390 0%, #093828 100%);
    --gradient-glow: linear-gradient(135deg, #4dd4a8 0%, #31b390 50%, #093828 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    
    /* Effects */
    --shadow-glow: 0 0 40px rgba(49, 179, 144, 0.3);
    --shadow-glow-strong: 0 0 60px rgba(49, 179, 144, 0.5);
    --blur-glass: blur(12px);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(49, 179, 144, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(9, 56, 40, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text-primary);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-text-primary);
}

p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent-glow);
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.glass-card {
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(49, 179, 144, 0.2);
    border-radius: 1rem;
    padding: var(--spacing-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(49, 179, 144, 0.5);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-family: var(--font-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(49, 179, 144, 0.3);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent-primary);
    border: 2px solid var(--color-accent-primary);
}

.btn-outline:hover {
    background: var(--color-accent-primary);
    color: white;
}

/* === HEADER/NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(49, 179, 144, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-accent-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(49, 179, 144, 0.15) 0%, transparent 70%);
    transform: translateX(-50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(var(--shadow-glow));
}

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

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* === FEATURES SECTION === */
.features {
    background: var(--gradient-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-glow);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: var(--shadow-glow-strong); }
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
}

/* === HOW IT WORKS === */
.how-it-works {
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.step {
    position: relative;
    padding: var(--spacing-md);
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

/* === FAQ SECTION === */
.faq {
    background: var(--color-bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.faq-item {
    margin-bottom: var(--spacing-sm);
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(49, 179, 144, 0.2);
    color: var(--color-text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: rgba(26, 35, 50, 0.8);
    border-color: var(--color-accent-primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent-primary);
    transition: var(--transition-fast);
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(17, 24, 39, 0.6);
}

.faq-answer-content {
    padding: 1.5rem;
    color: var(--color-text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* === FOOTER === */
.footer {
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(49, 179, 144, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(49, 179, 144, 0.1);
    color: var(--color-text-muted);
}

/* === SCROLL ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 26, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-normal);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* === FIXED CTA BUTTON === */
.fixed-cta-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-glow-strong);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
    animation: pulseCTA 2s ease-in-out infinite;
}

.fixed-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 80px rgba(49, 179, 144, 0.6);
}

.fixed-cta-button::before {
    content: '🔑';
    font-size: 1.25rem;
}

@keyframes pulseCTA {
    0%, 100% {
        box-shadow: var(--shadow-glow-strong);
    }
    50% {
        box-shadow: 0 0 40px rgba(49, 179, 144, 0.8), var(--shadow-glow-strong);
    }
}

@media (max-width: 768px) {
    .fixed-cta-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-icon {
        width: 150px;
        height: 150px;
    }
    
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .fixed-cta-button {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        justify-content: center;
        padding: 1rem;
        font-size: 0.875rem;
    }
}
