/* Visionade Website - Main CSS */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design System Variables */
:root {
    /* Official Visionade Brand Colors */
    --primary-color: #FFE528; /* Citrus Spark */
    --secondary-color: #2F372E; /* Verdant Depth */
    --accent-color: #B7A894; /* Golden Sand */
    --tertiary-color: #E3CDA3; /* Sunny Wheat */
    --dark-color: #23120E; /* Espresso Edge */
    --text-dark: #2F372E;
    --text-medium: #5E6C84;
    --text-light: #8993A4;
    --bg-white: #FFFFFF;
    --bg-light: #F4F5F7;
    --border-light: #DFE1E6;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing - 8px grid system */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-xxxl: 64px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Breakpoints */
    --mobile: 320px;
    --tablet: 768px;
    --desktop: 1024px;
    --wide: 1440px;
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-medium);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--dark-color);
}

/* Special yellow links for emphasis */
a.yellow-link {
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

a.yellow-link:hover {
    color: #F4D91A;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

.logo a {
    display: inline-block;
    outline-offset: 4px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.2s ease;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    position: relative;
    display: block;
    min-width: 100px;
    text-align: center;
}

.nav-links a:hover {
    color: var(--dark-color);
    font-weight: 600;
    background: rgba(47, 55, 46, 0.05);
    border-color: rgba(47, 55, 46, 0.1);
}

.nav-links a.active {
    color: var(--dark-color);
    font-weight: 700;
    background: rgba(255, 229, 40, 0.2);
    border-color: var(--secondary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    font-size: 16px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    border: 2px solid var(--secondary-color);
}

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

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

/* Yellow accent buttons for special CTAs */
.btn-yellow {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    font-weight: 700;
}

.btn-yellow:hover {
    background: #F4D91A;
    color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-lg {
    padding: var(--space-lg) var(--space-xxl);
    font-size: 18px;
    min-height: 56px;
}

/* Hero Section */
.hero {
    padding: var(--space-xxxl) 0;
    background: var(--secondary-color);
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 229, 40, 0.1) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xxl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.trust-indicator {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 229, 40, 0.3);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Value Proposition Grid */
.value-props {
    padding: var(--space-xxxl) 0;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xxl);
    margin-top: var(--space-xxl);
}

.value-prop {
    text-align: center;
    padding: var(--space-xl);
}

.value-prop-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 2rem;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(47, 55, 46, 0.2);
}

.value-prop h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

/* Feature Grid */
.features {
    padding: var(--space-xxxl) 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--tertiary-color) 100%);
}

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

.feature-card {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

.feature-card h4 {
    color: var(--secondary-color);
    margin-bottom: var(--space-md);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Interactive Demo */
.demo-section {
    padding: var(--space-xxxl) 0;
}

.demo-container {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.demo-controls {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.demo-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-btn.active,
.demo-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.demo-area {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.demo-area img {
    transition: opacity 0.3s ease;
}

.demo-area .chart-placeholder {
    background: linear-gradient(45deg, #0052CC20, #00C85320);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: var(--space-xxxl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    margin-bottom: var(--space-md);
    color: white;
}

.footer-section a {
    color: var(--text-light);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #344563;
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--text-light);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .demo-controls {
        justify-content: center;
    }

    .container {
        padding: 0 var(--space-md);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.btn:focus,
a:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px var(--secondary-color);
}

.btn-primary:focus,
.btn-secondary:focus {
    outline-color: var(--primary-color);
}

.btn-yellow:focus {
    outline-color: var(--secondary-color);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FFFF00;
        --secondary-color: #000000;
        --text-medium: #000000;
        --border-light: #000000;
        --bg-light: #FFFFFF;
    }

    .feature-card {
        border: 2px solid #000000;
    }

    .btn-primary,
    .btn-yellow {
        border-width: 3px;
    }
}

/* Coming Soon / Disabled States */
.coming-soon,
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
}

.coming-soon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    z-index: 1;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: block;
    width: 100%;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: normal;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Interactive elements that should be disabled */
.coming-soon .btn,
.coming-soon button,
.coming-soon input,
.coming-soon select,
.disabled .btn,
.disabled button,
.disabled input,
.disabled select {
    pointer-events: none;
    opacity: 0.6;
}

/* Visionade Brand Elements */
.visionade-accent {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
}

.visionade-logo-style {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Lemon slice decorative elements */
.lemon-slice::before {
    content: "🍋";
    position: absolute;
    opacity: 0.1;
    font-size: 8rem;
    pointer-events: none;
    top: 50%;
    right: 5%;
    transform: translateY(-50%) rotate(15deg);
    z-index: 0;
}

/* Section backgrounds inspired by brand */
.brand-bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: var(--secondary-color);
}

.brand-bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: var(--primary-color);
}