/* CSS Variables to match Aura OS Aesthetic */
:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);

    --primary-gradient-start: #3b82f6;
    --primary-gradient-end: #4f46e5;
    --primary-hover-start: #2563eb;
    --primary-hover-end: #4338ca;

    --icon-bg-start: #3b82f6;
    --icon-bg-end: #9333ea;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Typography Classes */
.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Utilities */
.glass {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button & Interactive Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    border: none;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
}

.btn-primary,
.primary {
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
}

.btn-primary:hover,
.primary:hover {
    background: linear-gradient(to right, var(--primary-hover-start), var(--primary-hover-end));
}

.btn-secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-ios {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.shadow-glow {
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.15);
}

.shadow-glow:hover {
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4), 0 10px 10px -5px rgba(59, 130, 246, 0.2);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-lift:active {
    transform: translateY(0) scale(0.98);
}

/* Background Glowing Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.2);
    /* Blue */
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(147, 51, 234, 0.15);
    /* Purple */
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.1);
    /* Pink */
}

/* ────────────────────────────────────────────────────────
   PAGE SECTIONS
   ──────────────────────────────────────────────────────── */
section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 50;
    transition: background-color 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}

.navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--icon-bg-start), var(--icon-bg-end));
}

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

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

.nav-link:hover {
    color: white;
}

/* Hero Section & Backgrounds */
.hero-section {
    text-align: center;
    min-height: 100vh;
    position: relative;
}

.hero-bg-container {
    position: absolute;
    top: -6rem;
    /* Account for padding */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    max-height: 800px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    animation: slowPulse 8s ease-in-out infinite alternate;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fade the bottom of the image into the black background */
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.8) 70%, rgba(5, 5, 5, 1) 100%);
}

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

    100% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 10;
    position: relative;
}

.icon-container {
    width: 6rem;
    height: 6rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.about-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: left;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

/* Features Showcase */
.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    align-items: center;
    margin-bottom: 8rem;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.feature-visual {
    height: 400px;
    border-radius: 2rem;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.image-feature {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-layout:hover .mockup-img {
    transform: scale(1.02) translateY(-5px);
}

/* Mock Visual Elements */
.stack-visual {
    align-items: flex-end;
    padding-bottom: 2rem;
}

.mock-dock {
    width: 80%;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
}

.dock-item {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
}

.dock-item.active {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
}

.mock-window {
    width: 80%;
    height: 250px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    position: absolute;
    top: 2rem;
    left: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.mock-window.offset {
    top: 6rem;
    left: 10rem;
    z-index: 5;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

.mock-header {
    height: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mock-dot.red {
    background: #ff5f56;
}

.mock-dot.yellow {
    background: #ffbd2e;
}

.mock-dot.green {
    background: #27c93f;
}

.mock-content {
    flex: 1;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.875rem;
}

/* Download/CTA Section */
.download-section {
    min-height: 80vh;
}

.cta-card {
    padding: 4rem 2rem;
    border-radius: 2rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.cta-card .subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.mb-8 {
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--card-border);
}

/* Viewport Animations (Intersection Observer) */
.observer-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.observer-target.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible .child:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children.visible .child:nth-child(2) {
    transition-delay: 0.3s;
}

.stagger-children.visible .child:nth-child(3) {
    transition-delay: 0.5s;
}

/* Responsive Adjustments */
/* Mobile Menu Toggle Button (Desktop Hidden) */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 2rem;
    height: 2rem;
}

/* Mobile Dropdown Menu (Default Hidden) */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1.5rem;
    align-items: center;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .feature-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-layout.right .feature-visual {
        grid-row: 2;
    }

    section {
        padding: 6rem 1rem 4rem;
        /* Adjusted for better mobile padding */
    }

    .hero-title {
        font-size: 2.5rem;
        /* Better scaling for small screens */
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        /* Hide default nav */
    }

    .mobile-menu-btn {
        display: flex;
        /* Show hamburger icon */
        align-items: center;
        justify-content: center;
    }

    .cta-card {
        padding: 2.5rem 1rem;
    }

    .btn {
        width: 100%;
    }

    .mockup-img {
        object-fit: contain;
    }
}

/* Retained iOS Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    max-width: 24rem;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0) scale(1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.hidden .modal-card {
    transform: translateY(20px) scale(0.95);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
}

.close-btn:hover {
    color: white;
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(to bottom right, #3b82f6, #8b5cf6);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step p strong {
    color: white;
    font-weight: 600;
}

.text-link {
    color: #60a5fa;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.modal-note {
    text-align: center;
    color: #8b5cf6;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(139, 92, 246, 0.1);
    padding: 0.75rem;
    border-radius: 0.75rem;
}