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

/* GameAP color palette based on Tailwind stone colors */
:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;

    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --sky-500: #0ea5e9;

    --lime-500: #84cc16;
    --lime-600: #65a30d;

    --red-500: #ef4444;
    --red-600: #dc2626;

    --orange-400: #fb923c;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--stone-900);
    min-height: 100vh;
    color: var(--stone-100);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    height: 96px;
    margin-bottom: 32px;
}

.subtitle {
    color: var(--stone-400);
    font-size: 1.1rem;
}

main {
    flex: 1;
}

.demo-card {
    background: var(--stone-800);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--stone-700);
}

.demo-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--stone-100);
}

.demo-card p {
    color: var(--stone-400);
    margin-bottom: 24px;
    line-height: 1.6;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 32px;
    padding: 20px 0;
    border-top: 1px solid var(--stone-700);
    border-bottom: 1px solid var(--stone-700);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--orange-400);
}

.feature-text {
    font-size: 0.85rem;
    color: var(--stone-400);
}

.btn-primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: var(--stone-700);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--stone-600);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    background: var(--stone-800);
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--stone-600);
    color: var(--stone-400);
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--stone-500);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.9rem;
}

.demo-info {
    margin-top: 24px;
    background: rgba(132, 204, 22, 0.1);
    border: 1px solid rgba(132, 204, 22, 0.3);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.demo-info h3 {
    color: var(--lime-500);
    margin-bottom: 16px;
}

.demo-info p {
    color: var(--stone-400);
    margin-bottom: 16px;
}

.credentials {
    background: var(--stone-800);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.credential-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.credential-row:not(:last-child) {
    border-bottom: 1px solid var(--stone-700);
}

.credential-label {
    color: var(--stone-400);
    font-size: 0.9rem;
}

.credential-value {
    color: var(--stone-100);
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--stone-700);
    padding: 4px 10px;
    border-radius: 4px;
}

.credential-value.copyable {
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.credential-value.copyable:hover {
    background: var(--stone-600);
}

.credential-value.copyable::after {
    content: 'Click to copy';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--stone-700);
    color: var(--stone-200);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: 6px;
    pointer-events: none;
}

.credential-value.copyable:hover::after {
    opacity: 1;
    visibility: visible;
}

.credential-value.copied {
    background: var(--lime-600);
}

.credential-value.copied::after {
    content: 'Copied!';
    opacity: 1;
    visibility: visible;
    background: var(--lime-600);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--lime-600);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: var(--lime-500);
    transform: translateY(-1px);
}

.expire-notice {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--stone-500);
}

footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--stone-700);
}

footer p {
    color: var(--stone-500);
    font-size: 0.9rem;
}

footer a {
    color: var(--blue-500);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }

    .logo {
        height: 52px;
    }

    .demo-card {
        padding: 24px;
    }

    .features {
        flex-direction: column;
        gap: 16px;
    }

    .feature {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
}
