/* ============================
   Design System
   ============================ */
:root {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-subtle: #eff6ff;
    --success: #10b981;
    --success-subtle: #ecfdf5;
    --warning: #f59e0b;
    --warning-subtle: #fffbeb;
    --danger: #ef4444;
    --danger-subtle: #fef2f2;
    --nav-bg: #0f172a;
    --nav-text: #94a3b8;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
    --transition: 150ms ease;
    --hero-bg-start: #0a0f1e;
    --hero-bg-end: #0f172a;
    --hero-text: #f1f5f9;
    --hero-text-muted: #94a3b8;
    --hero-border: rgba(255, 255, 255, 0.08);
    --step-num-color: rgba(59, 130, 246, 0.15);
    --animate-duration: 600ms;
    --animate-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Reset & Base === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* === Navigation === */
nav {
    background: var(--nav-bg);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand { font-weight: 700; font-size: 1rem; color: #f1f5f9; letter-spacing: -0.01em; white-space: nowrap; }
.nav-brand a { color: inherit; }
.nav-brand a:hover { color: inherit; text-decoration: none; }
.nav-links { display: flex; gap: 0.125rem; align-items: center; }
.nav-links a {
    color: var(--nav-text);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
}
.nav-links a:hover { color: #e2e8f0; background: rgba(255,255,255,0.07); text-decoration: none; }
.nav-links a.active { color: #ffffff; background: rgba(255,255,255,0.12); }
.nav-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--nav-text);
    white-space: nowrap;
}
.nav-user a, .nav-user .link-button { color: var(--nav-text); transition: color var(--transition); }
.nav-user a:hover, .nav-user .link-button:hover { color: #e2e8f0; text-decoration: none; }
.nav-separator { color: #334155; }
.link-button { background: none; border: none; cursor: pointer; font: inherit; padding: 0; }

/* === Layout === */
main { max-width: 1024px; margin: 0 auto; padding: 1.75rem 1.5rem; }

/* === Typography === */
h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 1.25rem; }
h2 { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; }
h3 { font-size: 0.9375rem; font-weight: 600; color: var(--text-secondary); margin: 1.25rem 0 0.5rem; }

/* === Cards === */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}
.card h2 { margin-top: 0; }
.card h2:not(:first-child) { margin-top: 1.5rem; }

/* === Stat Grid === */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.875rem; margin-bottom: 1.25rem; }
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.125rem 1.25rem;
    box-shadow: var(--shadow);
}
.stat-value { font-size: 1.875rem; font-weight: 700; line-height: 1.2; color: var(--text); letter-spacing: -0.02em; }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; margin-top: 0.125rem; }
.stat-sub { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.125rem; }

/* === Activity Chart === */
.activity-chart { display: flex; align-items: flex-end; gap: 3px; height: 100px; padding: 0.25rem 0; }
.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    cursor: default;
}
.chart-bar {
    width: 100%;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: background var(--transition);
}
.chart-col:hover .chart-bar { background: var(--accent-hover); }
.chart-col:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -26px;
    background: var(--nav-bg);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.625rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}
.chart-labels { display: flex; gap: 3px; margin-top: 0.25rem; }
.chart-labels span { flex: 1; text-align: center; font-size: 0.5625rem; color: var(--text-muted); }

/* === Source Tags === */
.source-tags { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.source-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.625rem;
    background: var(--bg);
    border-radius: 99px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.source-tag strong { color: var(--text); font-weight: 600; }

/* === Tables === */
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
th, td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
td em { color: var(--text-muted); font-style: normal; }

/* === Status Dot === */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.375rem;
    vertical-align: middle;
}
.status-dot.fresh { background: var(--success); box-shadow: 0 0 0 2px var(--success-subtle); }
.status-dot.recent { background: var(--warning); }
.status-dot.stale { background: #cbd5e1; }

/* === Detail Table === */
.detail-table { max-width: 600px; }
.detail-table th { width: 180px; text-transform: none; font-size: 0.8125rem; letter-spacing: normal; }

/* === Forms === */
.form-group { margin-bottom: 0.875rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.25rem; font-size: 0.8125rem; color: var(--text-secondary); }
input[type="text"], input[type="password"], select {
    padding: 0.4375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    width: 100%;
    max-width: 320px;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.input-suffix { display: flex; align-items: center; gap: 0.25rem; }
.input-suffix input { max-width: 200px; }
.input-suffix span { color: var(--text-muted); font-size: 0.8125rem; white-space: nowrap; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4375rem 0.875rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-sm { padding: 0.1875rem 0.5rem; font-size: 0.6875rem; }
.btn-xs { padding: 0.125rem 0.375rem; font-size: 0.625rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; border-radius: 8px; }
.inline-form { display: inline; }
.form-inline { margin-top: 0.75rem; }
.action-row { display: flex; gap: 0.375rem; flex-wrap: wrap; align-items: center; }
.role-select {
    padding: 0.1875rem 0.375rem;
    font-size: 0.6875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

/* === Filter form === */
.filter-form { margin: 0; }
.filter-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.6875rem; color: var(--text-muted); font-weight: 500; }
.filter-group input,
.filter-group select {
    padding: 0.3125rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}
.filter-actions { flex-direction: row; gap: 0.375rem; align-items: flex-end; }

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}
.page-links { display: flex; align-items: center; gap: 0.25rem; }
.page-link, .page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.375rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.page-link { color: var(--text); }
.page-link:hover { background: var(--surface-hover); }
.page-current { background: var(--accent); color: #fff; font-weight: 600; }
.page-gap { color: var(--text-muted); font-size: 0.75rem; padding: 0 0.125rem; }

/* === Count badge === */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    background: var(--surface-hover);
    color: var(--text-muted);
    border-radius: 999px;
    vertical-align: middle;
}

/* === Detail page layout === */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    align-items: start;
}
.detail-main { min-width: 0; }
.detail-sidebar { min-width: 0; }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th {
    text-align: left;
    padding: 0.375rem 0.75rem 0.375rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    width: 1%;
}
.detail-table td {
    padding: 0.375rem 0;
    font-size: 0.8125rem;
}
.token-list { list-style: none; padding: 0; margin: 0; }
.token-list li {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.token-list li:last-child { border-bottom: none; }
.action-col { display: flex; flex-direction: column; gap: 0.375rem; }

/* === Health page layout === */
.health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .detail-grid, .health-grid {
        grid-template-columns: 1fr;
    }
}

/* === Alerts === */
.alert {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    border-left: 3px solid transparent;
}
.alert.error { background: var(--danger-subtle); color: #991b1b; border-left-color: var(--danger); }
.alert.success { background: var(--success-subtle); color: #065f46; border-left-color: var(--success); }
.alert.warning { background: var(--warning-subtle); color: #92400e; border-left-color: var(--warning); }

/* === Token Display === */
.token-display {
    background: var(--nav-bg);
    color: #22d3ee;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    word-break: break-all;
    font-size: 0.8125rem;
}
.token-display code { flex: 1; }

/* === Code === */
pre {
    background: var(--nav-bg);
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    line-height: 1.6;
}
code { font-family: var(--font-mono); font-size: 0.75rem; }
p code { background: var(--bg); padding: 0.125rem 0.375rem; border-radius: 4px; }

/* === Login Page === */
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 1rem; }
.login-box {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 380px;
}
.login-box h1 { text-align: center; margin-bottom: 1.5rem; font-size: 1.25rem; }
.login-box input[type="text"], .login-box input[type="password"] { max-width: none; }
.login-box .btn { width: 100%; justify-content: center; padding: 0.5rem; margin-top: 0.25rem; }

/* === Brand === */
.brand-header { text-align: center; margin-bottom: 1.25rem; }
.brand-title { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.brand-slogan { font-size: 0.8125rem; font-weight: 400; color: var(--text-muted); margin-top: 0.125rem; letter-spacing: 0.02em; }
.brand-subtitle { font-size: 1rem; font-weight: 500; color: var(--text-secondary); margin-top: 0.5rem; }

/* === Landing Page === */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
}
.landing-card {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.landing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.landing-card-icon { font-size: 1.5rem; margin-bottom: 0.375rem; color: var(--accent); }
.landing-card h3 { font-size: 0.9rem; color: var(--text); margin: 0 0 0.25rem; }
.landing-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.landing-footer { padding: 2rem 1rem; font-size: 0.8125rem; color: var(--text-muted); }
.landing-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 700px;
    padding: 0 1rem 3rem;
}

/* === Landing Page v2 === */

/* Hero */
.lp-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--hero-bg-start);
}
.lp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,0.25) 0%, transparent 70%),
        linear-gradient(160deg, #0a0f1e 0%, #0f172a 50%, #0c1425 100%);
    animation: heroGradientShift 12s ease-in-out infinite alternate;
}
@keyframes heroGradientShift {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(15deg) brightness(1.05); }
}
.lp-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}
.lp-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    max-width: 680px;
    width: 100%;
    animation: heroEntrance 900ms var(--animate-easing) both;
}
@keyframes heroEntrance {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lp-badge {
    display: inline-block;
    padding: 0.3rem 0.875rem;
    border: 1px solid var(--hero-border);
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--hero-text-muted);
    letter-spacing: 0.03em;
    margin-bottom: 1.75rem;
    background: rgba(255,255,255,0.04);
}
.lp-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--hero-text);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #93c5fd 60%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-slogan {
    font-size: 1.0625rem;
    color: var(--hero-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.lp-tagline {
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.lp-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.lp-cta-btn {
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(59,130,246,0.4);
    animation: ctaPulse 3s ease-in-out 1.5s infinite;
    transition: background var(--transition), transform 150ms ease, box-shadow 150ms ease;
}
.lp-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
    animation: none;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
}
.lp-secondary-link {
    color: var(--hero-text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.lp-secondary-link:hover { color: var(--hero-text); }

/* Terminal preview */
.lp-code-preview {
    display: inline-block;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--hero-border);
    border-radius: var(--radius);
    padding: 0.875rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: left;
    line-height: 1.8;
}
.lp-code-comment { color: #475569; }
.lp-code-cmd { color: #60a5fa; }
.lp-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    animation: cursorBlink 1.1s step-end infinite;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Shared section wrapper */
.lp-section {
    width: 100%;
    max-width: 900px;
    padding: 5rem 1.5rem;
    margin: 0 auto;
}
.lp-section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 3rem;
}

/* How it works */
.lp-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.lp-step {
    flex: 1;
    max-width: 260px;
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}
.lp-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.lp-step-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--step-num-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    font-family: var(--font-mono);
}
.lp-step-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}
.lp-step h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.lp-step p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.lp-step-connector {
    flex: 0 0 auto;
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.4;
    align-self: center;
    padding: 0 0.5rem;
    margin-top: -1.5rem;
}

/* Features section */
.lp-features-grid {
    display: grid;
    max-width: 900px;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.lp-features-section .landing-card {
    border: 1px solid var(--border);
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.lp-features-section .landing-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: var(--accent);
}
.lp-features-section .landing-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

/* Use cases */
.lp-usecases {
    background: linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.03) 50%, transparent 100%);
}
.lp-usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.lp-usecase-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.lp-usecase-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.lp-usecase-icon {
    font-size: 2rem;
    margin-bottom: 0.875rem;
    display: block;
}
.lp-usecase-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.lp-usecase-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Final CTA */
.lp-cta-section {
    width: 100%;
    padding: 5rem 1.5rem;
    text-align: center;
    background: var(--hero-bg-end);
}
.lp-cta-inner {
    max-width: 500px;
    margin: 0 auto;
}
.lp-cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--hero-text);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}
.lp-cta-section p {
    color: var(--hero-text-muted);
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}
.lp-cta-section .btn-primary {
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
    transition: background var(--transition), transform 150ms ease, box-shadow 150ms ease;
}
.lp-cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59,130,246,0.45);
}

/* Footer */
.lp-footer {
    width: 100%;
    background: var(--hero-bg-end);
    border-top: 1px solid var(--hero-border);
    color: var(--hero-text-muted);
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
.lp-footer a { color: var(--hero-text-muted); }
.lp-footer a:hover { color: var(--hero-text); }

/* Scroll animations */
[data-animate] { opacity: 0; transform: translateY(20px); transition: none; }
[data-animate-child] { opacity: 0; transform: translateY(16px); transition: none; }
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--animate-duration) var(--animate-easing),
                transform var(--animate-duration) var(--animate-easing);
}
[data-animate-child].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--animate-duration) var(--animate-easing),
                transform var(--animate-duration) var(--animate-easing);
}

/* === Utilities === */
.hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.375rem; }
ol { margin: 0.5rem 0 0.5rem 1.5rem; }
li { margin-bottom: 0.25rem; }
.empty-state { text-align: center; color: var(--text-muted); padding: 1.5rem 0; font-size: 0.8125rem; }
p { margin-bottom: 0.5rem; }
p:last-child { margin-bottom: 0; }

/* === Responsive === */
@media (max-width: 900px) {
    .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-usecase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    nav { height: auto; padding: 0.625rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
    .nav-links { gap: 0; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-features { grid-template-columns: 1fr; }
    main { padding: 1.25rem 1rem; }
    .lp-hero-content { padding: 5rem 1rem 4rem; }
    .lp-steps { flex-direction: column; align-items: center; gap: 1rem; }
    .lp-step-connector { transform: rotate(90deg); padding: 0; }
    .lp-usecase-grid { grid-template-columns: 1fr; }
    .lp-features-grid { grid-template-columns: 1fr 1fr; }
    .lp-section { padding: 3.5rem 1rem; }
    .lp-hero-glow { width: 300px; height: 200px; }
}
@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .nav-user { width: 100%; justify-content: flex-end; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-hero-actions { gap: 1rem; }
    .lp-cta-section { padding: 3.5rem 1rem; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .lp-hero-content,
    .lp-cta-btn,
    .lp-hero-bg,
    .lp-hero-glow,
    .lp-cursor { animation: none !important; }
    [data-animate], [data-animate-child] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
