:root {
    --primary: #EF4444;
    --primary-grad-start: #F9633F;
    --primary-grad-end: #E54A32;
    --ai-grad-start: #6366f1;
    --ai-grad-end: #8b5cf6;
    --bg-dark: #0A0F14;
    --bg-card: rgba(26, 30, 38, 0.6);
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 60ch;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-ai {
    background: linear-gradient(135deg, var(--ai-grad-start), var(--ai-grad-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Coming Soon Banner */
.coming-soon-banner {
    background: linear-gradient(90deg, var(--primary-grad-start), var(--primary-grad-end));
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.navbar {
    top: 2rem;
    /* Move down for banner */
}


/* Buttons */
.btn-primary,
.btn-secondary,
.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-primary.small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    justify-self: center;
}

.cta-group .btn-primary {
    margin-top: 20px;
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    pointer-events: none;
    z-index: 1;
}

.glow-circle {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, rgba(10, 15, 20, 0) 70%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.hero-logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    cursor: default;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.3));
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.hero-logo-wrapper:hover .hero-logo {
    animation: heartbeat 3s infinite;
}

.logo-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.logo-waves span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, transparent 70%);
    opacity: 0;
}

.hero-logo-wrapper:hover .logo-waves span {
    animation: ripple 2s infinite linear;
}

.hero-logo-wrapper:hover .logo-waves span:nth-child(2) {
    animation-delay: 1s;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.02);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.02);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }

    100% {
        width: 150%;
        height: 150%;
        opacity: 0;
    }
}

/* Features */
.features,
.showcase,
.cta-section {
    padding: 8rem 2rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    z-index: 10;
    position: relative;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    mix-blend-mode: overlay;
}



.feature-card:hover .card-bg-image {
    opacity: 0.2;
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.05);
}

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

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

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

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    z-index: 2;
    position: relative;
}

.feature-card h3,
.feature-card p,
.feature-tags {
    position: relative;
    z-index: 2;
}

.feature-card:hover .icon-box {
    transform: scale(1.2) rotate(5deg);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.feature-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-tags span {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.1);
    color: #F9FAFB;
}

/* AI Section */
.ai-section {
    padding: 8rem 2rem;
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(99, 102, 241, 0.05) 50%, var(--bg-dark) 100%);
    overflow: hidden;
}

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

.badge-new {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-features {
    list-style: none;
    margin-top: 2rem;
}

.ai-features li {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.ai-features .check {
    font-size: 1.5rem;
    margin-top: -0.25rem;
    background: rgba(255, 255, 255, 0.05);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.ai-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-pulse {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(10, 15, 20, 0) 70%);
    border-radius: 50%;
    position: absolute;
    animation: brainPulse 3s infinite ease-in-out;
}

.brain-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.4) 100%);
    border-radius: 50%;
    filter: blur(20px);
    animation: brainCore 4s infinite alternate;
}

.floating-stat {
    position: absolute;
    background: rgba(26, 30, 38, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.stat-1 {
    top: 20%;
    right: 10%;
    animation: float 6s infinite ease-in-out;
}

.stat-2 {
    bottom: 20%;
    right: 20%;
    animation: float 5s infinite ease-in-out 0.5s;
}

.stat-3 {
    top: 30%;
    left: 10%;
    animation: float 4s infinite ease-in-out 0.2s;
}

.stat-4 {
    top: 15%;
    left: 15%;
    animation: float 7s infinite ease-in-out 1s;
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.stat-5 {
    bottom: 30%;
    right: 5%;
    animation: float 5.5s infinite ease-in-out 0.2s;
    border-color: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.stat-6 {
    top: 40%;
    left: 5%;
    animation: float 6.5s infinite ease-in-out 0.8s;
    border-color: rgba(59, 130, 246, 0.3);
    color: #3B82F6;
}

.stat-2 {
    bottom: 25%;
    left: 0%;
    animation: float 7s infinite ease-in-out 1s;
}

.stat-3 {
    top: 60%;
    right: -5%;
    animation: float 5s infinite ease-in-out 0.5s;
    color: #10B981;
}

/* Showcase */
.showcase-content {
    background: linear-gradient(to right, rgba(26, 30, 38, 0.8), rgba(26, 30, 38, 0));
    padding: 3rem;
    border-radius: 24px;
    border-left: 4px solid var(--primary);
}

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

.feature-list li {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* CTA & Download */
.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.store-btn {
    background: #1A1E26;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: flex;
    /* Ensure display flex */
    flex-direction: column;
    align-items: flex-start;
    min-width: 160px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.store-btn.pending {
    opacity: 0.6;
    cursor: default;
    filter: grayscale(1);
}

.store-btn:not(.pending):hover {
    background: #2D3748;
    transform: translateY(-2px);
}

.pending-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

/* Animations */
@keyframes animatedGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
    z-index: 0;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

@keyframes brainPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes brainCore {
    0% {
        filter: blur(20px);
        opacity: 0.8;
    }

    100% {
        filter: blur(10px);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 20, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.modal p {
    margin: 0 auto 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 99px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.modal-form input:focus {
    border-color: var(--primary);
}

.form-spacer {
    height: 0.5rem;
}

.field-error {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    padding-left: 1.5rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    display: none;
}

.field-error.active {
    display: block;
}

.form-message {
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-message.success {
    color: #10B981;
}

.form-message.error {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero-visual {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ai-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ai-visual {
        height: 300px;
    }

    .floating-stat {
        transform: scale(0.8);
    }
}