/* ============================================
   SpirAI Landing Page — Cosmic Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #050510;
    --bg-mid: #0a0a1a;
    --bg-card: #0f0f25;
    --border: rgba(100, 100, 200, 0.15);
    --cyan: #00e5ff;
    --cyan-dim: rgba(0, 229, 255, 0.15);
    --purple: #b388ff;
    --purple-dim: rgba(179, 136, 255, 0.15);
    --gold: #ffd700;
    --text: #e8e8f8;
    --text2: #9898b8;
    --text3: #686888;
    --gradient-cyan: linear-gradient(135deg, #00e5ff, #00bcd4);
    --gradient-purple: linear-gradient(135deg, #b388ff, #7c4dff);
    --gradient-hero: linear-gradient(180deg, #050510 0%, #0d0d2b 50%, #050510 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- STARFIELD BACKGROUND ---- */
.starfield {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 85%, rgba(0,229,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 15%, rgba(179,136,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 45%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 65%, rgba(255,255,255,0.3) 0%, transparent 100%);
}

/* ---- NAVIGATION ---- */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
nav .container {
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 800;
    background: var(--gradient-cyan);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--gradient-hero);
}
.hero::before {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
    display: inline-block;
    background: var(--cyan-dim); border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--cyan); font-size: 13px; font-weight: 600;
    padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 span {
    background: var(--gradient-cyan);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px; color: var(--text2); line-height: 1.7;
    margin-bottom: 36px; max-width: 550px; margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--gradient-cyan); color: #000;
    font-weight: 700; font-size: 16px; padding: 14px 32px;
    border-radius: 12px; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 229, 255, 0.35); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--text);
    font-weight: 600; font-size: 16px; padding: 14px 32px;
    border: 1px solid var(--border); border-radius: 12px;
    text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); }
.hero-mockup {
    margin-top: 60px;
    position: relative;
}
.phone-frame {
    width: 280px; height: 560px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 36px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 229, 255, 0.06);
}
.phone-screen {
    padding: 20px;
    text-align: center;
}
.phone-screen .app-icon { font-size: 64px; margin-bottom: 12px; }
.phone-screen .app-name {
    font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 800;
    background: var(--gradient-cyan);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.phone-screen .app-tagline { color: var(--text2); font-size: 13px; margin-top: 8px; }
.phone-notch {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 24px; background: var(--bg-dark);
    border-radius: 12px;
}

/* ---- FEATURES ---- */
.features {
    padding: 100px 0;
    position: relative; z-index: 1;
}
.section-header {
    text-align: center; margin-bottom: 60px;
}
.section-label {
    color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 16px;
}
.section-subtitle {
    color: var(--text2); font-size: 16px; max-width: 500px; margin: 0 auto;
}
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.06);
}
.feature-icon {
    font-size: 36px; margin-bottom: 16px;
    display: inline-block;
}
.feature-card h3 {
    font-size: 18px; font-weight: 600; margin-bottom: 8px;
}
.feature-card p {
    color: var(--text2); font-size: 14px; line-height: 1.6;
}

/* ---- SCREENSHOTS ---- */
.screenshots {
    padding: 80px 0;
    position: relative; z-index: 1;
}
.screenshots-carousel {
    display: flex; gap: 24px; overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.screenshots-carousel::-webkit-scrollbar { height: 4px; }
.screenshots-carousel::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 4px; }
.screenshots-carousel::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 4px; }
.screenshot-item {
    min-width: 250px; height: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 24px;
    transition: all 0.3s;
}
.screenshot-item:hover { border-color: rgba(0, 229, 255, 0.3); }
.screenshot-item .screen-icon { font-size: 48px; margin-bottom: 16px; }
.screenshot-item .screen-label { color: var(--text2); font-size: 14px; font-weight: 500; }

/* ---- PRICING ---- */
.pricing {
    padding: 100px 0;
    position: relative; z-index: 1;
}
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px; max-width: 750px; margin: 0 auto;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    transition: all 0.3s;
}
.pricing-card.featured {
    border-color: var(--cyan);
    position: relative;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.08);
}
.pricing-card.featured::before {
    content: '⭐ Recommended';
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-cyan); color: #000;
    font-size: 12px; font-weight: 700; padding: 4px 16px;
    border-radius: 10px;
}
.pricing-card h3 { font-size: 22px; margin-bottom: 8px; }
.pricing-price {
    font-size: 40px; font-weight: 800; margin: 16px 0 8px;
    font-family: 'Outfit', sans-serif;
}
.pricing-price span { font-size: 16px; color: var(--text2); font-weight: 400; }
.pricing-card.featured .pricing-price {
    background: var(--gradient-cyan);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-desc { color: var(--text2); font-size: 14px; margin-bottom: 24px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-features li {
    padding: 8px 0;
    color: var(--text2); font-size: 14px;
    border-bottom: 1px solid rgba(100, 100, 200, 0.08);
    display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before { content: '✓'; color: var(--cyan); font-weight: bold; }
.pricing-features li.disabled { opacity: 0.4; }
.pricing-features li.disabled::before { content: '✗'; color: var(--text3); }
.pricing-btn {
    display: block; width: 100%; padding: 14px;
    border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.2s; text-decoration: none; text-align: center;
}
.pricing-btn.primary {
    background: var(--gradient-cyan); color: #000;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
}
.pricing-btn.primary:hover { transform: translateY(-2px); }
.pricing-btn.secondary {
    background: rgba(255, 255, 255, 0.05); color: var(--text);
    border: 1px solid var(--border);
}
.pricing-btn.secondary:hover { border-color: var(--cyan); }

/* ---- TESTIMONIALS ---- */
.testimonials {
    padding: 80px 0;
    position: relative; z-index: 1;
}
.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}
.testimonial-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.testimonial-text {
    color: var(--text2); font-size: 15px; line-height: 1.7;
    margin-bottom: 20px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 40px; height: 40px;
    background: var(--purple-dim);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-role { color: var(--text3); font-size: 12px; }

/* ---- FOOTER ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    position: relative; z-index: 1;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand .nav-logo { font-size: 28px; }
.footer-brand p { color: var(--text2); font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer-col h4 {
    color: var(--text); font-size: 14px; font-weight: 600;
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-col a {
    display: block; color: var(--text2); text-decoration: none;
    font-size: 14px; padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text3); font-size: 13px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    color: var(--text2); font-size: 18px; text-decoration: none;
    transition: color 0.2s;
}
.footer-social a:hover { color: var(--cyan); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 100px 24px 60px; }
    .hero h1 { font-size: 36px; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .phone-frame { width: 220px; height: 440px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- ANIMATIONS ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.phone-frame { animation: float 4s ease-in-out infinite; }

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 229, 255, 0.2); }
}
.pricing-card.featured { animation: glow-pulse 3s ease-in-out infinite; }
