/* ============================================
   MULTIREGISTER LANDING — DESIGN SYSTEM
   Single CSS file for all landing pages.
   ============================================ */

/* --- Variables --- */
:root {
    --bg: #0a0e17;
    --bg2: #0f1420;
    --card: #141924;
    --card-hover: #1a2030;
    --subtle: rgba(255,255,255,0.03);

    --text: #e8ecf4;
    --text2: #8892a6;
    --muted: #4a5568;

    --accent: #2563eb;
    --accent-mid: #0891b2;
    --accent-end: #06b6d4;
    --accent-glow: rgba(6,182,212,0.15);

    --green: #22c55e;
    --green-glow: rgba(34,197,94,0.15);
    --green-subtle: rgba(34,197,94,0.08);
    --green-border: rgba(34,197,94,0.2);

    --yellow: #eab308;
    --yellow-glow: rgba(234,179,8,0.15);
    --yellow-subtle: rgba(234,179,8,0.08);
    --yellow-border: rgba(234,179,8,0.2);

    --red: #ef4444;
    --red-glow: rgba(239,68,68,0.12);
    --red-subtle: rgba(239,68,68,0.08);
    --red-border: rgba(239,68,68,0.2);

    --purple: #a78bfa;
    --orange: #f97316;

    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);

    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --ease: 0.2s cubic-bezier(0.4,0,0.2,1);
    --ease-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
}
[x-cloak] { display: none !important; }
/* --- Reset --- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; background: #0a0e17;  }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: white; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Ambient Background --- 
.page-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}
.page-wrapper::after {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    animation: ambientFloat 20s ease-in-out infinite alternate;
}*/
/* --- Ambient Background --- */
.page-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;

}
.page-wrapper::after {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);


}

/* --- Layout --- */
.page-wrapper { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Navigation --- */

.nav {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 100; padding: 1rem 0;
    transition: var(--ease-slow);
    overflow: hidden;
    background: transparent;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(20px);
     border-bottom: 1px solid transparent;
     will-change: background, border-color;
     
}

.nav.scrolled {
    background: rgba(10,14,23,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.nav__left {
    display: flex; align-items: center; gap: 2rem;
}
.nav__brand {
    font-family: var(--font-display);
    font-size: 1.35rem; letter-spacing: -0.02em;
}
.nav__brand span { color: var(--accent-end); }

.nav__brand-product {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
}
.nav__brand-icon {
    width: 24px; height: 24px;
    border: 1.5px solid var(--accent-end); border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.5625rem;
    color: var(--accent-end); font-weight: 500;
}
.nav__back {
    font-size: 0.8125rem; color: var(--muted);
    display: flex; align-items: center; gap: 0.375rem;
    transition: var(--ease);
}
.nav__back:hover { color: var(--text2); }
.nav__back svg { width: 14px; height: 14px; }

.nav__links {
    display: flex; align-items: center; gap: 1.5rem;
}
.nav__link {
    font-size: 0.875rem; color: var(--text2);
    letter-spacing: 0.02em; transition: var(--ease);
    position: relative;
}
.nav__link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-end));
    transition: var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
    font-size: 0.8125rem; font-weight: 500;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    transition: var(--ease);
}
.nav__cta:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-end);
}
.nav__cta--filled {
    background: linear-gradient(135deg, var(--accent), var(--accent-mid));
    color: white; border: none;
}
.nav__cta--filled:hover {
    box-shadow: 0 0 25px rgba(37,99,235,0.3);
    transform: translateY(-1px);
}

/* Product-colored CTAs */
.nav__cta--green { background: var(--green); color: var(--bg); border: none; }
.nav__cta--green:hover { box-shadow: 0 0 25px rgba(34,197,94,0.3); }
.nav__cta--yellow { background: var(--yellow); color: var(--bg); border: none; }
.nav__cta--yellow:hover { box-shadow: 0 0 25px rgba(234,179,8,0.3); }
.nav__cta--red { background: var(--red); color: white; border: none; }
.nav__cta--red:hover { box-shadow: 0 0 25px rgba(239,68,68,0.3); }

/* Mobile toggle */
.nav__mobile-toggle {
    display: none; background: none; border: none;
    color: var(--text); cursor: pointer; padding: 0.5rem;
}
.nav__mobile-toggle svg { width: 24px; height: 24px; }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0;
    background: rgba(10,14,23,0.97);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: none; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1.5rem;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 1.75rem; color: var(--text2); transition: var(--ease);
}
.mobile-menu__link:hover { color: var(--text); }
.mobile-menu__close {
    position: absolute; top: 1rem; right: 1.5rem;
    background: none; border: none; color: var(--text2); cursor: pointer;
}
.mobile-menu__close svg { width: 28px; height: 28px; }

/* --- Hero --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 8rem 0 5rem; position: relative;
}
.hero--center { text-align: center; }
.hero--center .hero__content { max-width: 800px; margin: 0 auto; }
.hero__content { max-width: 780px; }
.hero--short {
    min-height: auto;
    padding: 10rem 0 3rem;
}
.hero__badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--accent-end);
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp 0.8s ease-out 0.2s forwards;
}
.hero__badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-end);
    animation: pulse 2s ease-in-out infinite;
}

.hero__registries {
    opacity: 0; animation: fadeUp 0.8s ease-out 0.7s forwards;
}
/* Product color badges */
.hero__badge--green { color: var(--green); }
.hero__badge--green .hero__badge-dot { background: var(--green); }
.hero__badge--yellow { color: var(--yellow); }
.hero__badge--yellow .hero__badge-dot { background: var(--yellow); }
.hero__badge--red { color: var(--red); }
.hero__badge--red .hero__badge-dot { background: var(--red); }

@keyframes pulse {
    0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(6,182,212,0.4); }
    50% { opacity:0.8; box-shadow: 0 0 0 8px rgba(6,182,212,0); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400; line-height: 1.1;
    letter-spacing: -0.03em; margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp 0.8s ease-out 0.4s forwards;
}
.hero__title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
/* Product color gradients for hero title */
.hero__title--green em {
    background: linear-gradient(135deg, #16a34a, var(--green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__title--yellow em {
    background: linear-gradient(135deg, #ca8a04, var(--yellow));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__title--red em {
    background: linear-gradient(135deg, #dc2626, var(--red));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}



.hero__subtitle {
    font-size: 1.125rem; font-weight: 300;
    color: var(--text2); line-height: 1.8;
    max-width: 580px; margin-bottom: 3rem;
    opacity: 0; animation: fadeUp 0.8s ease-out 0.6s forwards;
}
.hero--center .hero__subtitle { margin-left: auto; margin-right: auto; }

.hero__actions {
    display: flex; align-items: center; gap: 1rem;
    opacity: 0; animation: fadeUp 0.8s ease-out 0.8s forwards;
}
.hero--center .hero__actions { justify-content: center; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
    padding: 0.875rem 1.75rem; border-radius: var(--radius-sm);
    border: none; cursor: pointer; transition: var(--ease);
}
.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-mid));
    color: white; box-shadow: 0 0 30px rgba(37,99,235,0.2);
}
.btn--primary:hover { box-shadow: 0 0 40px rgba(37,99,235,0.35); transform: translateY(-1px); }
.btn--ghost {
    background: transparent; color: var(--text2);
    border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--text); border-color: var(--border-hover); background: var(--subtle); }

/* Product buttons */
.btn--green { background: var(--green); color: var(--bg); }
.btn--green:hover { box-shadow: 0 0 35px rgba(34,197,94,0.3); transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--bg); }
.btn--yellow:hover { box-shadow: 0 0 35px rgba(234,179,8,0.3); transform: translateY(-1px); }
.btn--red { background: var(--red); color: white; }
.btn--red:hover { box-shadow: 0 0 35px rgba(239,68,68,0.3); transform: translateY(-1px); }

.btn__icon { width: 16px; height: 16px; }

/* --- Sections --- */
.section { padding: 5rem 0; }
.section__label {
    font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
    color: var(--accent-end); letter-spacing: 0.15em;
    text-transform: uppercase; margin-bottom: 1rem;
}
.section__label--green { color: var(--green); }
.section__label--yellow { color: var(--yellow); }
.section__label--red { color: var(--red); }

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400; letter-spacing: -0.02em;
    line-height: 1.2; margin-bottom: 1rem;
}
.section__description {
    font-size: 1.0625rem; color: var(--text2);
    max-width: 600px; font-weight: 300; line-height: 1.8;
}
.section__header { margin-bottom: 3rem; }
.divider {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 3rem 0;
}

/* --- Cards --- */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    position: relative; overflow: hidden; transition: var(--ease);
}
.card:hover { border-color: var(--border-hover); background: var(--card-hover); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-end), transparent);
    opacity: 0; transition: var(--ease);
}
.card:hover::before { opacity: 1; }

/* --- Grid layouts --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }

/* --- Feature blocks --- */
.feature {
    padding: 1.5rem; border: 1px solid var(--border);
    border-radius: var(--radius-md); transition: var(--ease);
}
.feature:hover { border-color: var(--border-hover); background: var(--card); }
.feature__icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; font-size: 1.125rem;
}
.feature__title { font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.375rem; }
.feature__text { font-size: 0.8125rem; color: var(--text2); line-height: 1.65; font-weight: 300; }

/* --- Stat blocks --- */
.stat {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.5rem; transition: var(--ease);
}
.stat:hover { border-color: var(--border-hover); }
.stat__value {
    font-family: var(--font-display); font-size: 1.75rem;
    letter-spacing: -0.02em; margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat__label { font-size: 0.8125rem; color: var(--muted); }

/* --- Code blocks --- */
.code-block {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.code-block__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--border);
}
.code-block__dots { display: flex; gap: 6px; }
.code-block__dot { width: 10px; height: 10px; border-radius: 50%; }
.code-block__dot--r { background: var(--red); opacity: 0.7; }
.code-block__dot--y { background: var(--yellow); opacity: 0.7; }
.code-block__dot--g { background: var(--green); opacity: 0.7; }
.code-block__title { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.code-block__body { padding: 1.5rem; overflow-x: auto; }
.code-block__body pre {
    font-family: var(--font-mono); font-size: 0.8125rem;
    line-height: 1.9; color: var(--text2); margin: 0; white-space: pre;
}
.c-comment { color: var(--muted); }
.c-key { color: #93c5fd; }
.c-string { color: var(--accent-end); }
.c-number { color: var(--orange); }
.c-success { color: var(--green); }
.c-method { color: #fbbf24; }

/* --- CTA Section --- */
.cta { text-align: center; padding: 5rem 0; }
.cta__box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 4rem 2rem;
    position: relative; overflow: hidden;
}
.cta__box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-end), transparent);
}
.cta__title { font-family: var(--font-display); font-size: clamp(1.75rem,3vw,2.25rem); margin-bottom: 1rem; }
.cta__text { font-size: 1rem; color: var(--text2); max-width: 500px; margin: 0 auto 1.5rem; font-weight: 300; }
.cta__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Footer --- */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer__brand { font-family: var(--font-display); font-size: 1.125rem; color: var(--text2); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__link { font-size: 0.8125rem; color: var(--muted); transition: var(--ease); }
.footer__link:hover { color: var(--text); }
.footer__copy {
    margin-top: 2rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem; color: var(--muted); text-align: center;
}

/* --- Cross-product links --- */
.cross-product {
    padding: 1.5rem; border: 1px solid var(--border);
    border-radius: var(--radius-md); transition: var(--ease);
    display: flex; align-items: center; gap: 1rem;
}
.cross-product:hover { border-color: var(--border-hover); background: var(--card); }
.cross-product__icon {
    width: 40px; height: 40px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; flex-shrink: 0;
}
.cross-product__icon--green { background: var(--green-subtle); }
.cross-product__icon--yellow { background: var(--yellow-subtle); }
.cross-product__icon--red { background: var(--red-subtle); }
.cross-product__title { font-size: 0.875rem; font-weight: 500; }
.cross-product__text { font-size: 0.75rem; color: var(--muted); }

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0; transform: translateY(25px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__mobile-toggle { display: block; }
    .mobile-menu { display: flex; } /* Enable on mobile, controlled by .is-open */

    .hero { padding: 6rem 0 3rem; }
    .hero__title { font-size: clamp(2.2rem, 8vw, 3rem); }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero--center .hero__actions { align-items: stretch; }
    .btn { justify-content: center; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }

    .footer__inner { flex-direction: column; gap: 1rem; text-align: center; }
    .code-block__body pre { font-size: 0.6875rem; }
}

/* ============================================
   DOCS SYSTEM — Article viewer + Index
   Append this to the END of landing.css
   ============================================ */

/* --- Docs Index --- */
.docs-index-container { max-width: 800px; }
.docs-index { display: flex; flex-direction: column; gap: 2px; }
.docs-index__item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--ease);
}
.docs-index__item:hover {
    border-color: var(--border-hover);
    background: var(--card);
}
.docs-index__number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-end);
    opacity: 0.5;
    flex-shrink: 0;
    width: 2rem;
}
.docs-index__content { flex: 1; min-width: 0; }
.docs-index__title {
    font-size: 0.9375rem;
    font-weight: 400;
    display: block;
    margin-bottom: 0.125rem;
}
.docs-index__tag {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--accent-end);
    background: rgba(6, 182, 212, 0.08);
    padding: 0.125rem 0.4rem;
    border-radius: 3px;
}
.docs-index__arrow {
    color: var(--muted);
    flex-shrink: 0;
    transition: var(--ease);
}
.docs-index__item:hover .docs-index__arrow { color: var(--accent-end); }

/* --- Docs Article Viewer --- */
.docs-article {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 3rem;
    position: relative;
}
.docs-article__inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Meta bar (back link + counter) */
.docs-article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.docs-article__back {
    font-size: 0.8125rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--ease);
}
.docs-article__back:hover { color: var(--text2); }
.docs-article__number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
}

/* Article title */
.docs-article__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* Article body — prose styles */
.docs-article__body p {
    font-size: 0.9375rem;
    color: var(--text2);
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.docs-article__body h2 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.docs-article__body h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.docs-article__body ul,
.docs-article__body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}
.docs-article__body li {
    font-size: 0.9375rem;
    color: var(--text2);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 0.375rem;
    list-style: disc;
}
.docs-article__body ol li { list-style: decimal; }
.docs-article__body strong { color: var(--text); font-weight: 500; }
.docs-article__body code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--card);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: var(--accent-end);
}

/* Inline cards for article content */
.docs-article__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.docs-article__card {
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.docs-article__card strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.docs-article__card span {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 300;
}
.docs-article__card--green { border-color: var(--green-border); background: var(--green-subtle); }
.docs-article__card--green strong { color: var(--green); }
.docs-article__card--yellow { border-color: var(--yellow-border); background: var(--yellow-subtle); }
.docs-article__card--yellow strong { color: var(--yellow); }
.docs-article__card--red { border-color: var(--red-border); background: var(--red-subtle); }
.docs-article__card--red strong { color: var(--red); }

/* Docs table */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}
.docs-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
}
.docs-table td {
    padding: 0.75rem 1rem;
    color: var(--text2);
    font-weight: 300;
    border-bottom: 1px solid var(--border);
}
.docs-table td strong { color: var(--text); font-weight: 500; }
.docs-table tr:hover td { background: var(--subtle); }

/* Side arrows (prev/next) */
.docs-nav__arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    transition: var(--ease);
    z-index: 50;
}
.docs-nav__arrow:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--card);
}
.docs-nav__arrow--left { left: 2rem; }
.docs-nav__arrow--right { right: 2rem; }
.docs-nav__arrow svg { width: 20px; height: 20px; }

/* Bottom navigation */
.docs-article__bottom-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.docs-bottom-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--ease);
    max-width: 50%;
}
.docs-bottom-link:hover {
    border-color: var(--border-hover);
    background: var(--card);
}
.docs-bottom-link--next { text-align: right; margin-left: auto; }
.docs-bottom-link__direction {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--accent-end);
    letter-spacing: 0.05em;
}
.docs-bottom-link__title {
    font-size: 0.875rem;
    color: var(--text2);
    font-weight: 300;
}
.docs-bottom-link:hover .docs-bottom-link__title { color: var(--text); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .docs-nav__arrow--left { left: 1rem; }
    .docs-nav__arrow--right { right: 1rem; }
}
@media (max-width: 768px) {
    .docs-nav__arrow { display: none; }
    .docs-article { padding: 6rem 0 2rem; }
    .docs-article__cards { grid-template-columns: 1fr; }
    .docs-article__bottom-nav { flex-direction: column; }
    .docs-bottom-link { max-width: 100%; }
    .docs-bottom-link--next { text-align: left; margin-left: 0; }
}

/* Docs filter */
.docs-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.docs-filter__btn {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.875rem;
    cursor: pointer;
    transition: var(--ease);
    letter-spacing: 0.03em;
}
.docs-filter__btn:hover {
    color: var(--text2);
    border-color: var(--border-hover);
}
.docs-filter__btn--active {
    color: var(--accent-end);
    border-color: var(--accent-end);
    background: rgba(6, 182, 212, 0.08);
}
.footer__legal {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
}
.footer__legal-sep {
    color: var(--muted);
}

@media (max-width: 768px) {
    .footer__links--desktop {
        display: none;
    }
    .footer__inner {
        justify-content: center;
    }
}

/* --- Prose (legal pages) --- */
.prose-container { max-width: 720px; }
.prose h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.prose p {
    font-size: 0.9375rem;
    color: var(--text2);
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 1rem;
}
.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}
.prose li {
    font-size: 0.9375rem;
    color: var(--text2);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 0.375rem;
    list-style: disc;
}
.prose ol li { list-style: decimal; }
.prose a {
    color: var(--accent-end);
    transition: var(--ease);
}
.prose a:hover { color: var(--text); }

/* --- Event tags --- */
.event-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text2);
    background: var(--subtle);
    border: 1px solid var(--border);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    display: block;
}
.event-tags {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

/* --- Card variants --- */
.card--accent { border-top-color: var(--accent-end); }
.card--yellow { border-top-color: var(--yellow); }
.card--red { border-top-color: var(--red); }
.card--green { border-top-color: var(--green); }

.card__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: block;
}
.card__label--accent { color: var(--accent-end); }
.card__label--yellow { color: var(--yellow); }
.card__label--red { color: var(--red); }

.card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.card__text {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.7;
    font-weight: 300;
}

.nav__link--disabled {
    cursor: default;
    position: relative;
    opacity: 0.4;
}
.nav__tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    border: 1px solid var(--border-hover);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}
.nav__link--disabled:hover .nav__tooltip {
    display: block;
}

.hero__registries {
    display: flex; align-items: center; justify-content: center;
    gap: 0.75rem; margin: 1.5rem 0;
}
.registry-badge {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
}
.registry-badge__flag { font-size: 18px; line-height: 1; }
.registry-badge__name { font-size: 0.8125rem; color: var(--text2); }
.registry-badge__status { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em; }
.registry-badge__status--live { color: var(--green); }
.registry-badge__status--soon { color: var(--muted); }
.registry-badge__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.registry-badge__dot--live { background: var(--green); }
.registry-badge__dot--soon { background: var(--muted); }
.registry-badge__country { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; color: var(--text); }
.registry-badge__text { font-size: 0.6875rem; color: var(--text2); font-family: var(--font-mono); letter-spacing: 0.04em; }