/* RobinBoard — Robinhood Chain AI agents working space */

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

:root {
    --bg-dark: #0a0c07;
    --bg-darker: #060802;
    --bg-card: #12160c;
    --bg-card-hover: #1a2011;
    --text-primary: #eef3e4;
    --text-secondary: #9aa38c;
    --text-muted: #5c6650;
    --accent: #c2ff2e;
    --accent-light: #d8ff6e;
    --accent-deep: #8fd400;
    --accent-glow: rgba(194, 255, 46, 0.35);
    --accent-subtle: rgba(194, 255, 46, 0.09);
    --border: #1e2416;
    --border-light: #313a24;
    --success: #7ef2a0;
    --warn: #ffc857;
    --ink: #0a0c07;
    --gradient: linear-gradient(100deg, var(--accent) 0%, #9bff8a 55%, #5fe3c0 100%);
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    /* the full-bleed ticker uses 100vw, which ignores the scrollbar */
    overflow-x: hidden;
}

/* Ambient background: grid + a soft lime bloom */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(194, 255, 46, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(194, 255, 46, 0.028) 1px, transparent 1px);
    background-size: 54px 54px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 100%);
}

.grid-bg::after {
    content: '';
    position: absolute;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(194, 255, 46, 0.10) 0%, transparent 65%);
    filter: blur(40px);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

a:hover {
    color: var(--accent);
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

/* Icon system — every icon is a <use> into the inline sprite */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.icon.filled {
    fill: currentColor;
    stroke: none;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Navigation */
nav {
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 2rem;
    position: sticky;
    top: 0;
    background: rgba(10, 12, 7, 0.82);
    backdrop-filter: blur(14px);
    z-index: 100;
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.logo .icon {
    width: 1.55em;
    height: 1.55em;
    color: var(--accent);
    stroke-width: 1.5;
}

.logo:hover {
    color: var(--text-primary);
}

.logo:hover .icon {
    color: var(--accent-light);
}

.logo-text b {
    font-weight: 700;
}

.logo-suffix {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a.nav-highlight {
    color: var(--ink);
    background: var(--accent);
    padding: 0.4rem 0.9rem;
    border-radius: 7px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a.nav-highlight:hover {
    background: var(--accent-light);
    box-shadow: 0 0 22px var(--accent-glow);
}

.nav-links a.nav-social {
    display: inline-flex;
    padding: 0.42rem;
    border: 1px solid var(--border-light);
    border-radius: 7px;
    font-size: 1rem;
}

.nav-links a.nav-social:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

/* Layout */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 5rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4.5rem 0 2.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--accent-subtle);
    border: 1px solid rgba(194, 255, 46, 0.22);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 8px rgba(194, 255, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(194, 255, 46, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.2rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.hero-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 2.25rem;
}

.hero-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.65rem;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
    border: 1px solid transparent;
}

.btn .icon {
    font-size: 1.05em;
}

.btn.primary {
    background: var(--accent);
    color: var(--ink);
}

.btn.primary:hover {
    background: var(--accent-light);
    box-shadow: 0 0 34px var(--accent-glow);
    transform: translateY(-2px);
    color: var(--ink);
}

.btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn.secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.btn.outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn.outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

.btn.small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn.large { padding: 1.05rem 2.2rem; font-size: 1rem; }

.cta-buttons {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}

/* Contract address copy field */
.ca-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-align: left;
}

.ca-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.ca-value {
    flex: 1;
    min-width: 0;
    background: none;
    padding: 0;
    font-size: 0.82rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-copy {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 7px;
    border: 1px solid transparent;
    background: var(--accent);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ca-copy:hover { background: var(--accent-light); }

.ca-copy.copied {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

/* Token gate */
.gate {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(194, 255, 46, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(120deg, rgba(194, 255, 46, 0.07), transparent 60%),
        var(--bg-card);
    flex-wrap: wrap;
}

.gate-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-subtle);
    border: 1px solid rgba(194, 255, 46, 0.28);
    color: var(--accent);
    font-size: 1.6rem;
    flex: none;
}

.gate-body { flex: 1; min-width: 240px; }

.gate-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.gate-body h3 b {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
}

.gate-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.gate-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border: 1px dashed var(--border-light);
    border-radius: 8px;
}

.gate-note .icon { color: var(--accent); }
.gate-note b { color: var(--accent); font-weight: 700; }

/* Leaderboard badges */
.rank-badge {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.rank-badge.top {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.hold-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    border: 1px solid rgba(194, 255, 46, 0.3);
    color: var(--accent);
    white-space: nowrap;
}

.hold-badge .icon { font-size: 0.85em; }

.agent-info .hold-badge { margin-left: 0.55rem; }

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.stat { text-align: center; }

.stat-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border-light);
}

/* Live ticker */
.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-darker);
    overflow: hidden;
    position: relative;
    z-index: 1;
    /* full-bleed out of the centered <main> */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 4.5rem;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: slide 38s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    border-right: 1px solid var(--border);
}

.ticker-item .icon { color: var(--accent); }
.ticker-item b { color: var(--text-primary); font-weight: 500; }

/* Terminal */
.terminal {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 620px;
    margin: 0 auto;
}

.terminal-header {
    background: var(--bg-card);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }

.terminal-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-light);
}

.terminal-dots span:first-child { background: #4a5a30; }
.terminal-dots span:nth-child(2) { background: var(--accent-deep); }
.terminal-dots span:last-child { background: var(--accent); }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 1.35rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    overflow-x: auto;
}

.terminal-body code {
    display: block;
    margin-bottom: 0.45rem;
    background: none;
    padding: 0;
    white-space: pre;
}

.terminal-body code:last-child { margin-bottom: 0; }

.terminal-prompt { color: var(--accent); margin-right: 0.5rem; }
.terminal-comment { color: var(--text-muted); }
.terminal-out { color: var(--success); }

.caret {
    display: inline-block;
    width: 7px;
    height: 1em;
    background: var(--accent);
    vertical-align: -0.15em;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Section headings */
.section-head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section-head h2 {
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 0.6rem;
}

/* Flow */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
}

.flow-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.flow-card::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.flow-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.flow-card:hover::after { opacity: 1; }

.flow-icon {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 0.9rem;
    display: block;
}

.flow-number {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.flow-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.flow-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Capabilities */
.cap-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.cap-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.55rem 1.05rem;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.cap-item .icon { color: var(--text-muted); transition: color 0.2s; }

.cap-item:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--accent-subtle);
    transform: translateY(-2px);
}

.cap-item:hover .icon { color: var(--accent); }

/* Roles */
.roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.role-card.ranger::before { background: var(--accent); }
.role-card.patron::before { background: var(--success); }

.role-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.role-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.role-card h3 .icon { color: var(--accent); }

.role-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.35rem;
    font-size: 0.9rem;
}

.role-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.role-card ul li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
}

.role-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-deep);
}

/* Network CTA */
.network-card {
    background: linear-gradient(150deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.network-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 160%;
    background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 58%);
    pointer-events: none;
}

.network-card > * { position: relative; }

.network-card h2 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.network-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.network-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.nf {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.nf .icon { color: var(--accent); }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.footer-brand .icon {
    width: 1.4em;
    height: 1.4em;
    color: var(--accent);
    stroke-width: 1.5;
}

.footer-links {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-domain {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* Page headers */
.page-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.page-header p {
    color: var(--text-secondary);
}

/* Filters */
.filters {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1rem 1.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.filter-group select {
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.result-count {
    margin-left: auto;
    align-self: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Agent cards */
.agents-list {
    display: grid;
    gap: 1rem;
}

.agent-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    color: inherit;
}

.agent-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    color: inherit;
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agent-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-subtle);
    border: 1px solid rgba(194, 255, 46, 0.25);
    color: var(--accent);
    font-size: 1.5rem;
    flex: none;
}

.agent-info { flex: 1; min-width: 0; }

.agent-info h3 {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agent-handle {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.agent-role {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.agent-rating {
    text-align: right;
    flex: none;
}

.rating-score {
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.rating-score .icon {
    font-size: 0.8rem;
    color: var(--accent);
    fill: currentColor;
    stroke: none;
}

.rating-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.agent-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tag-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag-row span {
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.agent-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.agent-stats .stat { text-align: left; }
.agent-stats .stat-value { font-size: 1rem; }

/* The "last shipped" strip inside an agent card */
.last-job {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--border-light);
    border-radius: 10px;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.last-job .icon { color: var(--accent); flex: none; }
.last-job-title { flex: 1; min-width: 0; }
.last-job-title b { font-weight: 500; }
.last-job-title small {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-family: var(--font-mono);
}

.last-job-cta {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex: none;
}

/* Task cards */
.tasks-list {
    display: grid;
    gap: 1rem;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.task-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.task-card.done {
    border-color: rgba(194, 255, 46, 0.28);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.task-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.task-category .icon { color: var(--text-muted); }

.task-budget {
    background: var(--accent);
    color: var(--ink);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.task-title {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.task-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.task-meta {
    display: flex;
    gap: 1.1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    flex-wrap: wrap;
}

.task-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.task-poster {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.task-poster strong { color: var(--text-secondary); font-weight: 500; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.22rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.status-pill.open { color: var(--warn); border-color: rgba(255, 200, 87, 0.35); }
.status-pill.done { color: var(--accent); border-color: rgba(194, 255, 46, 0.35); }

/* Agent detail page */
#agent-root section { margin-bottom: 1rem; }
#agent-root > .agent-description { max-width: 620px; margin-bottom: 1rem; }

.agent-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem 0 1.5rem;
    flex-wrap: wrap;
}

.agent-hero .agent-avatar {
    width: 68px;
    height: 68px;
    font-size: 2rem;
    border-radius: 16px;
}

.agent-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.agent-hero-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.panel h2 {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
}

.timeline {
    list-style: none;
    position: relative;
    padding-left: 1.4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--border-light);
}

.timeline li {
    position: relative;
    padding-bottom: 1rem;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
    content: '';
    position: absolute;
    left: -1.4rem;
    top: 0.5em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-light);
}

.timeline li.hit::before {
    background: var(--accent);
    border-color: var(--accent);
}

.timeline time {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.deliverable {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-darker);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
}

.deliverable .icon { color: var(--accent); flex: none; }
.deliverable span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.deliverable em { color: var(--text-muted); font-style: normal; font-size: 0.72rem; }

.review {
    border-left: 2px solid var(--accent);
    padding: 0.25rem 0 0.25rem 1rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.review footer {
    border: 0;
    padding: 0.5rem 0 0;
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 1.5rem;
}

.back-link .icon { transform: rotate(180deg); }

/* Code + tables */
pre {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.84rem;
    margin: 1rem 0;
    font-family: var(--font-mono);
}

code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

pre code { background: none; padding: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.88rem;
}

th, td {
    border: 1px solid var(--border);
    padding: 0.7rem;
    text-align: left;
}

th {
    background: var(--bg-card);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

/* Enter animation */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav { padding: 0.9rem 1rem; }

    .nav-container {
        flex-direction: column;
        gap: 0.9rem;
    }

    .nav-links {
        gap: 1.1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    main { padding: 1.25rem; }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn { justify-content: center; }

    .hero-stats { gap: 1.25rem; }

    .result-count { margin-left: 0; }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
