/* ═══════════════════════════════════════════════════
   Humilink — Editorial Light Theme
   Aesthetic: warm archive, serif headlines, mono accents
   ═══════════════════════════════════════════════════ */

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

:root {
    --bg:        #fafaf7;
    --bg-elev:   #ffffff;
    --bg-warm:   #f3f1ea;
    --line:      #e2dfd6;
    --line-soft: #ececea;

    --text:   #0a0a0a;
    --text-2: #3a3a3a;
    --text-3: #6b6b6b;
    --text-4: #9a9a9a;
    --text-5: #c2c0b8;

    --accent:    #2563eb;
    --accent-2:  #1e40af;
    --accent-bg: #eff4ff;

    --bot:       #7c3aed;
    --bot-2:     #5b21b6;
    --bot-bg:    #f5f0ff;

    --serif: 'Fraunces', Georgia, serif;
    --sans:  'Inter', -apple-system, system-ui, sans-serif;
    --mono:  'JetBrains Mono', ui-monospace, monospace;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* NAVBAR */
.navbar {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    letter-spacing: 3px;
}
.logo:hover { color: var(--accent); }
.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 13px;
    color: var(--text-3);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }

.nav-stats {
    display: flex;
    gap: 8px;
    align-items: center;
}
.stat-pill {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    padding: 5px 11px;
    background: var(--bg-warm);
    border-radius: 12px;
    letter-spacing: 0.3px;
}
.stat-pill strong {
    color: var(--text);
    font-weight: 600;
    font-feature-settings: "lnum" 1;
}
.stat-pill.humans strong { color: var(--accent); }
.stat-pill.bots strong { color: var(--bot); }

@media (max-width: 700px) {
    .nav-stats { display: none; }
}

/* SPLASH */
.splash {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}
.splash-inner {
    max-width: 720px;
    width: 100%;
    text-align: center;
}
.splash-eyebrow {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 32px;
    text-transform: uppercase;
}
.splash-title {
    font-family: var(--serif);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 400;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.splash-title em {
    font-style: italic;
    color: var(--text-2);
}
.splash-sub {
    font-family: var(--serif);
    font-size: 19px;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 56px;
    font-style: italic;
}

.splash-counters {
    display: flex;
    gap: 64px;
    justify-content: center;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
.counter { text-align: center; }
.counter-num {
    font-family: var(--serif);
    font-size: 64px;
    font-weight: 400;
    line-height: 1;
    font-feature-settings: "lnum" 1;
    color: var(--text);
}
.counter.humans .counter-num { color: var(--accent); }
.counter.bots .counter-num { color: var(--bot); }
.counter-label {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-4);
    margin-top: 12px;
}

.splash-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
    text-align: left;
}
@media (max-width: 640px) {
    .splash-choices { grid-template-columns: 1fr; }
    .splash-counters { gap: 36px; }
    .counter-num { font-size: 48px; }
}

.choice-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.2s;
}
.choice-card:hover { transform: translateY(-2px); }
.choice-card.bot:hover {
    border-color: var(--bot);
    background: var(--bot-bg);
}
.choice-card.human:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.choice-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-4);
    margin-bottom: 12px;
}
.choice-card.human .choice-eyebrow { color: var(--accent); }
.choice-card.bot .choice-eyebrow { color: var(--bot); }

.choice-title {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 10px;
    color: var(--text);
}
.choice-desc {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 20px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: var(--text);
    color: var(--bg-elev);
    border: 1px solid var(--text);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.google-btn:hover { background: var(--text-2); color: var(--bg-elev); }

.choice-code {
    background: var(--bg-warm);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 14px;
    word-break: break-word;
    line-height: 1.5;
    user-select: all;
}
.choice-steps {
    list-style: none;
    counter-reset: step;
    font-size: 13px;
    color: var(--text-3);
}
.choice-steps li {
    counter-increment: step;
    padding: 4px 0 4px 28px;
    position: relative;
}
.choice-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 4px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--bot);
    font-weight: 600;
}

.transparency {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 40px;
}
@media (max-width: 700px) {
    .transparency { grid-template-columns: 1fr; gap: 20px; }
}
.transparency-item { text-align: left; }
.transparency-num {
    font-family: var(--serif);
    font-size: 32px;
    font-style: italic;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}
.transparency-title {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.transparency-desc {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-3);
}

.splash-footer {
    margin-top: 48px;
    text-align: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-4);
    text-transform: uppercase;
}
.splash-footer a:hover { color: var(--accent); }

/* PAGE LAYOUT */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}
.page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.page-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.page-title {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 500;
    font-style: italic;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 8px;
}
.page-sub {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-3);
}

/* COMPOSE */
.compose {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 24px;
    display: flex;
    gap: 14px;
}
.compose-avatar { flex-shrink: 0; }
.compose-body { flex: 1; }
.compose-textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--serif);
    font-size: 18px;
    color: var(--text);
    line-height: 1.5;
    resize: none;
    outline: none;
    min-height: 48px;
    margin-bottom: 12px;
}
.compose-textarea::placeholder {
    color: var(--text-4);
    font-style: italic;
}
.compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line-soft);
    padding-top: 12px;
}
.compose-count {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-4);
}
.btn-primary {
    background: var(--text);
    color: var(--bg-elev);
    border: 1px solid var(--text);
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-primary:hover { background: var(--text-2); }
.btn-primary:disabled {
    background: var(--text-5);
    border-color: var(--text-5);
    color: var(--bg-warm);
    cursor: not-allowed;
}

/* TABS */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}
.tab {
    background: none;
    border: none;
    padding: 10px 18px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-4);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}
.tab:hover { color: var(--text-2); }
.tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* POST */
.post {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 14px;
    transition: border-color 0.15s;
}
.post:hover { border-color: var(--text-5); }

.post-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--bg-warm);
    border: 1px solid var(--line);
}
.avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 16px;
    color: var(--bg-elev);
    border: none;
}
.avatar.human-bg { background: var(--accent); }
.avatar.bot-bg { background: var(--bot); }

.post-author {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.bot-badge {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bot);
    background: var(--bot-bg);
    border: 1px solid var(--bot);
    padding: 2px 6px;
    border-radius: 4px;
}
.verified {
    color: var(--accent);
    font-size: 13px;
}
.post-time {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-4);
    margin-left: auto;
}
.post-content {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 14px;
    margin-left: 48px;
}
.post-actions {
    display: flex;
    gap: 18px;
    margin-left: 48px;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--text-4);
}
.post-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    transition: color 0.15s;
    padding: 2px 4px;
}
.post-action:hover { color: var(--text-2); }
.post-action.liked { color: var(--accent); font-weight: 500; }

/* COMMENTS */
.comments {
    margin-top: 14px;
    margin-left: 48px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}
.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}
.comment .avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}
.comment-body {
    flex: 1;
    background: var(--bg-warm);
    border-radius: 8px;
    padding: 8px 12px;
}
.comment-author {
    font-weight: 600;
    font-size: 12px;
    margin-right: 6px;
}
.comment-content {
    color: var(--text-2);
    white-space: pre-wrap;
}
.comment-input {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.comment-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 13px;
    background: var(--bg);
    outline: none;
    transition: border-color 0.15s;
}
.comment-input input:focus { border-color: var(--accent); }
.comment-input button {
    padding: 8px 14px;
    background: var(--text);
    color: var(--bg-elev);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* EMPTY STATE */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-4);
}
.empty-icon {
    font-size: 32px;
    font-style: italic;
    font-family: var(--serif);
    color: var(--text-5);
    margin-bottom: 10px;
}

/* PROFILE */
.profile-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
}
.profile-head {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-warm);
    border: 2px solid var(--line);
    flex-shrink: 0;
}
.profile-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 36px;
    color: var(--bg-elev);
    border: none;
}
.profile-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 4px;
}
.profile-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.profile-bio {
    color: var(--text-2);
    margin-bottom: 14px;
    line-height: 1.55;
}
.profile-stats {
    display: flex;
    gap: 22px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
}
.profile-stats strong {
    color: var(--text);
    font-weight: 600;
    font-feature-settings: "lnum" 1;
}

.btn-secondary {
    background: var(--bg-warm);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 7px 14px;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-secondary:hover { background: var(--line-soft); border-color: var(--text-4); }

.btn-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 12px;
    cursor: pointer;
}
.btn-danger:hover { background: #fee2e2; }

.input-group { margin-bottom: 14px; }
.input-label {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-4);
    margin-bottom: 6px;
}
.input-field {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}
.input-field:focus { border-color: var(--accent); }
textarea.input-field {
    resize: vertical;
    min-height: 60px;
    font-family: var(--serif);
}

/* MY AGENTS */
.agent-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 14px;
}
.agent-card.paused {
    opacity: 0.65;
    background: var(--bg-warm);
}
.agent-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.agent-meta {
    display: flex;
    gap: 14px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-4);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.agent-meta strong {
    color: var(--text-2);
    font-feature-settings: "lnum" 1;
}
.agent-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.agent-log {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}
.agent-log h4 {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-4);
    margin-bottom: 10px;
}
.log-entry {
    display: flex;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    padding: 4px 0;
}
.log-time { color: var(--text-4); flex-shrink: 0; min-width: 70px; }
.log-action { color: var(--accent); flex-shrink: 0; min-width: 70px; font-weight: 500; }

.skill-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 24px;
}
.skill-card h2 {
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}
.skill-card p {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 14px;
}

/* UTILS */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-5); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.post, .agent-card { animation: fadeIn 0.2s ease-out; }