/* 
* Theme Base Styles
*/
:root {
    --bg-dark: #030407; /* Deeper dark background */
    --bg-card: rgba(255, 255, 255, 0.02);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #8b5cf6; /* Violet */
    --accent-3: #ec4899; /* Pink */
    --glow-color: rgba(139, 92, 246, 0.4);
    
    --font-heading: 'Outfit', 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

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

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

.w-100 {
    width: 100%;
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.radius-lg {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 20px var(--glow-color);
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(236, 72, 153, 0.6);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Top Sections Padding */
section {
    padding: 6rem 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 2.5rem;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 10%;
    left: 40%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, var(--accent-3) 0%, transparent 50%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(80px);
    animation: drift 20s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(-100px, 100px) scale(1.2); }
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

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

.store-btn {
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
}
.store-btn:hover {
    transform: translateY(-2px);
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -10px;
}

.avatars img:first-child {
    margin-left: 0;
}

.social-proof p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.masonry-grid:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.masonry-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.masonry-col:nth-child(2) {
    margin-top: 40px;
}

.masonry-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.masonry-img:hover {
    transform: scale(1.05);
    border-color: var(--accent-2);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
    z-index: 10;
}

.floating-element {
    position: absolute;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--accent-1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

.pos-1 {
    top: 5%;
    right: -20px;
}

.pos-2 {
    bottom: 10%;
    left: -20px;
    border-color: var(--accent-3);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    animation-delay: -3s;
}

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

/* Demo Section */
.demo-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.demo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-input-group label, .demo-style label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.demo-textarea {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    min-height: 100px;
    color: #fff;
    width: 100%;
    resize: vertical;
    font-family: inherit;
}
.demo-textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.demo-textarea[readonly] {
    cursor: default;
    background: rgba(0,0,0,0.1);
    border-color: var(--border-glass);
    color: var(--text-muted);
}

.demo-tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    padding: 5px;
    background: rgba(0,0,0,0.3);
    border-radius: 50px;
    border: 1px solid var(--border-glass);
}

.demo-tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.demo-tab:hover {
    color: #fff;
}

.demo-tab.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.loader-spinner {
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    animation: spin 0.8s linear infinite;
}

.prompt-tags-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prompt-tag {
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.prompt-tag:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: var(--accent-2);
}

.prompt-tag.active {
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
    border-color: var(--accent-1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.demo-options {
    display: flex;
    gap: 10px;
}

.option-pill {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--border-glass);
}

.option-pill.active {
    background: var(--accent-1);
    border-color: var(--accent-1);
}

.demo-style select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: #fff;
    appearance: none;
}

.demo-output {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(0,0,0,0.4);
    border: 1px dashed var(--border-glass);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-state, .loading-state {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.4s ease;
}

.empty-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.example-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.prompt-pill {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.prompt-pill:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: var(--accent-2);
}

.ai-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--accent-1);
    border-left-color: var(--accent-2);
    animation: spin 1s infinite cubic-bezier(0.55, 0.15, 0.45, 0.85);
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.result-state {
    position: relative;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.6s ease;
}

.demo-result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action:hover {
    background: var(--accent-1);
    transform: translateY(-2px);
}

/* Base Spin Keyframe (already active for generic buttons) */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* How It Works */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.step-line {
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    z-index: 0;
}

@media (max-width: 768px) {
    .step-line { display: none; }
}

.step-box {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: var(--accent-1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
}

/* Screenshots Region */
.screenshot-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.screen-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    height: 450px;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(0.9);
    transition: var(--transition);
}

.center-screen {
    opacity: 1;
    transform: scale(1.05);
    z-index: 10;
    border: 4px solid #1f2229;
}

.screenshot-gallery:hover .screen-img {
    opacity: 0.8;
}

.screenshot-gallery:hover .center-screen {
    opacity: 1;
}

/* Use Cases */
.use-cases-flex {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.use-cases-content {
    flex: 1;
}

.use-cases-visual {
    flex: 1;
    position: relative;
}

.use-cases-list {
    margin-top: 2rem;
    list-style: none;
}

.use-cases-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.use-cases-list li svg {
    color: var(--accent-3);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

.use-cases-list li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.use-cases-list li span {
    color: var(--text-muted);
}

.glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    opacity: 0.3;
    z-index: -1;
    filter: blur(50px);
}

/* CTA Section */
.cta-box {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    z-index: 0;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 3rem;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rating-strip {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-glass);
    padding: 6rem 0 0;
    background: rgba(0,0,0,0.3);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.brand-col .logo {
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
}

.social-links a:hover {
    color: #fff;
}

.links-col h4, .contact-col h4 {
    margin-bottom: 1.5rem;
}

.links-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 0.8rem;
}

.links-col ul li a {
    color: var(--text-muted);
}

.links-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.email-link {
    display: block;
    color: var(--accent-1);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-top {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease-out;
}

.reveal-top.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .use-cases-flex {
        flex-direction: column;
    }
    .screenshot-gallery {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 2rem;
        flex-direction: column;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .main-nav ul.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .get-app-btn {
        display: none;
    }

    .hero-container, .demo-container, .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .social-proof {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .screen-img {
        height: 350px;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
}
