/* ============================================================
   ComputeCheck-inspired design system
   Primary: #0a0f1c  Cyan: #00f5ff  Purple: #a855f7
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
    --bg:          #0a0f1c;
    --bg-card:     rgba(255,255,255,0.03);
    --bg-card-h:   rgba(255,255,255,0.055);
    --cyan:        #00f5ff;
    --purple:      #a855f7;
    --emerald:     #10b981;
    --amber:       #f59e0b;
    --red:         #ef4444;
    --text-1:      #f1f5f9;
    --text-2:      #94a3b8;
    --text-3:      #475569;
    --border:      rgba(255,255,255,0.07);
    --border-h:    rgba(255,255,255,0.14);
    --glow-cyan:   rgba(0, 245, 255, 0.06);
    --glow-purple: rgba(168, 85, 247, 0.08);
    --radius-card: 14px;
    --radius-pill: 9999px;
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text-1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    /* Dotted background grid */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,245,255,0.08) 0%, transparent 70%),
        radial-gradient(circle, rgba(0,245,255,0.06) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px;
    background-attachment: fixed, fixed;
}

/* ── Sticky header ───────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 15, 28, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.site-header .inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
}
.logo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    flex-shrink: 0;
}
.logo-text {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header nav links */
.site-nav a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s;
}
.site-nav a:hover { color: var(--text-1); }
.site-nav .divider { color: var(--border-h); }

/* Mobile nav */
.mobile-nav {
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1rem;
    background: rgba(10,15,28,0.95);
}
.mobile-nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--cyan); }
.hamburger {
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}
.hamburger:hover { color: var(--text-1); }

/* ── Page container ──────────────────────────────────────── */
.page-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
    box-shadow: 0 0 0 1px rgba(0,245,255,0.04), 0 4px 24px rgba(0,0,0,0.4);
}
.card-lg { padding: 2rem; }

/* ── Badges / pills ──────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.65em;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}
.badge-cyan   { background: rgba(0,245,255,0.1);   color: var(--cyan);    border-color: rgba(0,245,255,0.2); }
.badge-purple { background: rgba(168,85,247,0.12);  color: var(--purple);  border-color: rgba(168,85,247,0.25); }
.badge-green  { background: rgba(16,185,129,0.12);  color: var(--emerald); border-color: rgba(16,185,129,0.25); }
.badge-amber  { background: rgba(245,158,11,0.12);  color: var(--amber);   border-color: rgba(245,158,11,0.25); }
.badge-red    { background: rgba(239,68,68,0.12);   color: var(--red);     border-color: rgba(239,68,68,0.25); }

/* ── Gradient headings ───────────────────────────────────── */
.grad-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero section ────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero p {
    color: var(--text-2);
    font-size: 1.05rem;
    max-width: 38rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-family: 'Courier New', monospace;
    color: var(--cyan);
}
.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
/* Live-updates dot */
.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    margin-right: 4px;
    animation: pulse-dot 2s infinite;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-3);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-1); }
.breadcrumb span { margin: 0 0.4em; }

/* ── Comparison / prose tables ───────────────────────────── */
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1.5em 0;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.prose th, .prose td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.prose th {
    background: rgba(0,245,255,0.04);
    color: var(--text-2);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.prose tr:last-child td { border-bottom: none; }
.prose tr:hover td { background: rgba(255,255,255,0.025); }
/* Price cells – cyan/purple monospace like ComputeCheck */
.prose td:nth-child(2),
.prose td:nth-child(3) {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--cyan);
}
.prose td:nth-child(4) {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--purple);
}

/* ── Article prose (body copy) ───────────────────────────── */
.prose { color: var(--text-2); line-height: 1.75; }
.prose h1, .prose h2, .prose h3,
.prose h4, .prose h5, .prose h6 {
    color: var(--text-1);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2em;
    margin-bottom: 0.6em;
    line-height: 1.25;
}
.prose h1 { font-size: 1.9rem; }
.prose h2 {
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4em;
}
.prose h3 { font-size: 1.1rem; color: var(--text-1); }
.prose p  { margin: 1em 0; }
.prose a  { color: var(--cyan); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text-1); font-weight: 600; }
.prose code {
    background: rgba(0,245,255,0.08);
    color: var(--cyan);
    padding: 0.15em 0.45em;
    border-radius: 5px;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}
.prose ul, .prose ol {
    padding-left: 1.5em;
    margin: 1em 0;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.35em 0; }
.prose blockquote {
    border-left: 3px solid var(--cyan);
    padding: 0.5em 1em;
    margin: 1.25em 0;
    background: rgba(0,245,255,0.04);
    border-radius: 0 8px 8px 0;
    color: var(--text-2);
    font-style: italic;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.55em 1.2em;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-2);
}
.btn:hover { background: var(--bg-card-h); border-color: var(--border-h); color: var(--text-1); }
.btn-cyan {
    background: rgba(0,245,255,0.1);
    border-color: rgba(0,245,255,0.3);
    color: var(--cyan);
}
.btn-cyan:hover {
    background: rgba(0,245,255,0.18);
    border-color: rgba(0,245,255,0.5);
    color: var(--cyan);
}
.btn-purple {
    background: rgba(168,85,247,0.1);
    border-color: rgba(168,85,247,0.3);
    color: var(--purple);
}
.btn-purple:hover {
    background: rgba(168,85,247,0.18);
    border-color: rgba(168,85,247,0.5);
    color: var(--purple);
}
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 0.75em 1.8em; font-size: 0.95rem; border-radius: 10px; }

/* ── Category grid cards ─────────────────────────────────── */
.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.cat-card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
}
.cat-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-1);
    margin-bottom: 0.75rem;
}
.cat-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.cat-card ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.cat-card ul li:last-child { border-bottom: none; }
.cat-card ul li a {
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.15s;
}
.cat-card ul li a:hover { color: var(--cyan); }
.cat-card .view-all {
    font-size: 0.78rem;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s;
}
.cat-card .view-all:hover { color: var(--text-1); }

/* ── Article cards (category page) ──────────────────────── */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.5rem;
    transition: background 0.15s, border-color 0.15s;
}
.article-card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
}
.article-card h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.35rem; }
.article-card h2 a { color: var(--text-1); text-decoration: none; }
.article-card h2 a:hover { color: var(--cyan); }
.article-card .meta { font-size: 0.75rem; color: var(--text-3); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.footer-nav a {
    font-size: 0.8rem;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text-1); }
.footer-copy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-3);
    line-height: 1.6;
}
.footer-copy a { color: var(--text-3); text-decoration: none; }
.footer-copy a:hover { color: var(--text-1); }

/* ── Form inputs ─────────────────────────────────────────── */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0.7rem 1rem;
    color: var(--text-1);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(0,245,255,0.4);
    background: rgba(0,245,255,0.03);
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-select option { background: #0f1729; color: var(--text-1); }
.form-textarea { resize: none; line-height: 1.6; }
.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

/* ── Section heading ─────────────────────────────────────── */
.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Utilities ───────────────────────────────────────────── */
.text-cyan    { color: var(--cyan) !important; }
.text-purple  { color: var(--purple) !important; }
.text-emerald { color: var(--emerald) !important; }
.text-muted   { color: var(--text-2); }
.text-dim     { color: var(--text-3); }
.mono         { font-family: 'Courier New', monospace; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;         gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr);  gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr);  gap: 1rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* "VS" divider badge */
.vs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(168,85,247,0.15);
    border: 1px solid rgba(168,85,247,0.3);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--purple);
    flex-shrink: 0;
}

/* ── Legacy alias (keeps old .glass-card references working) ─ */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    transition: background 0.15s, border-color 0.15s;
}
.glass-card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
}
