/* ============================================
   InSync Landing Page Styles
   ============================================ */

:root {
    /* Core Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    /* Text Colors */
    --text-primary: #f5f5f7;
    --text-secondary: rgba(245, 245, 247, 0.6);
    --text-muted: rgba(245, 245, 247, 0.4);
    
    /* Accent Colors */
    --accent-coral: #ff6b6b;
    --accent-lavender: #a78bfa;
    --accent-mint: #6ee7b7;
    --accent-sky: #7dd3fc;
    --accent-peach: #fbbf24;
    --accent-rose: #fb7185;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #a78bfa 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 255, 255, 0.12);
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* ============================================
   Ambient Background
   ============================================ */

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-coral) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-lavender) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-sky) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.nav-cta {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-coral);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    border: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 140px 40px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-mint);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-accent {
    font-family: var(--font-display);
    font-style: italic;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #1a1a24 0%, #0f0f17 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e1e2e 0%, #141420 100%);
    border-radius: 35px;
    overflow: hidden;
    padding: 20px;
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
}

.screen-header {
    text-align: center;
    margin-bottom: 30px;
}

.screen-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.screen-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vibe-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vibe-emoji {
    font-size: 2rem;
}

.vibe-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-peach);
}

.insight-preview, .repair-preview {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-title, .repair-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-lavender);
    margin-bottom: 8px;
}

.insight-text, .repair-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.repair-text {
    font-style: italic;
    color: var(--accent-mint);
}

/* Floating Cards */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: floatCard 6s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 25%;
    left: -40px;
    animation-delay: -2s;
}

.card-3 {
    bottom: 10%;
    right: -30px;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Section Styles
   ============================================ */

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-coral);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title em {
    font-family: var(--font-display);
    font-style: italic;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    transition: all 0.4s var(--ease-out-expo);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.feature-large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.feature-wide {
    grid-column: span 2;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.screenshot-stack {
    position: relative;
    width: 150px;
    height: 200px;
}

.screenshot {
    position: absolute;
    width: 120px;
    height: 180px;
    background: linear-gradient(145deg, #2a2a3e, #1a1a28);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.screenshot.s1 {
    transform: rotate(-10deg);
    left: 0;
    z-index: 1;
}

.screenshot.s2 {
    transform: rotate(0deg);
    left: 15px;
    top: 10px;
    z-index: 2;
}

.screenshot.s3 {
    transform: rotate(10deg);
    left: 30px;
    top: 20px;
    z-index: 3;
}

.relationship-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    padding: 8px 16px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(167, 139, 250, 0.03) 50%, transparent 100%);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    transition: all 0.4s var(--ease-out-expo);
}

.step:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: var(--gradient-primary);
    margin: 0 auto;
    opacity: 0.3;
}

.step-visual {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-visual, .analyze-visual, .insight-visual {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: 50%;
}

.upload-icon, .analyze-icon, .insight-icon {
    font-size: 1.5rem;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-lavender);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.upload-dots, .insight-lines {
    position: absolute;
    bottom: -20px;
    display: flex;
    gap: 4px;
}

.upload-dots span, .insight-lines span {
    width: 6px;
    height: 6px;
    background: var(--accent-coral);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.upload-dots span:nth-child(2), .insight-lines span:nth-child(2) {
    animation-delay: 0.2s;
}

.upload-dots span:nth-child(3), .insight-lines span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   Vibes Section
   ============================================ */

.vibes {
    padding: var(--section-padding) 0;
}

.vibes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.vibe-item {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
}

.vibe-item:hover {
    transform: translateY(-8px);
}

.vibe-big-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.vibe-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.vibe-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.vibe-good:hover {
    border-color: var(--accent-mint);
    box-shadow: 0 20px 60px rgba(110, 231, 183, 0.15);
}

.vibe-meh:hover {
    border-color: var(--text-muted);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.05);
}

.vibe-tense:hover {
    border-color: var(--accent-peach);
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.15);
}

.vibe-fighting:hover {
    border-color: var(--accent-coral);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.15);
}

.vibe-crisis:hover {
    border-color: var(--accent-rose);
    box-shadow: 0 20px 60px rgba(251, 113, 133, 0.15);
}

/* ============================================
   CTA Section
   ============================================ */

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

.cta-card {
    position: relative;
    padding: 80px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    text-align: center;
    overflow: hidden;
}

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

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-decoration {
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
}

.cta-orb {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-coral) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.3;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 60px auto 0;
    padding: 24px 40px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-large {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }
    
    .vibes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .section-container {
        padding: 0 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-large, .feature-wide {
        grid-column: span 1;
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .step-visual {
        margin: 0 auto;
    }
    
    .vibes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vibes-grid .vibe-item:last-child {
        grid-column: span 2;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-cards {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .vibes-grid {
        grid-template-columns: 1fr;
    }
    
    .vibes-grid .vibe-item:last-child {
        grid-column: span 1;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
