/* =========================================
   TOKENS
   ========================================= */
:root {
    --bg:        #08090c;
    --bg-2:      #0d1117;
    --bg-3:      #131920;
    --bg-4:      #1a2230;
    --border:    rgba(255, 255, 255, 0.06);
    --border-2:  rgba(255, 255, 255, 0.11);
    --text:      #dce6f0;
    --text-2:    #7d8fa6;
    --text-3:    #475569;
    --green:     #10b981;
    --green-dim: rgba(16, 185, 129, 0.09);
    --purple:    #8b5cf6;
    --purple-dim:rgba(139, 92, 246, 0.09);
    --r:    8px;
    --r-md: 12px;
    --r-lg: 18px;
    --font:    'Inter', sans-serif;
    --display: 'Syne', sans-serif;
    --mono:    'JetBrains Mono', monospace;
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3 {
    font-family: var(--display);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
    width: min(1160px, calc(100% - 2.5rem));
    margin: 0 auto;
}
section { padding: 6rem 0; }
section[id] { scroll-margin-top: 80px; }

/* =========================================
   SCROLL PROGRESS
   ========================================= */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    z-index: 1001;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--green), var(--purple));
    pointer-events: none;
    transition: width 0.08s linear;
}

/* =========================================
   BACK TO TOP
   ========================================= */
#back-to-top {
    position: fixed;
    bottom: 1.75rem; right: 1.75rem;
    z-index: 500;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-md);
    border: 1px solid var(--border-2);
    background: var(--bg-3);
    color: var(--text-2);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, color 0.15s, background 0.15s, border-color 0.15s;
    pointer-events: none;
}
#back-to-top.visible  { opacity: 1; transform: translateY(0); pointer-events: all; }
#back-to-top:hover    { color: var(--green); background: var(--bg-4); border-color: rgba(16,185,129,0.3); }
#back-to-top i        { width: 18px; height: 18px; }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: var(--green);
    color: #021a10;
    font-weight: 700;
    font-size: 0.93rem;
    transition: filter 0.18s, transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 4px 20px rgba(16,185,129,0.22);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.btn-primary:hover::after {
    transform: translateX(100%);
}
.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(16,185,129,0.35);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(16,185,129,0.2);
}
.btn-primary.btn-lg  { padding: 0.82rem 1.65rem; font-size: 1rem; }
.btn-primary i,
.btn-primary svg     { width: 17px; height: 17px; position: relative; z-index: 1; flex-shrink: 0; }
.btn-primary span    { position: relative; z-index: 1; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    color: var(--text-2);
    font-weight: 500;
    font-size: 0.93rem;
    transition: border-color 0.18s, color 0.18s, transform 0.18s, background 0.18s;
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.24);
    color: var(--text);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.03);
}
.btn-ghost:active { transform: translateY(0); }
.btn-ghost.btn-lg { padding: 0.82rem 1.65rem; font-size: 1rem; }
.btn-ghost i,
.btn-ghost svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    transition: transform 0.18s;
}
.btn-ghost:hover i,
.btn-ghost:hover svg { transform: translateX(3px); }

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
        rgba(131, 146, 255, 0.05);
    color: #f4f7ff;
    font-weight: 600;
    font-size: 0.93rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
    transition: border-color 0.18s, color 0.18s, transform 0.18s, background 0.18s, box-shadow 0.18s;
}
.btn-github:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
        rgba(131, 146, 255, 0.08);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.3);
}
.btn-github:active { transform: translateY(0); }
.btn-github.btn-lg { padding: 0.82rem 1.65rem; font-size: 1rem; }
.btn-github i,
.btn-github svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.btn-github:hover i,
.btn-github:hover svg {
    transform: translateY(-1px) scale(1.08);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: sticky;
    top: 0; z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 9, 12, 0.82);
    backdrop-filter: blur(18px);
    transition: background 0.3s, border-color 0.3s;
}
.navbar.scrolled {
    background: rgba(8, 9, 12, 0.95);
    border-bottom-color: var(--border-2);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.logo:hover { opacity: 0.85; }
.logo i { width: 18px; height: 18px; color: var(--green); }

#main-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
#main-nav a:not(.nav-cta) {
    padding: 0.42rem 0.78rem;
    border-radius: var(--r);
    color: var(--text-2);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
    position: relative;
}
#main-nav a:not(.nav-cta):hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}
#main-nav a:not(.nav-cta).nav-active {
    color: var(--green);
    background: var(--green-dim);
}
.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-github svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.92;
}
.nav-cta { margin-left: 0.6rem; padding: 0.52rem 1rem !important; font-size: 0.9rem !important; }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--r);
    border: 1px solid var(--border-2);
    color: var(--text-2);
    transition: background 0.15s, color 0.15s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.menu-toggle i     { width: 18px; height: 18px; }
.menu-toggle .icon-close                   { display: none; }
.navbar.menu-open .menu-toggle .icon-menu  { display: none; }
.navbar.menu-open .menu-toggle .icon-close { display: block; }

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    padding: 5.5rem 0 4rem;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,0.11) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: glowDrift 8s ease-in-out infinite alternate;
}
@keyframes glowDrift {
    0%   { transform: translateX(-50%) scale(1); opacity: 1; }
    50%  { transform: translateX(-48%) scale(1.05); opacity: 0.8; }
    100% { transform: translateX(-52%) scale(1.02); opacity: 1; }
}
.hero > .container { position: relative; z-index: 1; }

.hero-inner {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(16,185,129,0.22);
    background: rgba(16,185,129,0.07);
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    animation: badgeFadeIn 0.8s ease-out both;
    animation-delay: 0.2s;
}
@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-badge i { width: 14px; height: 14px; }

.hero-inner h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.04;
    animation: heroFadeIn 0.9s ease-out both;
    animation-delay: 0.35s;
}
@keyframes alphaGlow {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(16, 185, 129, 0.15), 0 8px 32px rgba(16, 185, 129, 0.12); }
    50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 30px rgba(16, 185, 129, 0.25), 0 8px 40px rgba(16, 185, 129, 0.2); }
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
    animation: heroFadeIn 0.9s ease-out both;
    animation-delay: 0.5s;
}

.hero-models {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    max-width: 860px;
    margin: 0 auto 2rem;
    animation: heroFadeIn 0.9s ease-out both;
    animation-delay: 0.56s;
}
.hero-models span {
    padding: 0.5rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-2);
    font-size: 0.86rem;
    line-height: 1.5;
}
.hero-models .alpha-model,
.model-strip .alpha-model {
    border-color: rgba(16, 185, 129, 0.5);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.08)),
        rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(16, 185, 129, 0.15),
        0 8px 32px rgba(16, 185, 129, 0.12);
    color: #dffcf0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    animation: alphaGlow 3s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-models .alpha-model i,
.model-strip .alpha-model i {
    color: #10b981;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.6));
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.hero-models strong,
.model-strip strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    animation: heroFadeIn 0.9s ease-out both;
    animation-delay: 0.65s;
}

.hero-protocols {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    animation: heroFadeIn 0.9s ease-out both;
    animation-delay: 0.8s;
}
.hero-protocols span {
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    color: var(--text-3);
    font-family: var(--mono);
    font-size: 0.78rem;
    background: var(--bg-2);
    letter-spacing: 0.04em;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hero-protocols span:hover {
    border-color: rgba(16,185,129,0.3);
    color: var(--green);
    background: var(--green-dim);
}

/* App frame */
.hero-frame {
    border-radius: var(--r-lg);
    border: 1px solid var(--border-2);
    background: var(--bg-2);
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border),
        0 40px 100px rgba(0,0,0,0.55),
        0 0 60px rgba(16,185,129,0.04);
    transition: box-shadow 0.4s, border-color 0.4s;
}
.hero-frame:hover {
    box-shadow:
        0 0 0 1px var(--border-2),
        0 50px 120px rgba(0,0,0,0.6),
        0 0 80px rgba(16,185,129,0.06);
    border-color: rgba(255,255,255,0.15);
}

.frame-chrome {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
    flex-wrap: wrap;
}
.frame-dots { display: flex; gap: 6px; flex-shrink: 0; }
.frame-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    transition: transform 0.2s;
}
.frame-dots span:hover { transform: scale(1.3); }
.frame-dots span:nth-child(1) { background: #ff5f57; }
.frame-dots span:nth-child(2) { background: #ffbd2e; }
.frame-dots span:nth-child(3) { background: #28ca41; }

.frame-title {
    color: var(--text-3);
    font-family: var(--mono);
    font-size: 0.76rem;
    flex: 1;
    text-align: center;
    letter-spacing: 0.04em;
    transition: color 0.2s, opacity 0.15s;
}

.frame-tabs {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.ftab {
    padding: 0.28rem 0.7rem;
    border-radius: 6px;
    border: 1px solid transparent;
    color: var(--text-3);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.1;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    user-select: none;
    white-space: nowrap;
}
.ftab:hover:not(.active) { color: var(--text-2); background: rgba(255,255,255,0.04); }
.ftab.active {
    background: var(--green-dim);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

.frame-body {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 400px;
}

.frame-sidebar {
    padding: 1rem 0.85rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(255,255,255,0.012);
}
.sidebar-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 0.45rem;
    margin-bottom: 0.3rem;
}
.conn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--r);
    color: var(--text-2);
    font-size: 0.85rem;
    cursor: default;
    user-select: none;
}
.conn.active { background: var(--green-dim); color: var(--green); }
.conn i { width: 13px; height: 13px; flex-shrink: 0; }

.frame-main {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.07), transparent 34%),
        linear-gradient(180deg, #0b0f15 0%, #090b10 100%);
    overflow: hidden;
}

.workspace-panel {
    display: none;
    grid-template-columns: minmax(0, 1fr) 250px;
    min-height: 400px;
}
.workspace-panel.is-active {
    display: grid;
    animation: panelFade 0.28s ease;
}
@keyframes panelFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.workspace-stage {
    padding: 1rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.workspace-toolbar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.workspace-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.workspace-pill.live {
    background: rgba(16, 185, 129, 0.11);
    border-color: rgba(16, 185, 129, 0.24);
    color: var(--green);
}

.workspace-path,
.workspace-muted {
    font-family: var(--mono);
    font-size: 0.72rem;
}
.workspace-path { color: var(--text); }
.workspace-muted { color: var(--text-3); }

.workspace-sidepanel {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.015);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidepanel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.sidepanel-label,
.assistant-source,
.meta-kicker,
.status-label {
    font-family: var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sidepanel-label,
.assistant-source,
.meta-kicker {
    font-size: 0.68rem;
}
.sidepanel-label,
.assistant-source { color: var(--green); }
.sidepanel-state {
    color: var(--text-3);
    font-size: 0.74rem;
}

.assistant-card,
.meta-card,
.timeline-item {
    padding: 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}
.assistant-card p,
.meta-card p,
.timeline-item p {
    color: var(--text-2);
    font-size: 0.82rem;
    line-height: 1.55;
}
.assistant-card strong,
.meta-list strong,
.timeline-item strong,
.rdp-window-body strong {
    color: var(--text);
}
.assistant-input {
    margin-top: auto;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(8, 9, 12, 0.95);
    color: var(--text-3);
    font-size: 0.78rem;
}

.terminal-shell {
    flex: 1;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
        rgba(4, 7, 10, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-family: var(--mono);
    font-size: 0.79rem;
    line-height: 1.75;
}
.terminal-shell p { color: #d7e1eb; }
.term-prompt { color: #7dd3fc; }
.term-dim { color: #96a8bc; }
.term-ok { color: #86efac; }
.term-cursor {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    margin-left: 0.28rem;
    vertical-align: -0.18em;
    background: var(--green);
    animation: blink 1s step-end infinite;
}

.file-table {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(4, 8, 12, 0.88);
}
.file-row {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 82px 108px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.82rem 0.95rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
}
.file-row.header {
    border-top: none;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.file-row.selected { background: rgba(16, 185, 129, 0.08); }
.file-name {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    min-width: 0;
}
.file-name i {
    width: 15px;
    height: 15px;
    color: var(--green);
    flex-shrink: 0;
}
.file-name strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}
.meta-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-2);
    font-size: 0.78rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.status-card {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}
.status-card.warning {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.08);
}
.status-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--green);
    font-size: 0.7rem;
}
.status-card strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    line-height: 1.15;
}
.status-card p { color: var(--text-2); font-size: 0.82rem; }

.timeline-item strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    color: var(--text);
}

.rdp-canvas {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.55), rgba(9, 17, 28, 0.88)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%);
}
.rdp-window {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(10, 14, 22, 0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}
.rdp-window.primary {
    top: 1.15rem;
    left: 1.15rem;
    width: min(64%, 360px);
}
.rdp-window.secondary {
    right: 1.15rem;
    top: 5.5rem;
    width: min(44%, 250px);
}
.rdp-window-bar {
    padding: 0.48rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.76rem;
}
.rdp-window-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.9rem;
    color: var(--text-2);
    font-size: 0.82rem;
}
.rdp-window-body.mono {
    display: block;
    font-family: var(--mono);
    color: #a7f3d0;
}
.rdp-taskbar {
    position: absolute;
    right: 0.8rem;
    left: 0.8rem;
    bottom: 0.8rem;
    display: flex;
    gap: 0.45rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(7, 10, 15, 0.75);
    backdrop-filter: blur(12px);
}
.task-pill {
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #d5deea;
    font-size: 0.72rem;
}
.task-pill.active {
    background: rgba(16, 185, 129, 0.14);
    color: var(--green);
}

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

/* =========================================
   SECTION LABELS / HEADINGS
   ========================================= */
.section-label {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
}
.section-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 540px;
    margin-bottom: 2.75rem;
    line-height: 1.65;
}

/* =========================================
   PLATFORM
   ========================================= */
.platform { background: var(--bg-2); border-top: 1px solid var(--border); }

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--border);
    gap: 1px;
}

.pcard {
    padding: 2.25rem 2rem;
    background: var(--bg-2);
    transition: background 0.25s, transform 0.25s;
    position: relative;
}
.pcard::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16,185,129,0.06), transparent 40%);
    transition: opacity 0.3s;
    pointer-events: none;
}
.pcard:hover::before { opacity: 1; }
.pcard:hover { background: var(--bg-3); }

.pcard-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-md);
    background: var(--green-dim);
    color: var(--green);
    margin-bottom: 1.35rem;
    transition: transform 0.25s, box-shadow 0.25s;
}
.pcard:hover .pcard-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.15);
}
.pcard-icon.ai { background: var(--purple-dim); color: var(--purple); }
.pcard.ai:hover .pcard-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,92,246,0.15);
}
.pcard-icon i { width: 20px; height: 20px; }

.pcard h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}
.pcard p { color: var(--text-2); font-size: 0.93rem; line-height: 1.6; }

/* =========================================
   CAPABILITIES
   ========================================= */
.capabilities { border-top: 1px solid var(--border); }

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--border);
    gap: 1px;
}

.fitem {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.85rem 1.75rem;
    background: var(--bg);
    transition: background 0.25s;
    position: relative;
}
.fitem::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16,185,129,0.04), transparent 40%);
    transition: opacity 0.3s;
    pointer-events: none;
}
.fitem:hover::before { opacity: 1; }
.fitem:hover   { background: var(--bg-2); }
.fitem.ai      { background: rgba(139,92,246,0.025); }
.fitem.ai:hover{ background: rgba(139,92,246,0.05); }
.fitem.ai::before {
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139,92,246,0.06), transparent 40%);
}

.fitem-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-3);
    letter-spacing: 0.1em;
    padding-top: 0.22rem;
    flex-shrink: 0;
    width: 22px;
}

.fitem-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r);
    background: rgba(255,255,255,0.04);
    color: var(--text-2);
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}
.fitem:hover .fitem-icon {
    background: var(--green-dim);
    color: var(--green);
    transform: scale(1.05);
}
.fitem-icon.ai { background: var(--purple-dim); color: var(--purple); }
.fitem.ai:hover .fitem-icon.ai { background: rgba(139,92,246,0.16); color: var(--purple); transform: scale(1.05); }
.fitem-icon i { width: 18px; height: 18px; }

.fitem-body {
    flex: 1;
    min-width: 0;
}
.fitem-body h3 {
    font-size: 1.03rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.fitem-body p { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; }

/* =========================================
   MATRIX
   ========================================= */
.matrix {
    border-top: 1px solid var(--border);
    background: var(--bg-3);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--border);
    gap: 1px;
    margin-top: 0.5rem;
}

.mcard {
    padding: 1.85rem;
    background: var(--bg);
    transition: background 0.25s;
    position: relative;
}
.mcard::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16,185,129,0.04), transparent 40%);
    transition: opacity 0.3s;
    pointer-events: none;
}
.mcard:hover::before { opacity: 1; }
.mcard:hover { background: var(--bg-2); }

.mcard-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    color: var(--text);
}
.mcard-head i {
    width: 18px; height: 18px; color: var(--green); flex-shrink: 0;
    transition: transform 0.2s;
}
.mcard:hover .mcard-head i { transform: scale(1.15); }
.mcard-head h3 { font-size: 1rem; font-weight: 700; }
.mcard p { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; }

/* =========================================
   DOCS
   ========================================= */
.proof-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--border);
    gap: 1px;
    margin-top: 0.5rem;
}

.proof-card {
    padding: 2rem;
    background: var(--bg-2);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: background 0.25s, transform 0.25s;
}
.proof-card:hover { background: var(--bg-3); }
.proof-card.emphasis {
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.08), transparent 70%),
        var(--bg-3);
}
.proof-card.emphasis:hover {
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.12), transparent 72%),
        var(--bg-4);
}

.proof-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.proof-topline i {
    width: 20px;
    height: 20px;
    color: var(--green);
    transition: transform 0.2s;
}
.proof-card:hover .proof-topline i { transform: scale(1.15); }

.proof-stat {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.proof-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--text); }
.proof-card > p { color: var(--text-2); font-size: 0.9rem; }

.proof-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    flex: 1;
}
.proof-card ul li {
    color: var(--text-2);
    font-size: 0.88rem;
    padding-left: 1rem;
    position: relative;
}
.proof-card ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.58rem;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.55;
}

.model-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0.25rem 0 1.4rem;
}
.model-strip span {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* =========================================
   CTA
   ========================================= */
.cta-section {
    padding: 7rem 0;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(ellipse 60% 55% at 20% 50%, rgba(16,185,129,0.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 80% 50%, rgba(139,92,246,0.06) 0%, transparent 65%),
        var(--bg);
}

.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        rgba(8, 10, 14, 0.92);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.cta-copy,
.cta-panel {
    padding: 2rem;
}

.cta-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.015);
}

.cta-tag {
    display: inline-flex;
    margin-bottom: 1.5rem;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    background: var(--green-dim);
    border: 1px solid rgba(16,185,129,0.2);
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.cta-copy > p {
    color: var(--text-2);
    font-size: 1rem;
    margin-top: 0.2rem;
    margin-bottom: 1.75rem;
    max-width: 54ch;
    line-height: 1.8;
}
.cta-copy h2 {
    margin: 0 0 0.7rem;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.cta-ways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.cta-way {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}
.cta-way strong {
    color: var(--text);
    font-size: 0.9rem;
}
.cta-way span {
    color: var(--text-2);
    font-size: 0.84rem;
    line-height: 1.55;
}
.cta-helper {
    margin: 0 0 1rem;
    color: #dffcf0;
    font-size: 0.9rem;
    font-weight: 600;
}

.cta-protocols {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cta-protocols span {
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-2);
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
}

.cta-panel {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.06), transparent 28%),
        rgba(10, 14, 19, 0.94);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cta-panel-label {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cta-panel-state {
    color: var(--text-3);
    font-size: 0.78rem;
}

.cta-highlight {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.12);
    background: rgba(16, 185, 129, 0.04);
}
.cta-highlight strong {
    display: block;
    margin-bottom: 0.38rem;
    color: var(--text);
    font-size: 1rem;
}
.cta-highlight p {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cta-summary {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}
.cta-summary li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.45;
}
.cta-summary .alpha-item {
    border-color: rgba(16, 185, 129, 0.16);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.11), rgba(16, 185, 129, 0.03)),
        rgba(255, 255, 255, 0.03);
    color: #dffcf0;
}
.cta-summary i {
    width: 15px;
    height: 15px;
    color: var(--green);
    flex-shrink: 0;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 2.25rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-brand .logo { margin-bottom: 0.4rem; }
.footer-brand p { color: var(--text-3); font-size: 0.85rem; max-width: 28rem; }

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 0.95rem;
    padding: 0.8rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.02);
    color: var(--text-2);
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.footer-credit-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.footer-credit-inline strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.footer-credit-note {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-3);
}
.footer-credit-sep {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    line-height: 1;
}
.footer-credit-token {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.54rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-2);
    font-size: 0.74rem;
    line-height: 1;
}
.footer-credit-token i,
.footer-credit-token svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.footer-credit-token:first-child i,
.footer-credit-token:first-child svg {
    color: #fb7185;
    fill: rgba(251, 113, 133, 0.18);
}
.footer-credit-token:last-child i,
.footer-credit-token:last-child svg {
    color: #f59e0b;
}
.footer-credit:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
    border-color: rgba(16, 185, 129, 0.22);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}
.footer-credit-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: rgba(4, 9, 8, 0.65);
    border: 1px solid rgba(16, 185, 129, 0.12);
}
.footer-credit-mark img {
    display: block;
    width: auto;
    height: 18px;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.38rem 0.65rem;
    border-radius: var(--r);
    color: var(--text-2);
    font-size: 0.85rem;
    transition: color 0.15s, background 0.15s;
}
.footer-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.footer-nav a i,
.footer-nav a svg { width: 14px; height: 14px; flex-shrink: 0; }

/* =========================================
   REVEAL — staggered
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger delays for grid children */
.reveal-stagger > :nth-child(1) { transition-delay: 0s; }
.reveal-stagger > :nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > :nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > :nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > :nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > :nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger > :nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger > :nth-child(8) { transition-delay: 0.56s; }

/* =========================================
   RESPONSIVE — 1024px
   ========================================= */
@media (max-width: 1024px) {
    .platform-grid { grid-template-columns: 1fr; }
    .proof-grid    { grid-template-columns: 1fr; }
    .cta-inner     { grid-template-columns: 1fr; }
    .cta-panel     { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.07); }
    .model-strip   { grid-template-columns: 1fr; }
    .cta-ways      { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   RESPONSIVE — 860px (tablet / mobile)
   ========================================= */
@media (max-width: 860px) {
    section { padding: 4rem 0; }
    .hero   { padding: 3.5rem 0 3rem; }

    .menu-toggle { display: flex; }

    #main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1.1rem;
        background: rgba(8, 9, 12, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-2);
        opacity: 0;
        transform: translateY(-4px);
        pointer-events: none;
        transition: opacity 0.2s, transform 0.2s;
    }
    .navbar.menu-open #main-nav {
        opacity: 1; transform: translateY(0); pointer-events: all;
    }
    #main-nav a:not(.nav-cta) {
        padding: 0.7rem 0.9rem;
        border-radius: var(--r);
        font-size: 0.98rem;
    }
    .nav-cta {
        display: flex !important;
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    .nav-github {
        justify-content: center;
    }

    .features-list { grid-template-columns: 1fr; }
    .matrix-grid   { grid-template-columns: 1fr; }

    .frame-body { grid-template-columns: 1fr; }
    .frame-sidebar { display: none; }
    .frame-tabs { width: 100%; justify-content: flex-start; }
    .workspace-panel { grid-template-columns: 1fr; }
    .workspace-stage { border-right: none; border-bottom: 1px solid var(--border); }
    .workspace-sidepanel { padding-top: 0.9rem; }
    .status-grid { grid-template-columns: 1fr; }

    #back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

/* =========================================
   RESPONSIVE — 600px (mobile)
   ========================================= */
@media (max-width: 600px) {
    .container { width: min(100% - 1.5rem, 1160px); }

    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary.btn-lg,
    .btn-ghost.btn-lg,
    .btn-github.btn-lg  { width: 100%; justify-content: center; }
    .hero-models { flex-direction: column; align-items: stretch; }
    .cta-copy,
    .cta-panel { padding: 1.2rem; }
    .cta-actions { flex-direction: column; }
    .cta-ways { grid-template-columns: 1fr; }
    .frame-chrome { align-items: flex-start; }
    .frame-title { width: 100%; text-align: left; order: 3; }
    .file-row { grid-template-columns: 1fr; }
    .file-row.header { display: none; }
    .rdp-window.primary,
    .rdp-window.secondary { position: static; width: auto; margin: 0.9rem; }
    .rdp-canvas { display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem; }
    .rdp-taskbar { position: static; margin: 0 0.9rem 0.9rem; width: calc(100% - 1.8rem); }

    .footer-inner { flex-direction: column; align-items: flex-start; }
    .cta-inner h2 { font-size: 2rem; }
    .cta-features { flex-direction: column; align-items: center; }
}

/* =========================================
   LEGAL PAGE
   ========================================= */
.legal-content {
    padding: 3rem 0 6rem;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-nav-item {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.legal-nav-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.legal-nav-item.active {
    border-color: rgba(16, 185, 129, 0.25);
    background: var(--green-dim);
    color: var(--green);
}

.legal-section {
    max-width: 720px;
    margin-bottom: 4rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.legal-section .legal-date {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-3);
    margin-bottom: 2rem;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-section p {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    margin-bottom: 1rem;
}

.legal-section ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.65;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.6;
}

.legal-section ul li strong {
    color: var(--text);
}

.legal-section a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.15s;
}

.legal-section a:hover {
    opacity: 0.8;
}

.legal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--r-md);
    border: 1px solid rgba(16, 185, 129, 0.18);
    background: rgba(16, 185, 129, 0.05);
    margin-bottom: 1.5rem;
}

.legal-highlight i {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.legal-highlight p {
    margin-bottom: 0;
    color: var(--text-2);
    font-size: 0.92rem;
}

.legal-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--r-md);
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.06);
    margin: 1.5rem 0;
}

.legal-callout i {
    width: 18px;
    height: 18px;
    color: var(--purple);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.legal-callout div {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.65;
}

.legal-callout strong {
    color: var(--text);
}

.legal-callout code {
    font-family: var(--mono);
    font-size: 0.85em;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--green);
}
