* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #dbeafe, #f3e8ff, #fce7f3);
    overflow: hidden;
    padding-top: 80px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    mix-blend-mode: multiply;
    animation: blob 7s infinite;
}

.blob-1 {
    top: 80px;
    left: 40px;
    width: 300px;
    height: 300px;
    background: #93c5fd;
}

.blob-2 {
    top: 160px;
    right: 40px;
    width: 300px;
    height: 300px;
    background: #c4b5fd;
    animation-delay: 2s;
}

.blob-3 {
    bottom: -32px;
    left: 80px;
    width: 300px;
    height: 300px;
    background: #f9a8d4;
    animation-delay: 4s;
}

@keyframes blob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 3rem 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.badge svg {
    color: #9333ea;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2563eb, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

.btn-gradient {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-glass {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    color: #374151;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.btn-glass:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
    position: relative;
}

.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    color: white;
}

.feature-card:hover .feature-icon {
    transform: rotate(6deg);
}

.icon-blue {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
}

.icon-purple {
    background: linear-gradient(135deg, #9333ea, #ec4899);
}

.icon-pink {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #4b5563;
    line-height: 1.625;
}

.stats-box {
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accessibility-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.accessibility-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
}

.accessibility-toolbar {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: 50;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.accessibility-toolbar.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toolbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.toolbar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.btn-reset {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-reset:hover {
    background: #f3f4f6;
}

.toolbar-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-control {
    padding: 0.5rem;
    background: #dbeafe;
    border: none;
    border-radius: 0.5rem;
    color: #2563eb;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-control:hover {
    background: #bfdbfe;
}

.font-size-value {
    min-width: 3rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.toolbar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.toolbar-btn {
    padding: 0.75rem;
    background: #f3f4f6;
    border: none;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 500;
}

.toolbar-btn:hover {
    background: #e5e7eb;
}

.toolbar-btn.active {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.toolbar-btn-wide {
    grid-column: 1 / -1;
}

.toolbar-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.toolbar-footer p {
    font-size: 0.75rem;
    color: #6b7280;
}

body.dark-mode {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1e293b, #312e81, #581c87);
}

body.dark-mode .feature-card,
body.dark-mode .stats-box,
body.dark-mode .btn-glass,
body.dark-mode .badge {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(75, 85, 99, 0.5);
}

body.dark-mode .feature-title,
body.dark-mode .toolbar-title {
    color: #f3f4f6;
}

body.dark-mode .feature-description,
body.dark-mode .hero-description {
    color: #d1d5db;
}

body.contrast-high {
    filter: contrast(1.5);
}

body.contrast-low {
    filter: contrast(0.8);
}

body.dyslexia-mode {
    font-family: Arial, sans-serif;
    letter-spacing: 0.05em;
    word-spacing: 0.1em;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .accessibility-toolbar {
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}
