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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --text: #e8e8ed;
    --text-secondary: #8888a0;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --gradient: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    --radius: 16px;
    --radius-sm: 10px;
    --nav-height: 72px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-logo img {
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--gradient);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    gap: 80px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    margin-bottom: 24px;
}

.btn-appstore {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-appstore:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.5;
}

.hero-phone {
    flex-shrink: 0;
}

/* === Phone Frame === */
.phone-frame {
    width: 280px;
    border-radius: 40px;
    overflow: hidden;
    background: #1a1a28;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.08),
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px var(--accent-glow);
    flex-shrink: 0;
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Sections === */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* === Features === */
.features {
    background: linear-gradient(180deg, var(--bg) 0%, #0d0d14 100%);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === Screenshots === */
.screenshots {
    background: #0d0d14;
    overflow: hidden;
}

.screenshots-scroll {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 calc((100vw - 1200px) / 2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshots-scroll .phone-frame {
    scroll-snap-align: center;
    width: 260px;
    min-width: 260px;
}

/* === Assistant === */
.assistant {
    background: linear-gradient(180deg, #0d0d14 0%, var(--bg) 100%);
    position: relative;
}

.assistant-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.assistant-text {
    flex: 1;
}

.assistant-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.assistant-text > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.assistant-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.assistant-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.assistant-visual {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.assistant-phone {
    width: 300px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.08),
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(99, 102, 241, 0.25),
        0 0 120px rgba(168, 85, 247, 0.1);
}

/* === Conversation Bubbles === */
.assistant-conversation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.convo-bubble {
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.convo-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    opacity: 0.6;
}

.convo-user {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.convo-assistant {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #c4c8f0;
}

/* === Animated Orb (kept for fallback) === */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes ring-expand {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.1); }
}

.orb-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* === CTA === */
.cta {
    background: var(--bg);
    position: relative;
}

.cta-content {
    text-align: center;
    padding: 80px 0;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

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

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    position: relative;
}

.btn-appstore-lg {
    position: relative;
}

/* === Footer === */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.footer-brand img {
    border-radius: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* === Responsive === */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 48px;
        padding: 60px 24px;
    }

    .hero-subtitle { margin: 0 auto 36px; }
    .hero-meta { justify-content: center; }
    .hero-actions { display: flex; justify-content: center; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .assistant-content {
        flex-direction: column;
        text-align: center;
    }

    .assistant-features li {
        justify-content: center;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-inner {
        padding: 80px 16px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .phone-frame {
        width: 240px;
        border-radius: 32px;
    }

    .screenshots-scroll {
        padding: 0 16px;
        gap: 20px;
    }

    .screenshots-scroll .phone-frame {
        width: 220px;
        min-width: 220px;
    }
}

/* === Legal Pages === */
.legal { max-width: 800px; margin: 0 auto; padding: 120px 24px 80px; }
.legal h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal .legal-date { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 48px; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin-top: 24px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; }
.legal a { color: #a5b4fc; text-decoration: underline; }
.legal-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 16px 0;
}
.legal-card p { margin-bottom: 4px; }
.legal strong { font-weight: 600; color: var(--text); }
