/* ==========================================================================
   Curry Labs - Styles
   A warm, spice-inspired design system
   ========================================================================== */

:root {
    /* Spice Palette */
    --turmeric: #E8A838;
    --turmeric-light: #F5C861;
    --paprika: #C94B32;
    --cardamom: #2D3B2D;
    --cinnamon: #8B4513;
    --cream: #FFF8F0;
    --cream-dark: #F5EBE0;
    --charcoal: #1A1A1A;
    --charcoal-light: #2A2A2A;
    --smoke: #6B6B6B;
    
    /* Functional Colors */
    --bg-primary: var(--charcoal);
    --bg-secondary: var(--charcoal-light);
    --text-primary: var(--cream);
    --text-secondary: var(--smoke);
    --accent: var(--turmeric);
    --accent-hover: var(--turmeric-light);
    
    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: 150ms var(--ease-out-expo);
    --transition-medium: 300ms var(--ease-out-expo);
    --transition-slow: 600ms var(--ease-out-expo);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Particles Background
   ========================================================================== */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--turmeric);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 25%; animation-delay: 3s; animation-duration: 20s; }
.particle:nth-child(3) { left: 45%; animation-delay: 6s; animation-duration: 28s; }
.particle:nth-child(4) { left: 65%; animation-delay: 2s; animation-duration: 22s; }
.particle:nth-child(5) { left: 80%; animation-delay: 5s; animation-duration: 26s; }
.particle:nth-child(6) { left: 92%; animation-delay: 1s; animation-duration: 24s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-lg);
    transition: background var(--transition-medium), backdrop-filter var(--transition-medium);
}

.nav.scrolled {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: var(--space-xs) var(--space-md);
    background: var(--accent);
    color: var(--charcoal) !important;
    border-radius: 100px;
    font-weight: 500;
    transition: transform var(--transition-fast), background var(--transition-fast) !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideUp 1s var(--ease-out-expo) 0.2s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.title-accent {
    color: var(--accent);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--charcoal);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--smoke);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideUp 1s var(--ease-out-expo) 0.4s both;
}

.visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: breathe 8s infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--turmeric);
    opacity: 0.4;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--paprika);
    opacity: 0.3;
    left: 20%;
    top: 60%;
    animation-delay: 2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: var(--cinnamon);
    opacity: 0.35;
    right: 10%;
    top: 20%;
    animation-delay: 4s;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.visual-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 3rem;
    font-style: italic;
    text-align: center;
}

.visual-text span {
    opacity: 0;
    animation: fadeIn 0.6s var(--ease-out-expo) forwards;
}

.visual-text span:nth-child(1) { animation-delay: 0.8s; }
.visual-text span:nth-child(2) { animation-delay: 1s; color: var(--turmeric); }
.visual-text span:nth-child(3) { animation-delay: 1.2s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.products {
    padding: var(--space-2xl) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-medium), border-color var(--transition-medium);
    opacity: 0;
    transform: translateY(30px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.product-card.featured {
    border-color: rgba(232, 168, 56, 0.3);
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.status-live {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-soon {
    width: 8px;
    height: 8px;
    background: var(--turmeric);
    border-radius: 50%;
}

.product-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.feature-tag {
    padding: 4px 12px;
    background: rgba(232, 168, 56, 0.1);
    color: var(--turmeric);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--accent);
    font-weight: 500;
    transition: gap var(--transition-fast);
}

.product-link:hover {
    gap: var(--space-sm);
}

.product-link.disabled {
    color: var(--text-secondary);
    cursor: default;
}

.product-card.coming-soon {
    opacity: 0.7;
}

.product-card.coming-soon.visible {
    opacity: 0.7;
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */

.philosophy {
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(180deg, transparent 0%, rgba(232, 168, 56, 0.03) 50%, transparent 100%);
    position: relative;
    z-index: 1;
}

.philosophy-container {
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.philosophy-card {
    padding: var(--space-lg);
    border-left: 2px solid var(--accent);
    opacity: 0;
    transform: translateY(30px);
}

.philosophy-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.philosophy-card:nth-child(2).visible {
    transition-delay: 0.1s;
}

.philosophy-card:nth-child(3).visible {
    transition-delay: 0.2s;
}

.philosophy-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
}

.philosophy-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 32px;
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--accent);
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.contact-email:hover {
    border-color: var(--accent);
}

.contact-visual {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-orb {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--turmeric) 0%, var(--paprika) 100%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: breathe 6s infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--smoke);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .visual-text {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-visual {
        height: 150px;
    }
}

@media (max-width: 600px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2.5rem;
        --space-2xl: 4rem;
    }
    
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

