:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f3f4f6;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    margin: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
}

header p {
    margin: 0;
    opacity: 0.9;
}

nav {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}

nav ul {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

h3 {
    color: var(--text);
    margin-top: 2rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }
}

.hero h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
}

.hero-cta {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.hero-cta:hover {
    background: var(--primary-dark);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.demo-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-4px);
}

.demo-card h3 {
    margin-top: 0;
}

.demo-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.media-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.demo-gif {
    max-width: 200px;
    border-radius: 8px;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.image-gallery img {
    border-radius: 8px;
}

.low-contrast {
    color: #d1d5db;
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

form {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
}

.animated-box {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.link-list a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.video-container {
    flex: 1 1 300px;
    min-width: 280px;
}

.video-container video {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    min-width: 400px;
}

caption {
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

th, td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
}

footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

aside {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

aside h3 {
    margin-top: 0;
}
