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

body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

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

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

ul {
    list-style: none;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 50;
}

header .max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav ul {
    display: flex;
    gap: 1.5rem;
}

header nav a {
    color: #4b5563;
    transition: color 0.2s;
}

header nav a:hover {
    color: #2563eb;
}

header .btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

header .btn-outline {
    border: 1px solid #2563eb;
    color: #2563eb;
}

header .btn-outline:hover {
    background-color: #dbeafe;
}

header .btn-primary {
    background-color: #2563eb;
    color: white;
}

header .btn-primary:hover {
    background-color: #1d4ed8;
}

/* Mobile Menu */
#mobile-menu {
    display: none;
}

/* Chart responsive styles */
@media (max-width: 640px) {
    #cumulativePerformanceChart {
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    header nav.desktop-nav {
        display: none;
    }
    
    /* Performance section mobile fixes */
    .performance .grid {
        gap: 1rem;
    }
    
    .performance .bg-white {
        padding: 1rem;
    }
    
    .performance canvas {
        max-width: 100%;
    }
    
    header .desktop-buttons {
        display: none;
    }
    
    #mobile-menu {
        display: block;
    }
    
    #mobile-menu.hidden {
        display: none;
    }
    
    #mobile-menu nav ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    #mobile-menu .mobile-buttons {
        margin-top: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #mobile-menu .mobile-buttons a {
        display: block;
        width: 100%;
        padding: 0.5rem 1rem;
        text-align: center;
        border-radius: 0.5rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
}

/* Hero Section Styles */
.hero-bg {
    background-color: #2563eb;
    position: relative;
    padding-top: 4rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 1rem;
}

.hero-bg .max-w-4xl {
    max-width: 56rem;
    margin: 0 auto;
}

.hero-bg h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-bg h1 {
        font-size: 1.875rem;
    }
}

.hero-bg p {
    font-size: 1rem;
    color: white;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #fbbf24 !important;
    color: #000000 !important;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: background-color 0.2s;
    display: block;
    text-decoration: none;
    border: none;
}

.btn-primary:hover {
    background-color: #fcd34d !important;
    color: #000000 !important;
}

.btn-secondary {
    border: 2px solid #FFFFFF !important;
    color: #000000 !important;
    background-color: #FFFFFF !important;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: background-color 0.2s, border-color 0.2s;
    display: block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: #fbbf24 !important;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 767px) {
    .button-container {
        padding: 0 1rem;
    }
}

@media (min-width: 768px) {
    .button-container {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    .btn-primary, .btn-secondary {
        max-width: 280px;
    }
}

/* Section Styles */
section, .section {
    padding: 1rem 0;
}

.section-white {
    background-color: white;
}

.section-gray {
    background-color: #f9fafb;
}

.section-gradient {
    background: linear-gradient(to bottom, white, #f9fafb);
}

.max-w-6xl {
    max-width: 72rem;
    margin: 0 auto;
}

.max-w-4xl {
    max-width: 56rem;
    margin: 0 auto;
}

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

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    h2 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    h2 {
        font-size: 2.5rem;
    }
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

/* Issues Section Styles */
.highlight-underline {
    position: relative;
    display: inline-block;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 8px;
    background-color: #ffbe00;
    opacity: 0.7;
    z-index: 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-white {
    background-color: white;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.text-white {
    color: white;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-900 {
    color: #1e3a8a;
}

.text-red-500 {
    color: #ef4444;
}

.text-green-500 {
    color: #10b981;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-blue-100 {
    color: #dbeafe;
}

/* Button Styles */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

button:focus, .btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

.btn-blue {
    background-color: #2563eb;
    color: white;
}

.btn-blue:hover {
    background-color: #1d4ed8;
}

.btn-white {
    background-color: white;
    color: #2563eb;
}

.btn-white:hover {
    background-color: #eff6ff;
}

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

.btn-outline-white:hover {
    background-color: white;
    color: #2563eb;
}

/* Footer Styles */
footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 3rem 1rem;
}

footer .max-w-6xl {
    max-width: 72rem;
    margin: 0 auto;
}

footer h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

footer h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer a {
    color: #9ca3af;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

footer .border-t {
    border-top: 1px solid #1f2937;
    margin-top: 3rem;
    padding-top: 2rem;
}

/* Utility Classes */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

@media (min-width: 768px) {
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-4xl { font-size: 2.25rem; }
}

.leading-relaxed { line-height: 1.625; }

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.object-cover {
    object-fit: cover;
}

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }

.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:text-blue-600 {
    color: #2563eb;
}

.group:hover .group-hover\:translate-x-2 {
    transform: translateX(0.5rem);
}

.transition-transform {
    transition: transform 0.3s;
}

.transition-colors {
    transition: color 0.2s, background-color 0.2s;
}

.duration-200 {
    transition-duration: 0.2s;
}

.duration-300 {
    transition-duration: 0.3s;
}

.duration-500 {
    transition-duration: 0.5s;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }
    
    .md\:block {
        display: block;
    }
    
    .md\:flex {
        display: flex;
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Chart Container */
.h-80 {
    height: 20rem;
}

/* Transform utilities */
.transform {
    transform: translateZ(0);
}

.-translate-y-1 {
    transform: translateY(-0.25rem);
}

@media (min-width: 768px) {
    .md\:-translate-y-4 {
        transform: translateY(-1rem);
    }
}

/* Border utilities */
.border {
    border-width: 1px;
    border-color: #e5e7eb;
}

.border-2 {
    border-width: 2px;
}

.border-b {
    border-bottom-width: 1px;
    border-color: #e5e7eb;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-blue-600 {
    border-color: #2563eb;
}

.border-white {
    border-color: white;
}

.ring-1 {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ring-blue-600 {
    box-shadow: 0 0 0 1px #2563eb;
}

/* Gradient */
.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/50 {
    --tw-gradient-from: rgba(0, 0, 0, 0.5);
    --tw-gradient-to: rgba(0, 0, 0, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

/* Icon Sizes */
svg {
    display: inline-block;
    vertical-align: middle;
}

.w-4 {
    width: 1rem; /* 16px */
}

.h-4 {
    height: 1rem; /* 16px */
}

.w-5 {
    width: 1.25rem; /* 20px */
}

.h-5 {
    height: 1.25rem; /* 20px */
}

.w-6 {
    width: 1.5rem; /* 24px */
}

.h-6 {
    height: 1.5rem; /* 24px */
}

.w-12 {
    width: 3rem; /* 48px */
}

.h-12 {
    height: 3rem; /* 48px */
}

.w-20 {
    width: 5rem; /* 80px */
}

.h-20 {
    height: 5rem; /* 80px */
}

/* Icon spacing */
.ml-1 {
    margin-left: 0.25rem; /* 4px */
}

.ml-2 {
    margin-left: 0.5rem; /* 8px */
}

.mt-0\.5 {
    margin-top: 0.125rem; /* 2px */
}

/* SVG specific styles */
svg[fill="none"] {
    stroke: currentColor;
}

svg[fill="currentColor"] {
    fill: currentColor;
}

/* Responsive icon sizes */
@media (max-width: 767px) {
    .w-6 {
        width: 1.25rem; /* 20px on mobile */
    }
    
    .h-6 {
        height: 1.25rem; /* 20px on mobile */
    }
    
    .w-12 {
        width: 2.5rem; /* 40px on mobile */
    }
    
    .h-12 {
        height: 2.5rem; /* 40px on mobile */
    }
}

/* Flow Section Styles */
.flow-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.flow-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.flow-content {
    width: 100%;
}

.flow-image {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.flow-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.flow-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    flex-shrink: 0;
}

/* Mobile responsive for flow */
@media (max-width: 767px) {
    .flow-container {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }
    
    .flow-item {
        max-width: 100%;
    }
    
    .flow-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}
