/* ============================================================
 * 69Code — Shared Design System
 * style.css  (referenced by all pages)
 * ============================================================ */

/* ========== Design Tokens ========== */
:root {
    --bg-color: #0b0f19;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --accent-gold: #f59e0b;
    --card-bg: #111827;
    --card-border: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(11, 15, 25, 0.8);
    --nav-height: 64px;
    --font-ui: system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, monospace;
}

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* ========== Grain noise overlay ========== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* ========== Background Elements ========== */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -2;
    height: 100%;
    min-height: 100vh;
}

.glow-blue {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(37, 99, 235, 0.2);
    filter: blur(140px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: slowFloat1 18s ease-in-out infinite;
}

.glow-gold {
    position: absolute;
    top: 30%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: rgba(245, 158, 11, 0.15);
    filter: blur(140px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: slowFloat2 22s ease-in-out infinite;
}

.glow-purple {
    position: absolute;
    bottom: 10%;
    left: 25%;
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.08);
    filter: blur(160px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: slowFloat3 26s ease-in-out infinite;
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover { color: #fff; }

.modal-body-text {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 32px;
    font-size: 15px;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
}

.modal-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.modal-btn:hover { background: var(--primary-blue-hover); }

/* ========== Navigation ========== */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 28px;
    width: 28px;
    border-radius: 50%;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-gold { color: #f59e0b; }
.logo-gray { color: #4b5563; }

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.auth-buttons {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4px;
    margin-left: 8px;
}

.btn {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s;
}

.btn-login {
    background: transparent;
    color: var(--text-muted);
}

.btn-login:hover { color: #fff; }

.btn-register {
    background: var(--primary-blue);
    color: white;
}

.btn-register:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
}

/* ========== Badge ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 2px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== Buttons ========== */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

.btn-text {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.btn-text:hover { color: #fff; }

/* ========== Global Section Layout ========== */
.section {
    padding: 100px 5%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    margin-bottom: 64px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(140deg, #f9fafb 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 16px;
    color: #9ca3af;
    max-width: 440px;
    line-height: 1.6;
}

.section-center-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-center-header .section-title { margin-bottom: 16px; }
.section-center-header .section-desc { margin: 0 auto; }

/* ========== Cards ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.card:hover::after { left: 130%; }

.card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.03);
    transform: translateY(-8px) scale(1.02);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.tag-anthropic { color: #f59e0b; }
.tag-openai    { color: #60a5fa; }
.tag-google    { color: #c084fc; }

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.card-desc {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
}

/* features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 100px;
}

/* ========== Token Cards ========== */
.token-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) { .token-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .token-grid { grid-template-columns: 1fr; } }

.token-card {
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 36px 24px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: visible; /* keep badges above edge */
}

.token-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.token-card:hover::after { left: 130%; }

.token-card:hover,
.card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.token-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-highlight {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.08) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.card-highlight:hover {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.5), 0 20px 60px rgba(245, 158, 11, 0.15) !important;
}

.t-badge {
    position: absolute;
    top: 0;
    right: 24px;
    transform: translateY(-50%);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.t-recommend { background: linear-gradient(90deg, #f59e0b, #ea580c); color: #fff; border: none; }
.t-codex     { background: #1e3a8a; color: #fff; }
.t-cheap     { background: #334155; color: #e2e8f0; }
.t-gemini    { background: #4c1d95; color: #fff; }
.t-search    { background: #0f172a; color: #cbd5e1; }

.t-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.t-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 32px;
    flex: 1;
}

.t-link {
    color: #f59e0b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.t-link:hover { color: #fcd34d; }

/* ========== Pricing Table ========== */
.pricing-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent !important;
    min-width: 800px;
}

.pricing-table th {
    text-align: left;
    padding: 24px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table td {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-table tr { transition: background 0.2s; }
.pricing-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

.rate-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

a.rate-badge {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

a.rate-badge:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15) !important;
    color: #fcd34d;
}

.pricing-note {
    text-align: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 16px;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ========== Indicator / Status ========== */
.indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #10b981;
    margin-bottom: 12px;
    font-weight: 500;
}

.dot-green {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 80px 5% 0;
    position: relative;
    z-index: 10;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.footer-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.footer-subtitle {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    padding-bottom: 32px;
    color: #6b7280;
    font-size: 14px;
}

.footer-bottom a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover { color: #9ca3af; }

/* ========== Page Hero (for sub-pages) ========== */
.page-hero {
    padding: calc(var(--nav-height) + 80px) 5% 64px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.page-hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f59e0b;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(140deg, #f9fafb 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 560px;
}

/* ========== Prose / Article Content ========== */
.prose {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5% 120px;
    position: relative;
    z-index: 10;
    color: #d1d5db;
    line-height: 1.8;
    font-size: 16px;
}

.prose h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 56px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    letter-spacing: -0.5px;
}

.prose h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 36px 0 12px;
}

.prose p {
    margin-bottom: 16px;
    color: #9ca3af;
}

.prose ul, .prose ol {
    margin: 12px 0 20px 24px;
    color: #9ca3af;
}

.prose li { margin-bottom: 8px; }

.prose a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96,165,250,0.3);
    transition: border-color 0.2s, color 0.2s;
}

.prose a:hover {
    color: #93c5fd;
    border-color: rgba(147,197,253,0.5);
}

.prose strong { color: #f3f4f6; font-weight: 600; }

.prose code {
    font-family: var(--font-mono);
    font-size: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 2px 8px;
    color: #f59e0b;
}

.prose pre {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
}

.prose pre .keyword  { color: #f59e0b; }
.prose pre .variable { color: #60a5fa; }
.prose pre .string   { color: #10b981; }
.prose pre .comment  { color: #4b5563; }

.prose blockquote {
    border-left: 3px solid #f59e0b;
    margin: 24px 0;
    padding: 12px 20px;
    background: rgba(245,158,11,0.05);
    border-radius: 0 8px 8px 0;
    color: #9ca3af;
    font-style: italic;
}

.prose .callout {
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    color: #93c5fd;
    font-size: 14px;
}

.prose .callout-warn {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.2);
    color: #fcd34d;
}

.prose .callout-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.prose table th {
    text-align: left;
    padding: 12px 16px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.prose table td {
    padding: 12px 16px;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.prose table tr:last-child td { border-bottom: none; }

/* ========== Animations ========== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatWidget {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes slowFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-50px, 40px) scale(1.1); }
}

@keyframes slowFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(40px, -50px) scale(1.05); }
}

@keyframes slowFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(20px, -60px) scale(1.08); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50%       { box-shadow: 0 0 14px 2px rgba(255,255,255,0.05); }
}

/* ========== Docs Layout ========== */
.docs-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.docs-sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 40px 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(11,15,25,0.6);
    backdrop-filter: blur(20px);
    z-index: 20;
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #4b5563;
    text-transform: uppercase;
    padding: 0 24px;
    margin: 28px 0 10px;
}

.sidebar-section-label:first-child { margin-top: 0; }

.sidebar-link {
    display: block;
    padding: 8px 24px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.sidebar-link:hover {
    color: #d1d5db;
    background: rgba(255,255,255,0.03);
    border-left-color: rgba(255,255,255,0.15);
}

.sidebar-link.active {
    color: #f59e0b;
    border-left-color: #f59e0b;
    background: rgba(245,158,11,0.05);
}

.docs-content {
    flex: 1;
    max-width: 860px;
    padding: 60px 5% 120px;
    position: relative;
    z-index: 10;
}

.docs-content h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(140deg, #f9fafb 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.docs-content .lead {
    font-size: 17px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Step circles for docs */
.step-list { display: flex; flex-direction: column; gap: 40px; }

.step-item {
    display: flex;
    gap: 24px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.step-body { flex: 1; }

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.7;
}

.step-desc a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96,165,250,0.3);
}

.step-desc a:hover { color: #93c5fd; }

.code-block {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    overflow-x: auto;
    position: relative;
}

.code-block .comment  { color: #4b5563; }
.code-block .keyword  { color: #f59e0b; }
.code-block .variable { color: #60a5fa; }
.code-block .string   { color: #10b981; }
.code-block .cmd      { color: #f9fafb; }

.docs-section {
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.docs-section-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 10px;
}

.docs-section-desc {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .docs-sidebar { display: none; }
    .page-hero h1 { font-size: 38px; }
    .prose h2 { font-size: 22px; }
    .section-title { font-size: 36px; }
    .footer-title { font-size: 44px; }
}

svg { fill: currentColor; }
