/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
    /* Colors */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #1a1a2e;
    --color-bg-tertiary: #16213e;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #b8b9c8;
    --color-text-tertiary: #7d7e92;
    
    --color-accent-cyan: #00d4ff;
    --color-accent-purple: #9333ea;
    --color-accent-pink: #ec4899;
    --color-accent-blue: #3b82f6;
    --color-accent-amber: #f59e0b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #9333ea 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #9333ea 100%);
    --gradient-tertiary: linear-gradient(135deg, #3b82f6 0%, #00d4ff 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-primary-small {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: var(--gradient-primary);
    color: white;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-accent-cyan) 0%, transparent 70%);
    top: -250px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-purple) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-accent-pink) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-subtitle {
    display: block;
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.gradient-text {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite linear;
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

.stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-top: var(--spacing-xs);
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Apps Section
   ============================================ */
.apps-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.app-card {
    position: relative;
    background: var(--color-surface);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.app-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.app-card-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.app-card:hover .app-card-background {
    opacity: 1;
}

.app-card-content {
    position: relative;
    padding: var(--spacing-xl);
}

.app-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
}

.app-icon-gradient {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0.2;
}

.clickmeals-gradient {
    background: linear-gradient(135deg, #00d4ff, #9333ea);
}

.heic-gradient {
    background: linear-gradient(135deg, #ec4899, #9333ea);
}

.focuspaws-gradient {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.app-icon-emoji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.app-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.app-tagline {
    color: var(--color-accent-cyan);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.app-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.feature-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-accent-cyan);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
}

.app-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.app-link:hover::before {
    width: calc(100% - 28px);
}

.link-arrow {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.app-link:hover .link-arrow {
    transform: translateX(4px);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-description {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-md);
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.value-item:hover {
    background: var(--color-surface-hover);
    transform: translateX(8px);
}

.value-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.value-text h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.value-text p {
    color: var(--color-text-tertiary);
    font-size: 0.9375rem;
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    position: relative;
}

.visual-card {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition-base);
}

.visual-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-1 {
    grid-column: 1 / 2;
}

.card-2 {
    grid-column: 2 / 3;
}

.card-3 {
    grid-column: 1 / -1;
    aspect-ratio: 2/1;
}

.card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%);
    animation: shimmer-move 3s infinite;
}

@keyframes shimmer-move {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.card-label {
    font-weight: 600;
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-bg-primary);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
}

.footer-tagline {
    color: var(--color-text-tertiary);
    margin-top: var(--spacing-xs);
}

.footer-links {
    display: flex;
    gap: var(--spacing-xl);
}

.footer-column h4 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-column a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .nav-links li:nth-child(1),
    .nav-links li:nth-child(2) {
        display: none;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-divider {
        display: none;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
