/* ============================================
   Spectra
   Modern Enterprise Design System
   ============================================ */

:root {
    --color-primary: #0F172A;
    --color-primary-dark: #020617;
    --color-primary-light: #1E293B;
    --color-accent: #3B82F6;
    --color-accent-hover: #2563EB;
    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-muted: #64748B;
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8FAFC;
    --color-bg-tertiary: #F1F5F9;
    --color-border: #E2E8F0;
    --color-border-light: #F1F5F9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav a:last-child {
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.nav a:last-child:hover {
    background-color: var(--color-primary-dark);
    color: white;
}

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

.hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    line-height: 1.5;
}

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

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

.btn-secondary {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

.datasheet-button {
    background-color: var(--color-accent);
    color: white;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.datasheet-button:hover {
    background-color: var(--color-accent-hover);
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* ============================================
   Main Content Sections
   ============================================ */

main {
    padding-top: 0;
}

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   Feature Lists
   ============================================ */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ============================================
   Content Grids
   ============================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Screenshots
   ============================================ */

.screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin: 0;
    transition: all 0.3s ease;
    display: block;
    border: 1px solid var(--color-border-light);
}

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

.screenshot-container {
    margin: 2rem 0;
}

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

.footer {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    text-align: center;
}

.footer-nav {
    margin-top: 2rem;
}

.footer-nav-row {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-nav-row a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-nav-row a:hover {
    color: white;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial-box {
    background: var(--color-bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.testimonial-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.testimonial-box .quote {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    line-height: 1.7;
    font-weight: 400;
}

.testimonial-box .author {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

/* ============================================
   Cookie Consent
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.3s ease-in-out;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.accept-all {
    background-color: var(--color-primary);
    color: white;
}

.accept-all:hover {
    background-color: var(--color-primary-dark);
}

.customize {
    background-color: #f5f5f5;
    color: #333;
}

.customize:hover {
    background-color: #e5e5e5;
}

.reject-all {
    background-color: #f5f5f5;
    color: #666;
}

.reject-all:hover {
    background-color: #e5e5e5;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-modal-content {
    background: var(--color-bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.cookie-modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.cookie-options {
    margin: 2rem 0;
}

.cookie-option {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
}

.cookie-option label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
    font-size: 1rem;
}

.cookie-option input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-option p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.cookie-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* ============================================
   Floating Action Buttons
   ============================================ */

.floating-call-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    background-color: var(--color-accent);
    color: white;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.floating-call-button:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.floating-call-button svg {
    width: 20px;
    height: 20px;
}

.floating-whatsapp-button {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 50;
    background-color: #25D366;
    color: white;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.floating-whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.floating-whatsapp-button svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   Pricing (Legacy Support)
   ============================================ */

.pricing-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 2rem;
    gap: 2rem;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.tier-price span:last-child {
    font-size: 1.2rem;
    color: #666;
}

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

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    .nav {
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-start;
    }
    .nav a {
        font-size: 0.875rem;
    }
    .nav a:last-child {
        margin-left: auto;
    }
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.125rem;
    }
    .section {
        padding: 3rem 1.5rem;
    }
    .card {
        padding: 1.5rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .floating-call-button,
    .floating-whatsapp-button {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    .floating-call-button svg,
    .floating-whatsapp-button svg {
        width: 18px;
        height: 18px;
    }
    .hero-cta {
        flex-direction: column;
    }
    .hero-cta .btn,
    .hero-cta .datasheet-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
    .nav a:last-child {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}
