/* ===== CSS Variables & Reset ===== */
:root {
    --purple: #C77DFF;
    --purple-bright: #E040FB;
    --cyan: #4DD0E1;
    --cyan-bright: #7CF7E5;
    --accent: #9D4EDD;
    --bg-primary: #06080D;
    --bg-secondary: #0B0F14;
    --bg-card: #0F1419;
    --bg-card-hover: #151B22;
    --text-primary: #FFFFFF;
    --text-secondary: #8B9AAB;
    --text-muted: #5C6A7A;
    --border: rgba(157, 78, 221, 0.15);
    --border-hover: rgba(157, 78, 221, 0.35);
    --glow: rgba(157, 78, 221, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===== Grain Texture Overlay ===== */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.025;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(6, 8, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

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

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.logo-accent {
    background: linear-gradient(135deg, var(--purple) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--purple);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid var(--border-hover);
    background: transparent;
}

.btn-outline:hover {
    background: var(--glow);
    border-color: var(--purple);
    color: var(--purple);
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--accent) 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(77, 208, 225, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 2.5rem;
    max-width: 480px;
    line-height: 1.7;
}

/* ===== Store Buttons ===== */
.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.store-btn.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.store-btn.coming-soon:hover {
    transform: none;
    background: var(--bg-card);
    border-color: var(--border);
}

.store-btn svg {
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== Hero Visual ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.phone-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
}

/* ===== Features Section ===== */
.features {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-size: 1.125rem;
}

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

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

/* ===== CTA Section ===== */
.cta {
    padding: 6rem 4rem;
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(157, 78, 221, 0.3));
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta .store-buttons {
    justify-content: center;
}

/* ===== Footer ===== */
footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

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

/* ===== Support Page ===== */
.support-page {
    padding-top: 80px;
}

.support-hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
}

.support-hero p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-top: 1rem;
}

.support-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h2 {
    margin-bottom: 0.75rem;
}

.contact-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.response-time {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.faq-section h2 {
    margin-bottom: 2rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-item[open] {
    border-color: var(--purple);
    background: var(--bg-card-hover);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--purple);
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--purple);
    text-decoration: underline;
}

.still-need-help {
    text-align: center;
    padding: 4rem 2rem 6rem;
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
}

.still-need-help p {
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 7rem 2rem 4rem;
        gap: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .store-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-image {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

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

    .features {
        padding: 4rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 4rem 1.5rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .store-buttons {
        flex-direction: column;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    .phone-image {
        max-width: 280px;
    }
}
