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

:root {
    --bg-dark: #040508;
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    --brand-primary: #00e57e;
    --brand-secondary: #1a4dff;
    --glow-blue-bright: rgba(26, 77, 255, 0.6);
    --glow-blue-deep: rgba(10, 40, 200, 0.6);
    --glow-blue-light: rgba(80, 140, 255, 0.6);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --section-padding: 120px 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Seamless Dot Pattern Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Inline SVG dot pattern for zero-latency loading and perfect tiling */
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
    background-size: 32px 32px;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

/* Dark gradient fade over the pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Ambient Glows */
.glow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Reduced blur for stronger defined edges */
    opacity: 0.8;
    /* Higher base opacity */
    mix-blend-mode: screen;
    /* Add premium color blending */
    animation: pulse-glow 8s infinite alternate ease-in-out;
}

.glow-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26, 77, 255, 0.7) 0%, transparent 70%);
    /* Core brand blue */
    top: -100px;
    left: 5%;
}

.glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(80, 140, 255, 0.65) 0%, transparent 70%);
    /* Lighter electric blue */
    top: 200px;
    right: 0%;
    animation-delay: -3s;
}

.glow-3 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(10, 40, 200, 0.7) 0%, transparent 70%);
    /* Deep navy blue */
    top: -50px;
    left: 40%;
    animation-delay: -5s;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.1) translate(20px, 30px);
        opacity: 0.7;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    position: relative;
    z-index: 11;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
    z-index: 12;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(0, 229, 126, 0.1);
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 229, 126, 0.3);
    box-shadow: 0 0 20px rgba(0, 229, 126, 0.2);
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 48px;
    font-weight: 500;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #000;
    box-shadow: 0 8px 24px rgba(0, 229, 126, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 229, 126, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    background-color: #00ff8c;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* App Showcase / iPad Image Area */
.app-showcase {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid var(--card-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(10, 88, 245, 0.15);
    z-index: 13;
    backdrop-filter: blur(20px);
}

.ipad-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Features Section */
.features-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 15;
    text-align: center;
}

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

.section-header h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Alternating Feature Rows */
.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.feature-row {
    display: flex;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(4, 5, 8, 0.8) 100%);
    border: 1px solid var(--card-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(10, 88, 245, 0.05);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(10, 88, 245, 0.1);
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-image-placeholder {
    flex: 0 0 50%;
    width: 50%;
    background: rgba(255, 255, 255, 0.015);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.feature-row:nth-child(even) .feature-image-placeholder {
    border-right: 1px solid var(--card-border);
}

.feature-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.feature-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder-text {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.5;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(180deg, var(--brand-primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
}

.feature-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.5px;
}

.feature-content p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 15;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.faq-question {
    padding: 24px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: var(--brand-primary);
}

.faq-chevron {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-muted);
    transition: transform 0.35s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.faq-item.open .faq-question {
    color: var(--brand-primary);
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer-wrapper {
    max-height: 300px;
}

.faq-answer {
    padding: 0 32px 24px;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: justify;
}

/* Footer */
footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 900px;
    background: radial-gradient(ellipse at bottom center,
            rgba(26, 77, 255, 0.5) 0%,
            rgba(10, 40, 200, 0.4) 35%,
            rgba(80, 140, 255, 0.2) 60%,
            transparent 75%);
    filter: blur(60px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

footer {
    padding: 80px 0 40px;
    position: relative;
    z-index: 15;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    overflow: visible;
    /* Allows glow to bleed upward into FAQ */
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.footer-logo img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.copyright {
    color: rgba(139, 146, 165, 0.5);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
    }

    .feature-content {
        padding: 48px 32px;
    }

    .feature-image-placeholder {
        flex: none;
        width: 100%;
        min-height: 300px;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid var(--card-border);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .app-showcase {
        padding: 16px;
        border-radius: 24px;
    }

    .feature-content {
        padding: 32px 24px;
    }

    .nav-links {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* --- Pages Content Styles --- */
.content {
    margin-top: 40px;
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 900;
}

.content h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- Support Page Specific --- */
.content.support-content {
    text-align: center;
}

.content.support-content p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}