/**
 * Landing (index.html) aligned to shared Library MCP tokens.
 */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top left, var(--bg-page-accent), transparent 28%),
        radial-gradient(circle at top right, var(--bg-page-glow), transparent 22%),
        var(--bg-page);
    color: var(--text-primary);
    line-height: var(--lh-normal);
    font-size: var(--text-base);
    margin: 0;
    min-height: 100vh;
    padding: var(--space-8) var(--space-6);
}

.landing {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px);
    text-align: center;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(10px);
}

.landing-hero {
    margin-bottom: var(--space-6);
}

.hero-brand {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-tertiary);
    margin: 0 0 var(--space-4);
    text-transform: uppercase;
}

.hero-line {
    width: 96px;
    height: 1px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.7;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0 0 var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: var(--lh-tight);
}

.hero-sub {
    max-width: 34rem;
    margin: 0 auto;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-desc {
    max-width: 58ch;
    margin: 0 auto var(--space-8);
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-cta {
    margin-bottom: var(--space-8);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 var(--space-8);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-inverse);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-btn);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(59, 29, 84, 0.24);
}

.btn-hero:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), var(--shadow-btn);
}

.hero-details {
    text-align: left;
    margin-bottom: var(--space-6);
    padding: var(--card-padding);
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    border: var(--border-subtle);
}

.hero-details summary {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.hero-details summary::-webkit-details-marker {
    display: none;
}

.hero-details summary::before {
    content: '\25B6';
    font-size: 0.7rem;
    margin-right: var(--space-2);
    color: var(--accent-primary);
}

.hero-details[open] summary::before {
    content: '\25BC';
}

.steps-list {
    margin: var(--space-4) 0 0;
    padding-left: 1.25rem;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.steps-list li {
    margin-bottom: var(--space-2);
}

.endpoint-hint {
    margin-top: var(--space-5);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.endpoint-url {
    font-family: var(--font-mono);
    word-break: break-all;
    color: var(--accent-primary);
}

.btn-copy-inline {
    margin-left: var(--space-2);
    padding: 4px var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    background: var(--bg-elevated);
    border: var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-copy-inline:hover {
    color: var(--accent-primary);
    border-color: rgba(159, 32, 115, 0.2);
    transform: translateY(-1px);
}

.btn-copy-inline:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.msg {
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
}

.msg.success {
    background: rgba(59, 29, 84, 0.08);
    color: var(--semantic-positive);
    border: 1px solid rgba(59, 29, 84, 0.16);
}

.msg.err {
    background: rgba(179, 63, 50, 0.1);
    color: var(--semantic-negative);
    border: 1px solid rgba(179, 63, 50, 0.18);
}

.landing-footer {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

@media (max-width: 720px) {
    body {
        padding: var(--space-5);
    }

    .landing {
        padding: var(--space-6);
    }

    .btn-hero {
        width: 100%;
    }

    .hero-details {
        padding: var(--space-5);
    }
}
