:root {
    --bg-main: #f8fafc;
    --text-heading: #0f172a;
    --text-body: #475569;
    --primary-accent: #3b82f6;
    --primary-hover: #2563eb;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(226, 232, 240, 0.9);
    --card-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
    --card-shadow-hover: 0 40px 60px -15px rgba(15, 23, 42, 0.15);
    
    /* Animation offsets */
    --animation-distance: 50px;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px; 
}

/* Scroll Animations Base Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(var(--animation-distance));
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px -10px rgba(0,0,0,0.05);
}

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

.logo, .footer-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.logo span, .footer-logo span {
    color: var(--primary-accent);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 600;
    transition: color 0.2s;
}

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

/* Buttons */
.btn-primary {
    background: var(--primary-accent);
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-heading);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #cbd5e1;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Background Animated Gradient */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 25s infinite ease-in-out alternate;
    opacity: 0.6;
}

body::before {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    top: -20vw;
    left: -20vw;
}

body::after {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -15vw;
    right: -10vw;
    animation-delay: -12s;
}

@keyframes float {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(3%, 5%); }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: 100%;
}

.hero-text {
    flex: 1.1;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #1d4ed8;
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    color: var(--text-heading);
    letter-spacing: -1.5px;
}

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

.hero p {
    font-size: 1.35rem;
    color: var(--text-body);
    font-weight: 400;
    line-height: 1.7;
}

.hero-image {
    flex: 0.9;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 36px;
    z-index: 2;
    background: white;
    padding: 1rem;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
    transform: rotate(2deg) translateY(-10px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.03);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 26px;
    display: block;
}

/* About Section */
.about-section {
    max-width: 1000px;
    margin: 2rem auto 6rem;
    padding: 0 2rem;
}

.about-glass {
    padding: 4rem 5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border: 1px solid #e2e8f0;
}

.about-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-accent);
    letter-spacing: -1px;
}

.about-section p {
    font-size: 1.3rem;
    color: var(--text-body);
    line-height: 1.8;
    font-weight: 400;
}

/* Glassmorphism Containers Default */
.glass-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 5rem 4rem;
    box-shadow: var(--card-shadow);
    text-align: center;
}

/* Apps Section */
.apps-section {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.apps-section h2 {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5rem;
    color: var(--text-heading);
    letter-spacing: -1px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

@media (max-width: 400px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-16px);
    box-shadow: var(--card-shadow-hover);
    border-color: #bfdbfe;
    background: white;
}

.app-image {
    width: 100%;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    position: relative;
    background: #f1f5f9;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-card:hover .app-image img {
    transform: scale(1.1);
}

.icon-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    border: 3px solid white;
}

.blue-gradient { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.red-gradient { background: linear-gradient(135deg, #f87171, #dc2626); }
.purple-gradient { background: linear-gradient(135deg, #c084fc, #7e22ce); }

.app-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.app-card p {
    color: var(--text-body);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Store Buttons */
.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-heading);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
}

.store-btn:hover {
    background: #ffffff;
    border-color: #bfdbfe;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
    color: var(--primary-accent);
}

.store-btn svg {
    fill: currentColor;
}

.store-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem 8rem;
    display: flex;
    justify-content: center;
    max-width: 950px;
    margin: 0 auto;
}

.contact-glass {
    flex: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
}

.contact-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
    letter-spacing: -1px;
}

.contact-desc {
    color: var(--text-body);
    margin-bottom: 3.5rem;
    font-size: 1.25rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.3rem;
    background: #ffffff;
    padding: 1.2rem 3rem;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 550px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -4px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    background: #eff6ff;
    padding: 12px;
    border-radius: 50%;
}

.contact-item a {
    color: var(--text-heading);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.contact-item:hover a {
    color: var(--primary-accent);
}

/* Footer Advanced */
.footer {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 5rem 2rem 2rem;
    margin-top: 4rem;
}

/* Legal Text Pages */
.text-page {
    text-align: left;
    max-width: 950px;
    margin: 4rem auto 8rem;
    padding: 4rem 5rem;
}

.text-page h1 {
    font-size: 3.5rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
}

.text-page h2 {
    font-size: 1.8rem;
    color: var(--text-heading);
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.text-page p, .text-page ul {
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.8;
}

.text-page ul {
    padding-left: 2rem;
}

.text-page a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
}

.text-page a:hover {
    text-decoration: underline;
}

.footer-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    max-width: 400px;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-body);
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.link-group h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-body);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--primary-accent);
}

.footer-bottom {
    max-width: 1250px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-text { align-items: center; display: flex; flex-direction: column; }
    .hero h1 { font-size: 4rem; }
    .footer-wrapper { flex-direction: column; gap: 3rem; text-align: center; align-items: center;}
    .footer-links { gap: 3rem; text-align: left; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 4rem 1.5rem; }
    .hero h1 { font-size: 3.2rem; }
    .apps-section { padding: 4rem 1.5rem; }
    .glass-container { padding: 3rem 1.5rem; }
    .app-card { padding: 1.25rem; }
    .contact-item { padding: 1rem 1.25rem; font-size: 1rem; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .apps-section h2 { font-size: 2.5rem; margin-bottom: 3rem; }
    
    .stats-container { flex-direction: column; gap: 2rem; padding: 2rem; }
    .stat-divider { width: 100px; height: 1px; }
}

/* Dedicated App Page Styles */
.app-hero {
    padding: 12rem 2rem 6rem; /* Increased top padding for fixed navbar */
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.app-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.app-feature-graphic {
    max-width: 900px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.2);
    margin-bottom: 4rem;
    border: 8px solid white;
}

.app-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-heading), var(--primary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.4rem;
    color: var(--text-body);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-desc {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly smaller min-width */
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

@media (max-width: 768px) {
    .app-hero { padding: 8rem 1.5rem 4rem; }
    .app-hero h1 { font-size: 2.5rem; }
    .app-feature-graphic { margin-bottom: 2rem; }
    .feature-grid { padding: 2rem 1rem; }
    .feature-item { padding: 2rem 1.5rem; }
}

/* App CTA Section */
.app-cta-section {
    background: white;
    margin: 4rem auto;
    max-width: 1100px;
    width: calc(100% - 4rem);
    border-radius: 40px;
    border: 1px solid var(--card-border);
    text-align: center;
    padding: 4rem 2rem;
}

@media (max-width: 768px) {
    .app-cta-section {
        margin: 2rem auto;
        padding: 3rem 1.5rem;
        width: calc(100% - 2rem);
    }
    .app-cta-section h2 { font-size: 2.2rem; line-height: 1.2; }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .store-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Contact Details */
.contact-item a {
    display: block;
    word-break: break-all;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .app-hero h1 { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; }
    .app-cta-section h2 { font-size: 1.8rem; }
}
