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

:root {
    /* Color Palette */
    --primary-color: #556b2f;
    --primary-hover: #4c6029;
    --secondary-color: #808000;
    --accent-color: #7d9b49;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #16a34a;
    --error-color: #dc2626;

    /* Typography - System font stack for optimal performance and native appearance */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --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: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --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);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand .logo {
    height: 2rem;
    width: auto;
    transition: transform 0.2s ease;
}

.nav-brand .logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: none;
    gap: var(--space-8);
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.nav-link-active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-cta {
    background-color: var(--primary-color);
    color: white !important;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}

.nav-cta:hover {
    background-color: var(--primary-hover);
}

/* Hero Section */
.hero {
    padding: var(--space-20) 0 var(--space-16);
    background: linear-gradient(135deg, var(--background) 0%, var(--background-alt) 100%);
    margin-top: 4rem;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.hero-highlight {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-size: var(--font-size-base);
    min-height: 2.75rem;
}

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

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

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

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

.btn-full {
    width: 100%;
}

/* Problem Section */
.problem {
    padding: var(--space-20) 0;
    background-color: var(--background-alt);
}

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

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

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.problem-content {
    display: block;
}

.scenario-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-top: var(--space-8);
}

.scenario-column {
    display: flex;
    flex-direction: column;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-marker {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-bottom: var(--space-3);
}

.ai-speed .timeline-marker {
    background-color: var(--success-color);
}

.recovery-speed .timeline-marker {
    background-color: var(--error-color);
}

.timeline-content h3 {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.timeline-gap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
}

.gap-indicator {
    background-color: var(--error-color);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.problem-text {
    background-color: white;
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.problem-text p {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Scenario Images (SVG) */
.scenario-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--space-6) 0;
}

.scenario-image {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.problem-scenario,
.solution-scenario {
    margin-bottom: var(--space-12);
}

.problem-scenario h3,
.solution-scenario h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Solutions Section */
.solutions {
    padding: var(--space-20) 0;
}

.solutions-grid {
    display: grid;
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.solution-card {
    background-color: white;
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.solution-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--space-6);
    color: var(--primary-color);
}

.solution-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.solution-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.solution-benefits {
    list-style: none;
}

.solution-benefits li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
}

.solution-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 600;
}

/* Early Access Section */
.early-access {
    padding: var(--space-20) 0;
    background-color: var(--background-alt);
}

.early-access-content {
    display: grid;
    gap: var(--space-12);
    align-items: start;
}

.early-access-benefits {
    list-style: none;
    margin-top: var(--space-6);
}

.early-access-benefits li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
}

.early-access-benefits li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600;
}

/* Form Styles */
.early-access-form {
    background-color: white;
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--error-color);
    font-size: var(--font-size-sm);
    margin-top: var(--space-2);
    display: none;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: var(--error-color);
}

.form-group.error .form-error {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

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

.footer-logo {
    height: 2.5rem;
    width: auto;
    margin-bottom: var(--space-2);
    filter: brightness(0) invert(1);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding-top: var(--space-8);
    text-align: center;
}

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

/* Message Overlay */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: var(--space-4);
}

.message-overlay[aria-hidden="false"] {
    display: flex;
}

.message-content {
    background-color: white;
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.message-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto var(--space-4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.message-icon.success {
    background-color: var(--success-color);
    color: white;
}

.message-icon.error {
    background-color: var(--error-color);
    color: white;
}

.message-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.message-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    overflow: auto;
}

.image-modal[aria-hidden="false"] {
    display: flex;
}

.image-modal-content {
    position: relative;
    width: 95%;
    max-width: none;
    max-height: 95vh;
    display: block;
    margin: auto;
}

.image-container {
    width: 100%;
    max-height: 95vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}


.image-container:active {
    cursor: grabbing;
}

.modal-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    display: block;
    border-radius: var(--border-radius);
    transition: transform 0.2s ease;
    transform-origin: center center;
    position: relative;
}

.zoom-controls {
    position: fixed;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    z-index: 302;
}

.zoom-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-weight: bold;
}

.zoom-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.zoom-btn:active {
    transform: scale(0.95);
}

.zoom-reset {
    font-size: 1.2rem;
}


/* Navigation buttons */
.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: var(--space-4) var(--space-3);
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 302;
    font-weight: bold;
    user-select: none;
}

.nav-prev {
    left: var(--space-4);
}

.nav-next {
    right: var(--space-4);
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
    background-color: rgba(0, 0, 0, 0.7);
}

/* Image indicator */
.image-indicator {
    position: fixed;
    top: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    z-index: 302;
}

.indicator-text {
    display: block;
}

.image-modal-close {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
    line-height: 1;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    z-index: 301;
}

.image-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* 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;
}

/* Video Player Section */
.video-player {
    padding: var(--space-20) 0;
    background-color: var(--background-alt);
}

.video-player .section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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