/* ═══════════════════════════════════
   SHARED STYLES — aipoweredapps
   ═══════════════════════════════════ */

:root {
    --bg-primary: #050507;
    --bg-secondary: #0e0e12;
    --bg-card: rgba(18, 18, 24, 0.7);
    --bg-card-hover: rgba(28, 28, 38, 0.8);
    --bg-glass: rgba(12, 12, 18, 0.75);
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-tertiary: #5a5a6e;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-teal: #14b8a6;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    background: var(--bg-primary);
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════
   ANIMATED MESH BACKGROUND
═══════════════════════════════════ */
.mesh-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    will-change: transform;
}

.mesh-blob:nth-child(1) {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 70%);
    top: -10%; left: -5%;
    animation: meshFloat1 20s ease-in-out infinite;
}

.mesh-blob:nth-child(2) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
    top: 20%; right: -10%;
    animation: meshFloat2 25s ease-in-out infinite;
}

.mesh-blob:nth-child(3) {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 70%);
    bottom: 10%; left: 20%;
    animation: meshFloat3 22s ease-in-out infinite;
}

.mesh-blob:nth-child(4) {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    bottom: 30%; right: 15%;
    animation: meshFloat1 18s ease-in-out infinite reverse;
}

@keyframes meshFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 50px) scale(1.1); }
    66% { transform: translate(-40px, 80px) scale(0.95); }
}

@keyframes meshFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, 70px) scale(1.05); }
    66% { transform: translate(50px, -40px) scale(1.1); }
}

@keyframes meshFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -60px) scale(1.08); }
    66% { transform: translate(-70px, 30px) scale(0.97); }
}

/* Grain overlay */
.mesh-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

/* ═══════════════════════════════════
   STICKY NAV
═══════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-decoration: none;
}

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

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

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

/* ═══════════════════════════════════
   CONTENT WRAPPER
═══════════════════════════════════ */
.content {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    scroll-margin-top: 80px;
}

/* ═══════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ═══════════════════════════════════
   APP STORE BADGE (shared)
═══════════════════════════════════ */
.app-store-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.app-store-badge a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.app-store-badge a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.app-store-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.badge-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.badge-text-small {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.01em;
}

.badge-text-large {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 48px 24px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-contact {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-contact:hover {
    color: var(--text-secondary);
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

/* ═══════════════════════════════════
   RESPONSIVE — SHARED
═══════════════════════════════════ */
@media (max-width: 767px) {
    .nav-links { display: none; }
}

@media (min-width: 1024px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
