:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #141416;
    --bg-card: #1a1a1e;
    --border: #2a2a30;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #4ade80;
    --accent-soft: #6b8f75;
    --accent-dim: #166534;
    --method-get: #3b82f6;
    --method-post: #f59e0b;
    --warning-text: #c9a654;
    --warning-border: rgba(201, 166, 84, 0.25);
    --warning-bg: rgba(201, 166, 84, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: "Geist", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
}

/* Subtle grid background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(34, 197, 94, 0.1) 1px,
            transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    min-height: 100vh;
}

.logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: invert(0.75);
}

.tagline {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 4.5rem;
    letter-spacing: 0.02em;
    font-family: "Geist", sans-serif;
    text-wrap: balance;
    text-transform: smallcaps;
    margin-bottom: 1.5rem;
}

.callout.scroll {
    position: absolute;
    bottom: 2rem;
}

.callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.callout svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.callout-text,
.endpoint-description {
    color: var(--text-secondary);
}

.callout a {
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.callout a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.warning-banner {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--warning-text);
}

.warning-banner svg {
    flex-shrink: 0;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.endpoints {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.endpoint {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.2s, transform 0.2s;
}

.endpoint:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.endpoint-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.method {
    font-family: "Geist Mono", monospace;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.method-get {
    background: rgba(59, 130, 246, 0.15);
    color: var(--method-get);
}

.method-post {
    background: rgba(245, 158, 11, 0.15);
    color: var(--method-post);
}

.path {
    font-family: "Geist Mono", monospace;
    color: var(--text-primary);
}

.endpoint-desc {
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.code-title {
    font-family: "Geist Mono", monospace;
    color: var(--text-muted);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Geist", sans-serif;
}

.copy-btn:hover {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

code {
    font-family: "Geist Mono", monospace;
    color: var(--text-secondary);
}

.json-key {
    color: #7dd3fc;
}

.json-string {
    color: #86efac;
}

.quick-start {
    display: grid;
    gap: 1rem;
}

.snap-section {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.snap-section>section {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 1.5s ease-in-out 2;
}

.json-comment {
    color: #6b7280;
    font-style: italic;
}

.json-boolean {
    color: #f59e0b;
}

.json-number {
    color: #22d3ee;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.try-it-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
    margin-top: 0.5rem;
}

.try-it-section h3 {
    font-family: "Geist Mono", monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-soft);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.try-it-section h3::before {
    content: "▸";
    color: var(--accent);
}

.try-it-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.try-it-form .url,
.try-it-form label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.try-it-form .fail {
    margin-right: auto;
    color: var(--text-secondary);
}

.try-it-form input {
    flex: 1;
    font-family: "Geist Mono", monospace;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}


.try-it-form input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    font: inherit;
    color: currentColor;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 2px;
    padding: 2px;
    flex: 0 0 auto;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--accent-dim);
    border-radius: 2px;
}


input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.try-it-form input::placeholder {
    color: var(--text-muted);
}

.try-it-form input:focus {
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.try-it-form button {
    font-family: "Geist", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-dim) 0%, #1a5c2e 100%);
    border: 1px solid var(--accent-soft);
    border-radius: 8px;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
}

.try-it-form button:hover {
    background: linear-gradient(135deg, #1a5c2e 0%, var(--accent-dim) 100%);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.try-it-form button:active {
    transform: translateY(0);
}

.try-it-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.try-it-hint {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
    color: var(--text-muted);
    transition: color 0.2s;
}

.try-it-hint.error {
    color: #f87171;
}

.try-it-hint.success {
    color: var(--accent);
}