:root {
    /* Color Palette */
    --primary-color: #4361EE; /* Vibrant Blue */
    --primary-gradient: linear-gradient(135deg, #4361EE 0%, #4CC9F0 100%);
    --secondary-color: #3F37C9;
    --background-color: #0D1B2A; /* Deep Navy from app icon */
    --surface-color: #1B263B;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E1DD;
    --accent-color: #4CC9F0; /* Cyan */
    --glass-background: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Layout & Spacing */
    --container-width: 1400px;
    --section-spacing: 120px;
    --border-radius: 16px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

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

/* Base Styles */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.glass {
    background: var(--glass-background);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-gradient);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-slide-up {
    animation: fadeInUp 0.8s forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1s forwards;
}

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

header.scrolled {
    background: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

#nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

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

.nav-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.nav-menu-toggle svg {
    width: 32px;
    height: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

.nav-links .btn:hover {
    color: white;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: var(--section-spacing);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
    overflow: visible;
}

.hero-text h1 {
    font-size: clamp(2.25rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-text h1 span {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: min(300px, 85vw);
    height: auto;
    aspect-ratio: 1 / 2;
    border: 8px solid #333;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    z-index: 2;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.4) 0%, rgba(13, 27, 42, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background: var(--glass-background);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Features Section */
.features-section {
    padding-bottom: var(--section-spacing);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 24px;
    line-height: 1.2;
}

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

.section-header span {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.feature-card {
    padding: 48px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0) var(--y, 0), rgba(67, 97, 238, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(67, 97, 238, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    position: relative;
    z-index: 1;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: white;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Previews Section */
.previews-section {
    padding-bottom: var(--section-spacing);
}

.previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.preview-item {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.preview-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.preview-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.preview-item:hover img {
    filter: brightness(1.2);
}


/* CTA Section */
.cta-section {
    padding-bottom: var(--section-spacing);
}

.cta-section .container {
    padding: 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15) 0%, rgba(13, 27, 42, 0.95) 100%);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.cta-section .container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    z-index: 0;
}

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

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.meta-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Footer Styles */
.footer {
    background: rgba(13, 27, 42, 0.95);
    padding: 60px 0 40px;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-brand .logo span {
    font-size: 1.25rem;
}

.footer-brand p {
    margin: 24px 0;
    color: var(--text-secondary);
    max-width: 340px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--glass-background);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.social-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    color: white;
}

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

.social-icon:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
    border-color: var(--accent-color);
}

.footer-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-links h4, .footer-newsletter h4 {
    margin-bottom: 24px;
    font-size: 1.125rem;
    font-weight: 700;
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}


.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-content a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-content a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Legal Pages Styling */
.legal-page {
    background: var(--background-color);
    min-height: 100vh;
}

.legal-content {
    padding: 180px 0 100px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content .glass {
    padding: 60px;
    border-radius: 24px;
}

.legal-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 8px;
    text-align: center;
}

.legal-content h1 span {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 60px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-color);
    padding-left: 16px;
}

.legal-section p, .legal-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-section ul {
    margin-top: 12px;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-footer {
    margin-top: 60px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   Deeply Responsive Styles
   ========================================================================== */

/* Tablet & Smaller Desktop (1024px) */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }

    .container {
        padding: 0 40px;
    }

    .hero-text h1 {
        font-size: 3.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: rgba(13, 27, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(100%);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li:not(:last-child) {
        display: block;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    #nav-logo {
        width: 32px;
        height: 32px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image {
        display: none;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-text p {
        margin: 0 auto 32px;
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.25;
    }

    .cta-section {
        padding: 0 24px var(--section-spacing);
    }

    .cta-section .container {
        padding: 60px 24px;
        width: 100%;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .legal-content {
        padding: 120px 0 60px;
    }

    .legal-content .glass {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .previews-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 25px;
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .previews-grid::-webkit-scrollbar {
        display: none;
    }

    .preview-item {
        flex: 0 0 280px;
        scroll-snap-align: center;
    }
}

/* Mobile Devices (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-section {
        padding-top: 140px;
    }

    .cta-section {
        padding: 0 16px var(--section-spacing);
    }

    .hero-text h1 {
        font-size: clamp(1.85rem, 9vw, 2.25rem);
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .badge {
        margin: 0 auto 20px;
        text-align: center;
        display: table;
    }

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

    .feature-card {
        padding: 24px 20px;
        align-items: center;
        text-align: center;
    }

    .icon-box {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

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

    .feature-card h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

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


    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        margin: 20px auto;
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .logo span {
        font-size: 1.15rem;
    }

    .container {
        padding: 0 16px;
    }

    .previews-grid {
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        text-align: left;
        margin-bottom: 0;
    }

    .footer-content {
        gap: 30px 20px;
    }
    
    .footer-links:last-of-type {
        margin-bottom: 0;
    }

    .footer-links ul {
        padding: 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .legal-content h1 {
        font-size: 2.25rem;
    }

    .legal-section h2 {
        font-size: 1.15rem;
    }

    .legal-section p, .legal-section li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .legal-content {
        padding-top: 100px;
    }

    .legal-footer {
        display: flex;
        justify-content: center;
    }

    .legal-footer .btn {
        width: auto;
        min-width: 200px;
    }

    .cta-content button, .cta-content .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
        width: 100%;
        line-height: 1.4;
        justify-content: center;
    }

    .meta-info {
        text-align: center;
    }



    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    [id] {
        scroll-margin-top: 100px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Small Mobile Devices (360px) */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }
    

    .logo span {
        font-size: 1rem;
    }

    .logo {
        gap: 6px;
    }

    .features-grid {
        gap: 12px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.6);
}
