* {
    box-sizing: border-box;
}

:root {
    --bg: #f6f7fb;
    --text: #0f172a;
    --muted: #5c6475;
    --card-bg: #ffffff;
    --border: #e4e8f1;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --accent: #2563eb;
    --accent-soft: #dbeafe;
    --btn-secondary: #0f172a;
}

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

a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    padding: 56px 0 48px;
}

.hero .pill {
    margin-bottom: 12px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 2.1rem;
}

.hero__lede {
    max-width: 760px;
    margin: 0 0 18px;
}

.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero + main {
    margin-top: 24px;
}

main {
    padding: 48px 0 72px;
    display: grid;
    gap: 20px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.motion-card .motion-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.motion-bar {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.motion-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(37,99,235,0) 0%, rgba(37,99,235,0.35) 50%, rgba(37,99,235,0) 100%);
    animation: motion-shimmer 1.6s linear infinite;
}

.motion-orb {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #dbeafe, #2563eb 70%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    animation: motion-float 3.2s ease-in-out infinite;
}

.hw-ada-reduce-motion .motion-bar::before,
.hw-ada-reduce-motion .motion-orb {
    animation: none !important;
}

@keyframes motion-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes motion-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.muted {
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--btn-secondary);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--accent);
    color: #ffffff;
    background: var(--accent);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
    cursor: pointer;
}

.btn.secondary {
    background: transparent;
    color: var(--btn-secondary);
    border-color: var(--border);
    box-shadow: none;
}

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

pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid #111827;
}

code {
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-card th,
.table-card td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

.table-card thead th {
    background: var(--accent-soft);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--btn-secondary);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.85rem;
}

.center {
    text-align: center;
}

footer {
    text-align: center;
    padding: 28px 20px 40px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero__cta {
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}
