:root {
    --background: #15161b;
    --surface: #1f2128;
    --surface-hover: #262931;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ececf1;
    --muted: #9a9cab;
    --accent: #ff6600;
    --accent-hover: #ff8533;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(1200px 500px at 50% -120px, rgba(255, 102, 0, 0.18), transparent 70%),
        var(--background);
    color: var(--text);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

a:hover {
    color: var(--accent-hover);
}

code {
    font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* header */

.hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 24px 40px;
    text-align: center;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 8px 0 16px;
    font-size: clamp(34px, 6vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lead {
    margin: 0 auto;
    max-width: 600px;
    color: var(--muted);
    font-size: 17px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

/* buttons */

.button {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}

.button:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.button.primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

/* example cards */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 24px 48px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    background: var(--surface-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #292b33;
}

.thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px 20px;
}

.heading {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: baseline;
    justify-content: space-between;
}

.heading h2 {
    margin: 0;
    font-size: 20px;
}

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

.content p {
    margin: 0;
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 2px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 12px;
}

.launch {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

/* footer */

footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 24px 64px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
