/* ============================================================
 *  AxiomHub — UI Stylesheet
 *  Copyright (c) 2026 Axiom Studios
 * ============================================================ */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #151d2e;
    --bg-hover: #1a2340;
    --bg-input: #0d1320;
    --border: #1e2a3a;
    --border-focus: #00b4d8;
    --accent: #00b4d8;
    --accent-glow: rgba(0, 180, 216, 0.15);
    --accent-green: #00e676;
    --accent-red: #ff5252;
    --accent-yellow: #ffd740;
    --accent-purple: #b388ff;
    --text-primary: #e0e6ed;
    --text-secondary: #7a8ba3;
    --text-muted: #4a5568;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

html, body {
    height: 100%;
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/img/hero-bg.jpg') center center / cover no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

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

/* ── Layout ── */
.app { display: flex; flex-direction: column; min-height: 100vh; position: relative; z-index: 1; }

.navbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 56px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}

.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 18px; color: var(--text-primary);
    cursor: pointer;
}

.navbar-brand svg { width: 28px; height: 28px; }

.navbar-links { display: flex; gap: 8px; align-items: center; }

.navbar-links a, .navbar-links button {
    padding: 6px 14px; border-radius: var(--radius);
    font-size: 13px; font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border: none; cursor: pointer;
    font-family: var(--font);
}

.navbar-links a {
    color: var(--text-secondary);
    background: transparent;
}

.navbar-links a:hover, .navbar-links a.active {
    color: var(--text-primary);
    background: var(--bg-hover);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent) !important;
    color: #000 !important;
    font-weight: 600 !important;
}
.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
}
.btn-ghost:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

.btn-danger {
    background: var(--accent-red) !important;
    color: #fff !important;
}

/* ── App body (sidebar + main) ── */
.app-body { display: flex; flex: 1; overflow: hidden; }
.app-body .main { flex: 1; overflow-y: auto; height: calc(100vh - 56px); padding: 32px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* ── Sidebar ── */
.sidebar { width: 240px; background: var(--bg-secondary); border-right: 1px solid var(--border); height: calc(100vh - 56px); overflow-y: auto; padding: 16px 0; flex-shrink: 0; display: none; }
.sidebar.active { display: block; }
.sidebar-section { padding: 8px 16px; margin-bottom: 8px; }
.sidebar-section h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 8px 16px; color: var(--text-secondary); font-size: 14px; border-radius: var(--radius); margin: 2px 8px; cursor: pointer; transition: all 0.15s; }
.sidebar-link:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
.sidebar-link.active { background: var(--accent-glow); color: var(--accent); border-left: 2px solid var(--accent); }
.sidebar-link .icon { width: 18px; text-align: center; font-size: 16px; }
.sidebar-divider { height: 1px; background: var(--border); margin: 12px 16px; }
.sidebar-stats { padding: 16px; margin: 8px 16px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); }
.sidebar-stats .stat-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.sidebar-stats .stat-label { color: var(--text-muted); }
.sidebar-stats .stat-value { color: var(--accent); font-family: var(--font-mono); }

/* ── Dashboard cards ── */
.dashboard { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dashboard-full { grid-column: 1 / -1; }
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: border-color 0.2s; }
.dash-card:hover { border-color: var(--accent); }
.dash-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--text-primary); }
.dash-card .card-value { font-size: 2rem; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.dash-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.quick-action-btn { padding: 10px 20px; background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); cursor: pointer; font-size: 14px; transition: all 0.15s; text-decoration: none; display: inline-block; font-family: var(--font); }
.quick-action-btn:hover { border-color: var(--accent); background: var(--accent-glow); text-decoration: none; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.activity-text { font-size: 14px; color: var(--text-secondary); }
.activity-time { font-size: 12px; color: var(--text-muted); }

/* ── Getting started checklist ── */
.checklist { list-style: none; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text-secondary); }
.checklist .check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checklist .check.done { background: var(--accent); border-color: var(--accent); }

/* ── Explore page ── */
.explore-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.explore-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: border-color 0.2s; }
.explore-card:hover { border-color: var(--accent); }
.explore-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--accent); }
.explore-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.explore-code { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text-primary); white-space: pre; overflow-x: auto; }

/* ── Auth pages ── */
.auth-container {
    max-width: 420px; margin: 80px auto; padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth-container h1 {
    font-size: 24px; margin-bottom: 8px; text-align: center;
}

.auth-container p {
    color: var(--text-secondary); text-align: center;
    margin-bottom: 28px; font-size: 14px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 6px;
}

.form-group input {
    width: 100%; padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px; font-family: var(--font);
    outline: none; transition: border 0.15s;
}

.form-group input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-btn {
    width: 100%; padding: 12px;
    background: var(--accent); color: #000;
    border: none; border-radius: var(--radius);
    font-size: 15px; font-weight: 600;
    cursor: pointer; font-family: var(--font);
    transition: opacity 0.15s;
}
.form-btn:hover { opacity: 0.9; }
.form-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-footer {
    text-align: center; margin-top: 20px;
    font-size: 13px; color: var(--text-secondary);
}

.alert {
    padding: 10px 14px; border-radius: var(--radius);
    margin-bottom: 18px; font-size: 13px;
}
.alert-error { background: rgba(255,82,82,0.12); color: var(--accent-red); border: 1px solid rgba(255,82,82,0.3); }
.alert-success { background: rgba(0,230,118,0.12); color: var(--accent-green); border: 1px solid rgba(0,230,118,0.3); }

/* ── Dashboard ── */
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}

.page-header h1 { font-size: 22px; font-weight: 700; }

.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.stat-card .stat-label {
    font-size: 12px; font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 28px; font-weight: 700; color: var(--accent);
}

.badge {
    display: inline-block; padding: 2px 8px;
    border-radius: 12px; font-size: 11px; font-weight: 600;
    text-transform: uppercase;
}
.badge-private { background: rgba(179,136,255,0.15); color: var(--accent-purple); }
.badge-public { background: rgba(0,230,118,0.15); color: var(--accent-green); }

/* ── File browser ── */
.file-browser {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.file-browser-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.breadcrumbs span { color: var(--text-muted); }

.file-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background 0.1s;
    font-size: 14px;
}
.file-row:hover { background: var(--bg-hover); }
.file-row:last-child { border-bottom: none; }

.file-icon { width: 20px; color: var(--text-muted); text-align: center; }
.file-name { flex: 1; }
.file-size { color: var(--text-muted); font-size: 12px; font-family: var(--font-mono); }
.file-date { color: var(--text-muted); font-size: 12px; width: 140px; text-align: right; }

/* ── Code viewer ── */
.code-viewer {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: auto;
    margin-top: 16px;
}

.code-viewer pre {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px; line-height: 1.6;
    color: var(--text-primary);
    white-space: pre;
    overflow-x: auto;
}

.code-viewer .line-num {
    display: inline-block; width: 48px;
    text-align: right; padding-right: 16px;
    color: var(--text-muted); user-select: none;
    border-right: 1px solid var(--border);
    margin-right: 16px;
}

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; backdrop-filter: blur(4px);
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px; width: 480px; max-width: 90vw;
    box-shadow: var(--shadow);
}

.modal h2 { font-size: 20px; margin-bottom: 20px; }

.modal .form-group:last-of-type { margin-bottom: 24px; }

/* ── Upload area ── */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px; text-align: center;
    color: var(--text-muted); cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 16px;
}
.upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* ── Activity feed ── */
.activity-list { max-height: 400px; overflow-y: auto; }

.activity-item {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-time { color: var(--text-muted); white-space: nowrap; font-family: var(--font-mono); font-size: 11px; }
.activity-action { color: var(--text-secondary); }
.activity-target { color: var(--accent); font-weight: 500; }

/* ── Empty state ── */
.empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .main { padding: 16px; }
    .navbar { padding: 0 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .auth-container { margin: 40px 16px; padding: 24px; }
    .file-date { display: none; }
    .sidebar { width: 200px; }
    .dashboard { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .sidebar { display: none !important; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Spinner ── */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Syntax highlighting (basic) ── */
.syntax-keyword { color: #c792ea; }
.syntax-string { color: #c3e88d; }
.syntax-number { color: #f78c6c; }
.syntax-comment { color: #546e7a; font-style: italic; }
.syntax-function { color: #82aaff; }
.syntax-operator { color: #89ddff; }

/* ── Site Footer ── */
/* ═══════════════════════════════════════════════════════════
   Home Dashboard
   ═══════════════════════════════════════════════════════════ */

.home-dash { padding: 0; }

.home-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #0a1628 100%);
    border-bottom: 1px solid var(--border);
    padding: 48px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.home-hero-content { flex: 1; }

.home-greeting {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.home-greeting strong { color: var(--accent); }

.home-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    transition: all 0.15s;
}

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

.home-hero-stats {
    display: flex;
    gap: 32px;
}

.hero-stat { text-align: center; }

.hero-stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    padding: 32px 40px;
}

.home-col { display: flex; flex-direction: column; gap: 24px; }

.home-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.home-card-accent {
    border-color: rgba(0, 180, 216, 0.2);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 180, 216, 0.04) 100%);
}

.home-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.home-card-header h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

.home-link {
    font-size: 13px;
    color: var(--accent);
    cursor: pointer;
    transition: color 0.15s;
}

.home-link:hover { color: #33c9e8; }

.home-empty {
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

/* Quick actions grid */
.home-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.home-action {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.home-action:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.home-action-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 8px;
}

.home-action-label {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Activity feed */
.home-activity-list { max-height: 400px; overflow-y: auto; }

.home-activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.home-activity-item:last-child { border-bottom: none; }

.home-activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--accent);
    flex-shrink: 0;
}

.home-activity-body { flex: 1; min-width: 0; }

.home-activity-user {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.home-activity-text {
    color: var(--text-secondary);
    font-size: 13px;
}

.home-activity-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Feature list card */
.home-feature-list { display: flex; flex-direction: column; gap: 8px; }

.home-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.home-feature-check {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 14px;
}

/* Share links */
.home-share-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-share-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    font-family: var(--font);
}

.home-share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
    .home-hero { flex-direction: column; padding: 32px 20px; }
    .home-hero-stats { justify-content: center; }
    .home-grid { grid-template-columns: 1fr; padding: 20px; }
}

.site-footer {
    background: #080b12;
    border-top: 1px solid var(--border);
    padding: 24px 32px;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-legal {
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-links {
    font-size: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.15s;
}

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

/* ── Toast notifications ── */
.toast-container { position: fixed; top: 70px; right: 20px; z-index: 2000; }

.toast {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 13px; font-weight: 500;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow);
    max-width: 360px;
}
.toast-success { background: #1a3a2a; color: var(--accent-green); border: 1px solid rgba(0,230,118,0.3); }
.toast-error { background: #3a1a1a; color: var(--accent-red); border: 1px solid rgba(255,82,82,0.3); }
.toast-info { background: #1a2a3a; color: var(--accent); border: 1px solid rgba(0,180,216,0.3); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
 * Landing Page
 * ═══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url('/img/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}

/* ── Landing Buttons ── */
.hero-buttons .btn-primary,
.cta-section .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.2s, opacity 0.15s;
}

.hero-buttons .btn-primary:hover,
.cta-section .btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 20px var(--accent-glow);
    text-decoration: none;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: rgba(0, 180, 216, 0.1);
    text-decoration: none;
}

/* ── Features (base in landing section above) ── */

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
}

.feature-card h3 {
    color: var(--accent);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ── About Section ── */
.about-section {
    padding: 80px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ── Stats Bar ── */
.stats-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 40px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── CTA Section ── */
.cta-section {
    padding: 80px 24px;
    text-align: center;
    background: var(--bg-primary);
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.cta-section .btn-primary {
    font-size: 16px;
    padding: 16px 40px;
}

/* ── Hero Badge ── */
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-trust span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Features Header ── */
.features-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 16px;
}

.features-header h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.features-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features {
    display: block;
    padding: 80px 48px;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* ── About Links ── */
.about-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ── Stats Bar Upgraded ── */
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ── Share Section ── */
.share-section {
    padding: 48px 24px;
    text-align: center;
    background: var(--bg-primary);
}

.share-section h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.share-fb { background: #1877f2; }
.share-x { background: #000; border: 1px solid #333; }
.share-li { background: #0a66c2; }
.share-email { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); }
.share-email:hover { color: var(--text-primary); }

/* ── CTA Sub ── */
.cta-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

/* ── Landing Footer ── */
.landing-footer {
    background: #060810;
    border-top: 1px solid var(--border);
    padding: 48px 32px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 3px 0;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-legal-text {
    font-size: 10px;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Landing Responsive ── */
@media (max-width: 768px) {
    .features { padding: 48px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-trust { flex-direction: column; gap: 8px; }
    .stats-bar { flex-wrap: wrap; gap: 20px; padding: 32px 20px; }
    .stat-item { flex-basis: 40%; }
    .about-section { padding: 48px 20px; }
    .about-section h2 { font-size: 2rem; }
    .cta-section { padding: 48px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .share-buttons { flex-direction: column; align-items: center; }
}
