/* ===================================
   NoteMic - Product Website Styles
   =================================== */

:root {
    /* Color Palette - Warm Coral & Deep Navy */
    --primary: #FF6B5B;
    --primary-dark: #E85A4A;
    --primary-light: #FF8A7D;
    --secondary: #1A2B4A;
    --secondary-light: #2D4470;
    --accent: #FFB74D;
    --success: #4CAF50;
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(255, 107, 91, 0.3);
}

/* ===================================
   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(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

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

/* ===================================
   Container
   =================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===================================
   Language Selector
   =================================== */

.lang-selector {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.lang-icon {
    font-size: 1.125rem;
}

.lang-arrow {
    font-size: 0.625rem;
    color: var(--gray-400);
    transition: transform 0.2s ease;
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    min-width: 150px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: var(--gray-50);
}

.lang-option.active {
    color: var(--primary);
    font-weight: 500;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 107, 91, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 183, 77, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 107, 91, 0.05) 0%, transparent 60%);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    padding: var(--space-2xl) 0;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 15px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
}

.app-demo {
    padding: var(--space-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding-top: var(--space-lg);
}

.demo-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.demo-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
}

.demo-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: var(--space-xl) 0;
}

.wave-bar {
    width: 4px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-full);
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; height: 30px; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 50px; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; height: 35px; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; height: 60px; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; height: 40px; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 55px; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; height: 25px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.demo-text {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

.demo-btn {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 107, 91, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 107, 91, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(255, 107, 91, 0.5); }
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

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

.features {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    color: var(--gray-500);
    line-height: 1.7;
}

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

.how-it-works {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 280px;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.step-desc {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--gray-300);
}

/* ===================================
   Pricing Section
   =================================== */

.pricing {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    align-items: start;
}

.pricing-card {
    padding: var(--space-xl);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: scale(1.04);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-md);
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.pricing-header {
    margin-bottom: var(--space-lg);
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.price-period {
    font-size: 1rem;
    color: var(--gray-500);
}

.price-savings {
    margin-top: var(--space-xs);
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.disabled {
    color: var(--gray-400);
}

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

.cta {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

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

.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

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

.footer-tagline {
    margin-top: var(--space-sm);
    font-size: 0.9375rem;
}

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

.footer-column h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.footer-column a {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-400);
    padding: var(--space-xs) 0;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.875rem;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content {
        padding: var(--space-2xl) 0;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .step-arrow {
        display: none;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
