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

:root {
    --bg-dark: hsl(230, 35%, 7%);
    --bg-card: hsla(230, 35%, 12%, 0.6);
    --bg-card-hover: hsla(230, 35%, 18%, 0.8);
    --border-color: hsla(230, 35%, 20%, 0.5);
    
    --primary: hsl(263, 90%, 65%);
    --primary-glow: hsla(263, 90%, 65%, 0.35);
    --secondary: hsl(217, 90%, 60%);
    --secondary-glow: hsla(217, 90%, 60%, 0.35);
    --accent: hsl(320, 90%, 60%);
    
    --text-primary: hsl(220, 20%, 97%);
    --text-secondary: hsl(220, 15%, 75%);
    --text-muted: hsl(220, 10%, 55%);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background Gradients */
.bg-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.8;
}

.bg-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.7;
}

/* Typography & Layout */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 13, 25, 0.7);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-link img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px var(--primary-glow);
}

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

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

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

/* Hero Section */
.hero {
    padding: 180px 0 100px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-tagline {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: hsla(263, 90%, 65%, 0.15);
    border: 1px solid hsla(263, 90%, 65%, 0.3);
    color: hsl(263, 90%, 75%);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.store-badges {
    display: flex;
    gap: 1rem;
}

.store-badge img {
    height: 44px;
    transition: var(--transition-fast);
}

.store-badge:hover img {
    transform: scale(1.05);
}

/* Mockup / Phone Simulator */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-container {
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 40px;
    border: 8px solid hsl(230, 20%, 20%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px var(--primary-glow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: hsl(230, 35%, 8%);
    padding: 1rem;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.phone-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.phone-status {
    flex: 1;
}

.phone-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.phone-online {
    font-size: 0.7rem;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.phone-online::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

.phone-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    font-size: 0.82rem;
    padding-right: 0.25rem;
}

.chat-bubble {
    padding: 0.6rem 0.9rem;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chat-bubble.bot {
    background: var(--bg-card);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.chat-bubble.user {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.phone-input-bar {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.phone-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.75rem;
    outline: none;
}

.phone-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: hsla(263, 90%, 65%, 0.1);
    border: 1px solid hsla(263, 90%, 65%, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Interactive Story Simulator Selector */
.story-selector-sec {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 40, 0.4) 50%, transparent 100%);
}

.story-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.story-option-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.story-option-btn.active {
    border-color: var(--primary);
    background: hsla(263, 90%, 65%, 0.08);
    box-shadow: 0 0 20px var(--primary-glow);
}

.story-option-btn:hover:not(.active) {
    background: var(--bg-card-hover);
    border-color: hsla(263, 90%, 65%, 0.4);
}

.story-icon {
    font-size: 2rem;
}

.story-details h4 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.story-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Accordion FAQ */
.faq {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-toggle-icon {
    transition: var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Legal Pages Styling */
.legal-content {
    padding: 180px 0 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legal-last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.legal-body h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem 0;
    color: var(--text-primary);
}

.legal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.legal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.legal-body li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    background: rgba(11, 13, 25, 0.9);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .store-badges {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .story-selector-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .phone-container {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* simple mobile nav approach */
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}
