        :root {
            /* Color System */
            --primary: #dc2626;
            --primary-light: #ef4444;
            --primary-dark: #b91c1c;
            --secondary: #f97316;
            --accent: #f59e0b;
            --success: #10b981;
            --warning: #f59e0b;
            --error: #ef4444;

            /* Neutral Colors */
            --white: #ffffff;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;

            /* Semantic Colors */
            --background: var(--white);
            --background-secondary: var(--gray-50);
            --text: var(--gray-900);
            --text-secondary: var(--gray-600);
            --border: var(--gray-200);

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

            /* Border Radius */
            --radius: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;

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

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            color: var(--text);
            background: var(--background);
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary-dark), #B91C1C);
            color: var(--white);
            padding: var(--space-3xl) var(--space-xl);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '🌶️';
            position: absolute;
            font-size: 20rem;
            opacity: 0.1;
            right: -5rem;
            top: -5rem;
            transform: rotate(15deg);
        }

        .hero-title {
            font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 800;
            margin: 0 0 var(--space-lg) 0;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            color: var(--white);
            animation: fadeInUp 0.6s ease-out 0.2s both;
        }

        .hero-subtitle {
            font-size: clamp(1rem, 2vw, 1.25rem);
            margin: 0;
            color: var(--white);
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            animation: fadeInUp 0.6s ease-out 0.4s both;
        }

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

        /* Calculator Layout */
        .calculator-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-2xl);
            margin-top: var(--space-2xl);
        }

        @media (max-width: 768px) {
            .calculator-layout {
                grid-template-columns: 1fr;
                gap: var(--space-xl);
            }
        }

        .calculator-panel {
            background: var(--surface-elevated);
            border-radius: var(--radius-xl);
            padding: var(--space-2xl);
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            position: relative;
            overflow: hidden;
        }

        .calculator-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        .panel-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-dark);
            margin: 0 0 var(--space-lg) 0;
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }

        /* Form Controls */
        .form-group {
            margin-bottom: var(--space-lg);
        }

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

        .form-select,
        .form-input {
            width: 100%;
            padding: var(--space-md);
            border: 2px solid var(--gray-300);
            border-radius: var(--radius);
            font-size: 1rem;
            transition: all 0.3s ease;
            color: var(--gray-900);
            background-color: var(--white);
        }

        /* Ensure placeholder text has sufficient contrast */
        .form-select::placeholder,
        .form-input::placeholder {
            color: var(--gray-500);
            background-color: var(--white);
        }

        /* Ensure disabled state has proper contrast */
        .form-select:disabled,
        .form-input:disabled {
            background-color: var(--gray-100);
            color: var(--gray-500);
            border-color: var(--gray-300);
        }

        .form-select:focus,
        .form-input:focus {
            outline: none;
            border-color: var(--primary-dark);
            box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);
        }

        /* Focus styles for keyboard navigation */
        .form-select:focus-visible,
        .form-input:focus-visible {
            outline: 2px solid var(--primary-dark);
            outline-offset: 2px;
            border-color: var(--primary-dark);
            box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);
        }

        /* Keyboard focus styles for select options */
        .form-select option:focus {
            background-color: var(--primary-dark);
            color: var(--white);
        }

        /* Style number input spinners */
        .form-input[type="number"]::-webkit-inner-spin-button,
        .form-input[type="number"]::-webkit-outer-spin-button {
            opacity: 1;
            height: 2em;
            margin-right: 0.5em;
        }

        /* Error state styling */
        .form-select.error,
        .form-input.error {
            border-color: var(--error);
            background-color: var(--gray-50);
        }

        .error-message {
            color: var(--error);
            font-size: 0.875rem;
            margin-top: var(--space-xs);
            display: none;
        }

        .form-select.error+.error-message,
        .form-input.error+.error-message {
            display: block;
        }

        /* Required field indicator */
        .required-field::after {
            content: " *";
            color: var(--error);
        }

        /* Results Section */
        .results-section {
            background: var(--background-secondary);
            border-radius: var(--radius);
            padding: var(--space-lg);
            margin-top: var(--space-lg);
        }

        .result-item {
            margin-bottom: var(--space-md);
            padding-bottom: var(--space-md);
            border-bottom: 1px solid var(--border);
        }

        .result-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .result-label {
            font-weight: 600;
            color: var(--text);
            margin-bottom: var(--space-xs);
        }

        .result-value {
            color: var(--primary-dark);
            font-size: 1.125rem;
        }

        /* Heat Meter */
        .heat-meter {
            margin-top: var(--space-xl);
            text-align: center;
        }

        .heat-level {
            font-size: 2rem;
            margin-bottom: var(--space-sm);
        }

        .heat-description {
            color: var(--text-secondary);
            font-size: 1.125rem;
        }

        /* Fun Facts */
        .fun-facts {
            background: linear-gradient(135deg, #fff5f5, #fee2e2);
            border-radius: var(--radius);
            padding: var(--space-lg);
            margin-top: var(--space-xl);
        }

        .fun-facts-title {
            color: var(--primary-dark);
            font-weight: 600;
            margin-bottom: var(--space-md);
        }

        .fun-facts-list {
            list-style: none;
        }

        .fun-facts-list li {
            margin-bottom: var(--space-sm);
            padding-left: var(--space-lg);
            position: relative;
        }

        .fun-facts-list li::before {
            content: '🌶️';
            position: absolute;
            left: 0;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero {
                padding: var(--space-2xl) var(--space-lg);
            }

            .container {
                padding: var(--space-xl) var(--space-lg);
            }
        }

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

        *:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            border-radius: var(--radius-sm);
        }

        /* ARIA live region styling */
        .aria-live {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Validation styles */
        .form-select:invalid,
        .form-input:invalid {
            border-color: var(--error);
        }

        .form-select:invalid:focus,
        .form-input:invalid:focus {
            border-color: var(--error);
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
        }

        /* Newsletter Accessibility Improvements */
        .newsletter-form {
            position: relative;
        }

        .newsletter-input {
            width: 100%;
            padding: var(--space-md) var(--space-lg);
            border: 2px solid var(--white);
            border-radius: var(--radius);
            background: var(--gray-800);
            color: var(--white);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .newsletter-input:focus {
            outline: none;
            border-color: var(--accent-light);
            box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
        }

        .newsletter-input:focus-visible {
            outline: 2px solid var(--accent-light);
            outline-offset: 2px;
        }

        .newsletter-input.error {
            border-color: var(--error);
            background: var(--gray-700);
        }

        .error-message {
            color: var(--error);
            font-size: 0.875rem;
            margin-top: var(--space-xs);
            display: none;
        }

        .error-message.visible {
            display: block;
        }

        .success-message {
            color: var(--success);
            font-size: 0.875rem;
            margin-top: var(--space-xs);
            display: none;
        }

        .success-message.visible {
            display: block;
        }

        .newsletter-submit {
            position: relative;
            padding: var(--space-md) var(--space-xl);
            background: var(--accent);
            color: var(--white);
            border: none;
            border-radius: var(--radius);
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .newsletter-submit:focus-visible {
            outline: 2px solid var(--white);
            outline-offset: 2px;
        }

        .newsletter-submit[aria-busy="true"] {
            background: var(--gray-600);
            cursor: not-allowed;
        }

        .newsletter-submit[aria-busy="true"] .button-text {
            visibility: hidden;
        }

        .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border: 2px solid var(--white);
            border-top-color: transparent;
            border-radius: 50%;
            display: none;
            animation: spin 1s linear infinite;
        }

        .newsletter-submit[aria-busy="true"] .loading-spinner {
            display: block;
        }

        @keyframes spin {
            to {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }