/* Shared stylesheet for accelerator subpages */

:root {
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-gray: #f5f5f5;
    --blue: #1877f2;
    --text-dark: #1a1a1a;
    --text-mid: #525252;
    --text-light: #737373;
    --border-light: #e5e5e5;
    --border-mid: #d1d1d1;
}

html {
    overflow-x: clip;
    overscroll-behavior-y: contain;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gray);
    color: var(--text-dark);
    overscroll-behavior-y: contain;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
}

.header-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0.75rem max(1.5rem, 2vw);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 900;
    font-size: max(1.25rem, 1.1vw);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #000 0%, #525252 50%, #a3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    text-transform: uppercase;
}

.back {
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    transition: color 0.2s;
}

.back:hover {
    color: var(--text-dark);
}

/* Page wrap */
.wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.page-label {
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.sub {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.sub-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
}

.sub-link:hover {
    text-decoration: underline;
}

.sub-arrow {
    color: #1877f2;
    display: inline-block;
}

.label-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
}

/* Button .btn-pill */
.btn-pill {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    width: fit-content;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(235, 235, 235, 0.85) 50%,
        rgba(255, 255, 255, 0.97) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 18px rgba(24, 119, 242, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
    color: #111;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8),
        0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn-pill:hover {
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(235, 235, 235, 0.95) 50%,
        rgba(255, 255, 255, 1) 100%
    );
    transform: scale(1.02);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 24px rgba(24, 119, 242, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.btn-pill:active {
    transform: scale(0.98);
}

.btn-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-pill.btn-pulse {
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 32px rgba(24, 119, 242, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
    animation: btn-pulse 1s ease-in-out infinite;
}

@keyframes btn-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    animation: shine-sweep 2s ease-in-out infinite;
    border-radius: 9999px;
    pointer-events: none;
}

@keyframes shine-sweep {
    0% {
        transform: translateX(-100%);
    }
    40% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}
