:root {
    --bg: #0a0a0b;
    --bg-raised: #141416;
    --card: #1c1c1f;
    --card-hover: #222226;
    --border: #303036;
    --border-bright: #45454d;
    --text: #fafafa;
    --text-soft: #b4b4bd;
    --text-muted: #7f7f89;
    --purple: #a78bfa;
    --purple-deep: #7c3aed;
    --green: #34d399;
    --green-deep: #059669;
    --amber: #fbbf24;
    --display: 'Space Grotesk', sans-serif;
    --serif: 'Source Serif 4', Georgia, serif;
    --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(124, 58, 237, 0.13), transparent 34rem),
        radial-gradient(circle at 100% 28%, rgba(5, 150, 105, 0.10), transparent 32rem),
        var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-header {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    color: var(--text);
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand span {
    color: var(--green);
}

.back-link {
    color: var(--text-soft);
    font-size: 0.9rem;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--text);
}

.shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 96px;
}

.hero {
    max-width: 820px;
    margin-bottom: 54px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.12;
}

h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.55rem, 7vw, 5.25rem);
    letter-spacing: -0.055em;
}

.hero-lede {
    max-width: 690px;
    margin: 24px 0 0;
    color: var(--text-soft);
    font-family: var(--serif);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero-note {
    margin: 22px 0 0;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.wins-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.win-card {
    min-height: 330px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
    border: 1px solid var(--border);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.win-card::before {
    content: '';
    width: 180px;
    height: 180px;
    position: absolute;
    top: -92px;
    right: -68px;
    background: var(--card-accent, var(--purple));
    border-radius: 999px;
    filter: blur(50px);
    opacity: 0.16;
}

.win-card:hover,
.win-card:focus-visible {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: var(--card-accent, var(--purple));
    outline: none;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.win-card h2 {
    max-width: 470px;
    margin: 42px 0 14px;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    letter-spacing: -0.035em;
}

.win-card p {
    max-width: 480px;
    margin: 0;
    color: var(--text-soft);
}

.card-action {
    margin-top: auto;
    padding-top: 34px;
    color: var(--card-accent, var(--purple));
    font-weight: 600;
}

.collection-rule {
    max-width: 780px;
    margin: 56px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detail-shell {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 96px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 64px;
    align-items: start;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
}

.detail-copy h1 {
    max-width: 690px;
    font-size: clamp(2.55rem, 6vw, 4.8rem);
}

.detail-copy .hero-lede {
    max-width: 650px;
}

.outcome {
    max-width: 650px;
    margin-top: 32px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.outcome strong {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.outcome span {
    color: var(--text-soft);
}

.video-wrap {
    width: 100%;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-bright);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    aspect-ratio: 9 / 16;
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-link {
    margin: 12px 0 0;
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

.workflow {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 64px;
}

.section-label {
    margin: 0 0 12px;
    color: var(--purple);
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.workflow h2 {
    margin: 0 0 24px;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    letter-spacing: -0.035em;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: workflow-step;
}

.steps li {
    counter-increment: workflow-step;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    padding: 25px 0;
    border-top: 1px solid var(--border);
}

.steps li::before {
    content: counter(workflow-step, decimal-leading-zero);
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.9rem;
}

.steps h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.steps p {
    margin: 0;
    color: var(--text-soft);
}

.prompt-card {
    margin: 64px 0;
    overflow: hidden;
    background: var(--bg-raised);
    border: 1px solid var(--border-bright);
    border-radius: 16px;
}

.prompt-head {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.prompt-head strong {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.copy-button,
.primary-button {
    appearance: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--sans);
    font-weight: 600;
}

.copy-button {
    padding: 9px 13px;
    background: var(--purple-deep);
    color: white;
}

.copy-button:hover,
.copy-button:focus-visible {
    background: var(--purple);
    color: #17111f;
    outline: none;
}

.prompt-text {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
    color: #e4e4e7;
    font-family: var(--mono);
    font-size: 0.88rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.copy-status {
    min-height: 1.4em;
    margin: 10px 18px 14px;
    color: var(--green);
    font-size: 0.82rem;
}

.checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.check {
    padding: 18px;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-soft);
}

.check::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
}

.boundary {
    margin-top: 40px;
    padding: 22px 24px;
    background: rgba(251, 191, 36, 0.075);
    border-left: 3px solid var(--amber);
    color: var(--text-soft);
}

.boundary strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.next-win {
    margin-top: 64px;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
}

.next-win a {
    color: var(--purple);
    font-weight: 600;
}

.site-footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 42px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (max-width: 760px) {
    .shell,
    .detail-shell {
        padding-top: 34px;
    }

    .wins-grid,
    .detail-hero,
    .checks {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        gap: 42px;
    }

    .video-wrap {
        width: min(310px, 100%);
        margin: 0 auto;
    }

    .outcome {
        grid-template-columns: 1fr;
    }

    .site-footer,
    .next-win {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .win-card {
        transition: none;
    }
}
