@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    color-scheme: dark;
    --bg: #0a0908;
    --ink: #ede8e0;
    --muted: #918c85;
    --faint: #48443f;
    --line: #1f1d1a;
    --paper: #131210;
    --warm: #1a1816;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover { opacity: 0.6; }

/* ---- Layout ---- */

.page {
    width: min(920px, calc(100% - 64px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* ---- Topbar ---- */

.topbar {
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-transform: uppercase;
}

/* ---- Hero ---- */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 0 0 72px;
}

.eyebrow {
    margin-bottom: 28px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1 {
    max-width: 20ch;
    margin-bottom: 20px;
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--ink);
}

.hero h1 {
    background: linear-gradient(135deg, #ede8e0 0%, #918c85 40%, #ede8e0 60%, #48443f 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subcopy {
    max-width: 540px;
    margin-bottom: 48px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.instruction-label {
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ---- The instruction — the core artifact ---- */

.instruction {
    position: relative;
    max-width: 780px;
    margin-bottom: 40px;
    padding: 32px 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.4);
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: var(--ink);
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.instruction:hover {
    border-color: #3d3832;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 12px 48px rgba(0, 0, 0, 0.5);
}

.instruction:focus-visible {
    outline: 2px solid #b9b2a7;
    outline-offset: 4px;
}

.instruction::after {
    content: 'click to copy';
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
    opacity: 0;
    transition: opacity 0.25s;
}

.instruction:hover::after {
    opacity: 1;
}

.instruction[data-copied]::after {
    content: 'copied';
    opacity: 1;
    color: var(--ink);
}

/* ---- Human-facing resources ---- */

.human {
    padding-top: 10px;
}

.human-label {
    padding-bottom: 14px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.trust {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.trust strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    margin-right: 10px;
}

.trust a {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.trust a:hover { opacity: 0.5; }

.setup {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.setup p {
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.setup code {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--warm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    user-select: all;
}

.setup a {
    margin-left: auto;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.setup a:hover { opacity: 0.5; }

/* ---- Footer ---- */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 0 48px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.footer-links a { color: var(--muted); }
.footer-links a:hover { opacity: 0.5; }

.footer-sep {
    color: var(--faint);
    font-weight: 400;
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.01em;
    transition: border-color 0.2s;
}

.powered-by img {
    display: block;
}

.powered-by:hover {
    border-color: #3d3832;
    opacity: 1;
}

.footer-tagline {
    font-size: 13px;
    font-weight: 400;
    color: var(--faint);
    letter-spacing: 0.01em;
}

/* ---- Secondary pages ---- */

.secondary-page {
    padding-bottom: 40px;
}

.secondary-page h1 {
    max-width: none;
    margin-bottom: 24px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
}

.secondary-intro {
    max-width: 680px;
    margin-bottom: 48px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.secondary-content section {
    margin-bottom: 36px;
}

.secondary-content h2 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.secondary-content section p {
    max-width: 680px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.secondary-content section a {
    color: var(--ink);
    font-weight: 500;
}

/* ---- FAQ page ---- */

.faq-page h1 {
    max-width: 12ch;
    margin-bottom: 24px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.02;
}

.faq-kicker {
    margin-bottom: 16px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.faq-intro {
    max-width: 680px;
    margin-bottom: 48px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--line);
}

.faq-number {
    padding-top: 2px;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--faint);
}

.faq-copy h2 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.faq-copy p {
    max-width: 680px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.faq-copy code {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--warm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink);
}

.faq-copy a {
    color: var(--ink);
    font-weight: 500;
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
    .page { width: min(100% - 40px, 920px); }
    .hero { padding: 20px 0 60px; }
    h1 { font-size: 48px; margin-bottom: 36px; }
    .instruction { padding: 24px; }
    .instruction::after { display: none; }
    .trust { flex-direction: column; align-items: flex-start; gap: 10px; }
    .trust a { margin-left: 0; }
    .setup { flex-direction: column; align-items: flex-start; gap: 12px; }
    .setup a { margin-left: 0; }
    .faq-item { grid-template-columns: 1fr; gap: 8px; }
    .faq-copy h2 { font-size: 20px; }
}
