/* ============================================
   Native Tavern - Landing Page Styles
   Inspired by tavoai.dev design
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(239, 237, 253, 0.6);
    --text-muted: rgba(239, 237, 253, 0.4);
    
    --gradient-start: #A06AF9;
    --gradient-end: #F9946A;
    --gradient-purple: linear-gradient(135deg, #A06AF9 0%, #7C3AED 100%);
    --gradient-main: linear-gradient(135deg, #A06AF9 0%, #F9946A 100%);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(160, 106, 249, 0.3);
    
    /* Spacing */
    --header-height: 80px;
    --section-padding: 120px;
    --container-max-width: 1200px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.language-selector:hover {
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--glow-color) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.5;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation: float 15s ease-in-out infinite;
}

.hero::after {
    background: radial-gradient(ellipse, rgba(249, 148, 106, 0.15) 0%, transparent 70%);
    bottom: 10%;
    right: -10%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--header-height) 24px 48px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
    padding: var(--section-padding) 0;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.section-description {
    max-width: 640px;
    margin: 0 auto 48px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-normal);
}

.download-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.download-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-btn-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.download-btn-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ============================================
   Models Section
   ============================================ */
.models-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.models-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(160, 106, 249, 0.1) 0%, transparent 70%);
    top: 50%;
    left: -20%;
    transform: translateY(-50%);
    pointer-events: none;
}

.models-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.models-text {
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.section-title-left {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-description-left {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.models-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.model-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    animation: fadeInRight 0.6s ease forwards;
    animation-delay: var(--delay);
    opacity: 0;
    transform: translateX(30px);
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.model-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(160, 106, 249, 0.1);
}

.model-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-icon.openrouter {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.model-icon.gemini {
    background: linear-gradient(135deg, #8B5CF6 0%, #4F46E5 100%);
}

.model-icon.deepseek {
    background: linear-gradient(135deg, #6366F1 0%, #4338CA 100%);
}

.model-icon.openai {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.model-info {
    display: flex;
    flex-direction: column;
}

.model-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.model-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: var(--section-padding) 0;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-block.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.feature-block.reverse .feature-content {
    order: 2;
}

.feature-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.feature-label.purple {
    color: #A06AF9;
}

.feature-label.blue {
    color: #60A5FA;
}

.feature-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Code Editor */
.code-editor {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.code-tabs {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.code-tab {
    display: flex;
    gap: 6px;
}

.tab-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tab-dot.red { background: #FF5F56; }
.tab-dot.yellow { background: #FFBD2E; }
.tab-dot.green { background: #27C93F; }

.code-tab-items {
    display: flex;
    gap: 4px;
}

.tab-item {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-item.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.code-content {
    padding: 20px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content code {
    display: block;
}

.line-number {
    color: var(--text-muted);
    margin-right: 20px;
    user-select: none;
}

.bracket { color: #E2E8F0; }
.key { color: #A78BFA; }
.string { color: #34D399; }
.boolean { color: #F472B6; }

/* Phone Mockups */
.phone-mockups {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 220px;
    height: 450px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 40px;
    padding: 12px;
    position: absolute;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transition: var(--transition-normal);
}

.phone-mockup.left {
    transform: rotate(-5deg) translateX(-80px);
}

.phone-mockup.right {
    transform: rotate(5deg) translateX(80px);
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
}

.phone-screen.theme-dark {
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
}

.phone-screen.theme-light {
    background: linear-gradient(180deg, #065f46 0%, #047857 50%, #065f46 100%);
}

.floating-bubbles {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.bubble {
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    border-radius: 50%;
    position: absolute;
    left: var(--x);
    top: var(--y);
    animation: floatBubble 3s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.8;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 60px;
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
}

.avatar-1 {
    background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%);
}

.avatar-2 {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}

.avatar-3 {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
}

.testimonial-name {
    font-size: 16px;
    font-weight: 600;
}

.stars {
    color: #F59E0B;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--section-padding) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, var(--glow-color) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.3;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .models-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .feature-block,
    .feature-block.reverse {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .feature-block.reverse .feature-content {
        order: 0;
    }
    
    .feature-content {
        text-align: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --header-height: 70px;
    }
    
    .header {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .language-selector {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .phone-mockups {
        height: 400px;
    }
    
    .phone-mockup {
        width: 160px;
        height: 340px;
    }
    
    .phone-mockup.left {
        transform: rotate(-5deg) translateX(-50px);
    }
    
    .phone-mockup.right {
        transform: rotate(5deg) translateX(50px);
    }
    
    .floating-bubbles {
        display: none;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .feature-title {
        font-size: 28px;
    }
    
    .code-editor {
        font-size: 11px;
    }
    
    .code-content {
        padding: 16px;
    }
}

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

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