/* ========================================
   Vyze Studio - Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Primary gradient */
    --gradient-start: #8B5CF6;
    --gradient-end: #EC4899;
    --gradient: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    
    /* Semantic colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Backgrounds */
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --bg-elevated: #FFFFFF;
    
    /* Cards */
    --card-bg: #FFFFFF;
    --card-border: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Text */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    
    /* Navigation */
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-border: rgba(0, 0, 0, 0.06);
    
    /* Misc */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0F0F0F;
        --bg-secondary: #1A1A1A;
        --bg-elevated: #1F1F1F;
        
        --card-bg: #1A1A1A;
        --card-border: rgba(255, 255, 255, 0.08);
        --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
        
        --text-primary: #F9FAFB;
        --text-secondary: #9CA3AF;
        --text-muted: #6B7280;
        
        --nav-bg: rgba(15, 15, 15, 0.85);
        --nav-border: rgba(255, 255, 255, 0.08);
    }
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

/* ========================================
   Utilities
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    border-color: var(--gradient-start);
    color: var(--gradient-start);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ========================================
   Badge
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--nav-border);
}

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

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

.logo-icon {
    display: flex;
}

.logo-text {
    color: var(--text-primary);
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--nav-border);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all var(--transition);
    }
    
    .nav-links.active {
        max-height: 300px;
        padding: 16px 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 16px 24px;
        text-align: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-start);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-end);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-start);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.3;
}

@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(-30px, -20px) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 22px);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
}

/* Phone Mockup */
.hero-phone {
    margin-top: 60px;
    perspective: 1000px;
}

.phone-frame {
    width: 280px;
    height: 580px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateX(5deg);
}

.phone-notch {
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 20px;
    margin: 8px auto 12px;
}

.phone-screen {
    height: calc(100% - 48px);
    background: var(--bg-primary);
    border-radius: 28px;
    overflow: hidden;
    padding: 20px;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.phone-app-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 8px;
}

.phone-app-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.phone-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-card {
    height: 120px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.phone-card-small {
    height: 80px;
}

/* ========================================
   Apps Section
   ======================================== */
.apps {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* App Card */
.app-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--card-border);
    padding: 32px;
    transition: all var(--transition);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.app-card-badge {
    margin-bottom: 24px;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.app-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.app-tagline {
    font-size: 15px;
    color: var(--text-secondary);
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
}

.app-features svg {
    flex-shrink: 0;
    color: var(--success);
}

.app-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Coming Soon Card */
.app-card-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--bg-elevated);
    border-style: dashed;
    border-width: 2px;
}

.coming-soon-content {
    text-align: center;
    padding: 20px;
}

.coming-soon-icon {
    margin-bottom: 24px;
    opacity: 0.8;
}

.coming-soon-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.coming-soon-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.email-form {
    display: flex;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color var(--transition);
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    outline: none;
    border-color: var(--gradient-start);
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 120px 0;
    background: var(--bg-primary);
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--card-border);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
}

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

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .nav-logo {
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 15px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 15px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .phone-frame {
        width: 240px;
        height: 500px;
    }
    
    .apps, .about {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        padding: 24px;
    }
    
    .app-actions {
        flex-direction: column;
    }
    
    .app-actions .btn {
        width: 100%;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}
