/* ==========================================================================
   Pantry Manager - Sales Website Styles
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-primary: #5B8A72;
    --color-primary-light: #7BA694;
    --color-primary-dark: #3D6B54;

    --color-secondary: #E8DCC4;
    --color-secondary-light: #F5F0E6;
    --color-secondary-dark: #D4C4A8;

    --color-accent: #CD5C5C;
    --color-accent-light: #E07D7D;
    --color-accent-dark: #B03A3A;

    /* Neutral Colors */
    --color-background: #FAF9F7;
    --color-surface: #FFFFFF;
    --color-text: #2D3436;
    --color-text-secondary: #636E72;
    --color-text-light: #B2BEC3;

    /* Health Score Colors */
    --color-score-excellent: #2E7D32;
    --color-score-good: #558B2F;
    --color-score-fair: #F9A825;
    --color-score-poor: #EF6C00;
    --color-score-bad: #C62828;

    /* Nutri-Score Colors */
    --color-nutri-a: #038141;
    --color-nutri-b: #85BB2F;
    --color-nutri-c: #FECB02;
    --color-nutri-d: #EE8100;
    --color-nutri-e: #E63E11;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   2. LAYOUT
   ========================================================================== */

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

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   3. COMPONENTS - Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

.btn-block {
    display: block;
    width: 100%;
}

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

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

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
}

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

.btn-accent:hover {
    background-color: var(--color-accent-dark);
}

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

.btn-white:hover {
    background-color: var(--color-secondary-light);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.logo-icon {
    font-size: var(--font-size-2xl);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition-fast);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: var(--space-md);
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    padding: var(--space-sm);
    color: var(--color-text);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero {
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-background) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.hero-text h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.hero-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.device-mockup {
    width: 200px;
    height: 280px;
    background: var(--color-text);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-xl);
}

.device-screen {
    height: 100%;
    background: #1a1a1a;
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
}

.device-status {
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.device-product {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.product-placeholder {
    width: 80px;
    height: 80px;
    background: var(--color-secondary);
    border-radius: var(--radius-md);
}

.product-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.product-qty {
    color: var(--color-text-light);
    font-size: 12px;
}

.device-scores {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.score {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.score-a {
    background: var(--color-nutri-a);
}

.score-nova {
    background: var(--color-score-good);
}

.score-pantry {
    background: var(--color-score-excellent);
}

/* ==========================================================================
   6. HOW IT WORKS
   ========================================================================== */

.how-it-works {
    padding: var(--space-2xl) 0;
    background-color: white;
}

.steps {
    display: grid;
    gap: var(--space-lg);
}

.step {
    text-align: center;
    padding: var(--space-lg);
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    margin-top: var(--space-lg);
}

.step h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.step p {
    color: var(--color-text-secondary);
    max-width: 300px;
    margin: 0 auto;
}

/* ==========================================================================
   7. FEATURES
   ========================================================================== */

.features {
    padding: var(--space-2xl) 0;
    background-color: var(--color-background);
}

.features-grid {
    display: grid;
    gap: var(--space-lg);
}

.feature-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

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

.feature-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   8. HEALTH SECTION
   ========================================================================== */

.health-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.health-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.health-text h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
}

.health-text > p {
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

.health-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.health-list li {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.health-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.health-list li strong {
    font-size: var(--font-size-lg);
    color: var(--color-secondary);
}

.health-list li span {
    opacity: 0.9;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.health-visual {
    display: flex;
    justify-content: center;
}

.score-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 300px;
}

.score-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
}

.score-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    display: block;
    margin-bottom: var(--space-sm);
}

.nutri-scale {
    display: flex;
    gap: 4px;
}

.grade {
    flex: 1;
    padding: var(--space-sm);
    text-align: center;
    font-weight: 700;
    border-radius: var(--radius-sm);
    opacity: 0.5;
    font-size: var(--font-size-sm);
}

.grade.active {
    opacity: 1;
    transform: scale(1.1);
}

.grade-a { background: var(--color-nutri-a); }
.grade-b { background: var(--color-nutri-b); color: var(--color-text); }
.grade-c { background: var(--color-nutri-c); color: var(--color-text); }
.grade-d { background: var(--color-nutri-d); }
.grade-e { background: var(--color-nutri-e); }

.nova-display, .pantry-display {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nova-number, .pantry-number {
    font-size: var(--font-size-3xl);
    font-weight: 800;
}

.nova-text, .pantry-text {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

/* ==========================================================================
   9. USE CASES
   ========================================================================== */

.use-cases {
    padding: var(--space-2xl) 0;
    background-color: white;
}

.use-cases-grid {
    display: grid;
    gap: var(--space-lg);
}

.use-case {
    background: var(--color-secondary-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
}

.use-case-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.use-case h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.use-case ul {
    text-align: left;
    max-width: 250px;
    margin: 0 auto;
}

.use-case li {
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: var(--space-lg);
}

.use-case li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ==========================================================================
   10. HARDWARE
   ========================================================================== */

.hardware {
    padding: var(--space-2xl) 0;
    background-color: var(--color-background);
}

.hardware-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.hardware-visual {
    display: flex;
    justify-content: center;
}

.hardware-device {
    width: 180px;
    height: 250px;
    background: #333;
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-xl);
}

.hw-screen {
    height: 100%;
    background: #1a1a1a;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hw-header {
    background: var(--color-primary);
    color: white;
    padding: var(--space-sm);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.hw-body {
    flex: 1;
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.hw-product-img {
    width: 60px;
    height: 60px;
    background: var(--color-secondary);
    border-radius: var(--radius-md);
}

.hw-product-info {
    text-align: center;
}

.hw-name {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.hw-qty {
    color: var(--color-text-light);
    font-size: 10px;
}

.hw-footer {
    display: flex;
}

.hw-mode {
    flex: 1;
    padding: var(--space-sm);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    opacity: 0.5;
}

.hw-mode.active {
    opacity: 1;
}

.hw-mode-out {
    background: var(--color-accent);
}

.hw-mode-in {
    background: var(--color-score-excellent);
}

.hardware-text h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
}

.hardware-text > p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.hardware-specs {
    margin-bottom: var(--space-lg);
}

.hardware-specs li {
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
}

.hardware-specs li strong {
    color: var(--color-text);
}

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

.hardware-note {
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   11. PRICING
   ========================================================================== */

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

.pricing-grid {
    display: grid;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    border: 2px solid transparent;
}

.pricing-card.featured {
    border-color: var(--color-primary);
    background: white;
}

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

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-secondary);
}

.pricing-header h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    margin-bottom: var(--space-xs);
}

.price-amount {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-text);
}

.price-period {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
}

.price-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    display: block;
}

.price-amazon {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-accent);
}

.pricing-savings {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: 600;
}

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

.pricing-features li {
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: var(--space-lg);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ==========================================================================
   12. FAQ
   ========================================================================== */

.faq {
    padding: var(--space-2xl) 0;
    background-color: var(--color-background);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-lg);
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    font-size: var(--font-size-2xl);
    font-weight: 300;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   13. CTA SECTION
   ========================================================================== */

.cta-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-sm);
}

.cta-section p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background-color: var(--color-text);
    color: white;
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.footer-links h4 {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.footer-links a {
    display: block;
    padding: var(--space-xs) 0;
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    font-size: var(--font-size-sm);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ==========================================================================
   15. RESPONSIVE - Tablet (640px+)
   ========================================================================== */

@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   16. RESPONSIVE - Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        gap: var(--space-lg);
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
    }

    .hero-text {
        flex: 1;
    }

    .hero-text h1 {
        font-size: var(--font-size-5xl);
    }

    .hero-visual {
        flex: 1;
    }

    .device-mockup {
        width: 280px;
        height: 380px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .health-content {
        flex-direction: row;
        align-items: center;
    }

    .health-text {
        flex: 1;
    }

    .health-visual {
        flex: 1;
    }

    .hardware-content {
        flex-direction: row;
        align-items: center;
    }

    .hardware-visual {
        flex: 1;
    }

    .hardware-text {
        flex: 1;
    }

    .hardware-text h2 {
        text-align: left;
    }

    .hardware-cta {
        text-align: left;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}
