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

:root {
    --ink:   #f0f2f4;
    --ink-2: #a5abb0;
    --ink-3: #646b70;

    --bg:   #0a0e0f;
    --bg-2: #111517;
    --bg-3: #181d20;
    --bg-4: #202629;

    --gold:     #10b981;
    --gold-2:   #34d399;
    --gold-dim: rgba(16, 185, 129, 0.12);
    --gold-glow: rgba(16, 185, 129, 0.06);

    --border:   rgba(255, 255, 255, 0.08);
    --border-2: rgba(255, 255, 255, 0.13);
    --border-gold: rgba(16, 185, 129, 0.35);

    --green: #10b981;
    --red:   #ef4444;

    --font-serif: 'Inter', system-ui, sans-serif;
    --font-mono:  'JetBrains Mono', 'SF Mono', monospace;
    --font-sans:  'Inter', system-ui, sans-serif;

    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   16px;
    --r-pill: 999px;
}

body.light-mode {
    --ink:   #0a0e0f;
    --ink-2: #2a3033;
    --ink-3: #646b70;
    --bg:    #f4f6f7;
    --bg-2:  #ebedf0;
    --bg-3:  #e2e5e8;
    --bg-4:  #d8dcdf;
    --border:   rgba(0, 0, 0, 0.08);
    --border-2: rgba(0, 0, 0, 0.13);
    --green: #059669;
    --red:   #dc2626;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 300;
    overflow-x: hidden;
    cursor: default;
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode .grain {
    opacity: 0.02;
}

body.light-mode body::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(16, 185, 129, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.grain {
    position: fixed;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 220px;
}


nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 4rem;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

nav.scrolled,
nav.always-solid {
    background: rgba(10, 14, 15, 0);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    width: 28px;
    height: 28px;
    background: var(--gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--bg);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-login {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-login:hover {
    color: var(--gold);
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    padding: 0.6rem 1.4rem;
    border-radius: var(--r-md);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--gold-2);
    transform: translateY(-1px);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-2);
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-dim);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

body.light-mode .theme-toggle .icon-sun {
    display: block;
}

body.light-mode .theme-toggle .icon-moon {
    display: none;
}

.btn-primary {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    padding: 0.9rem 2.2rem;
    border-radius: var(--r-md);
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-2);
    border-color: var(--gold-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
}

.btn-ghost {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
    background: transparent;
    padding: 0.9rem 2.2rem;
    border-radius: var(--r-md);
    text-decoration: none;
    border: 1px solid var(--border-2);
    transition: all 0.25s;
}

.btn-ghost:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}


footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-links a.current {
    color: var(--gold-2);
}


.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 200;
    width: calc(100% - 4rem);
    max-width: 780px;
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.05);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-banner.hidden {
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
    pointer-events: none;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text p {
    font-size: 0.82rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-text a:hover {
    color: var(--gold-2);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
}

.cookie-accept {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: var(--gold-2);
}

.cookie-decline {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: none;
    border: 1px solid var(--border);
    padding: 0.65rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-decline:hover {
    color: var(--ink-2);
    border-color: var(--border-2);
}


section {
    position: relative;
    z-index: 2;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-title em {
    font-style: normal;
    font-weight: 700;
    color: var(--gold);
}

.section-sub {
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 4rem;
}

.divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(transparent, var(--border-2), transparent);
    margin: 0 auto;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}


.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.35s forwards;
}

.hero-title em {
    font-style: normal;
    font-weight: 700;
    color: var(--gold);
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--ink-2);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.9s 0.65s forwards;
}

.hero-dashboard {
    margin-top: 5rem;
    width: 100%;
    max-width: 1000px;
    position: relative;
    opacity: 0;
    animation: fadeUp 1.1s 0.9s forwards;
}

.dashboard-frame {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.06),
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 120px rgba(16, 185, 129, 0.06);
}

.dashboard-bar {
    background: var(--bg-4);
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-dot-r {
    background: #ff5f57;
}

.dash-dot-y {
    background: #ffbd2e;
}

.dash-dot-g {
    background: #28c840;
}

.dash-url {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--ink-3);
    margin-left: 0.8rem;
    letter-spacing: 0.05em;
}

/* ── Hero dashboard app preview ────────────────────────────── */
.dashboard-app {
    display: flex;
    height: 460px;
    background: #0d1117;
    overflow: hidden;
}

/* Sidebar */
.dash-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #111517;
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.dash-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    opacity: 0.5;
}

.dash-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.dash-sidebar-logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #10b981;
    color: #0a0908;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-sidebar-logo-text {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: #f0f2f4;
    letter-spacing: 0.01em;
}

.dash-sidebar-nav {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    padding: 0.6rem 0.6rem;
    transition: none;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 0.55rem;
    padding: 0.42rem 0.72rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #a5abb0;
    cursor: default;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}

.dash-nav-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.dash-nav-active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-weight: 500;
}

.dash-nav-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 2px;
    background: #10b981;
    border-radius: 0 999px 999px 0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.dash-nav-active svg {
    opacity: 1;
}

.dash-nav-badge {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: #ef4444;
    color: #fff;
    font-size: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Main content area */
.dash-main {
    flex: 1;
    min-width: 0;
    padding: 1.2rem 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #0d1117;
    overflow: hidden;
}

.dash-main-header {
    line-height: 1;
    text-align: left;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dash-page-title {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 600;
    color: #f0f2f4;
    letter-spacing: -0.02em;
}

.dash-page-sub {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 300;
    color: #646b70;
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
}

/* Account circles row */
.dash-accounts-scroll {
    display: flex;
    gap: 0.65rem;
    overflow: hidden;
}

.dash-account-tile {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
}

.dash-acc-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #181d20;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-acc-val {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    color: #f0f2f4;
    white-space: nowrap;
}

.dash-acc-val.pos { color: #10b981; }
.dash-acc-val.neg { color: #ef4444; }

.dash-acc-name {
    font-family: var(--font-mono);
    font-size: 0.48rem;
    color: #646b70;
    white-space: nowrap;
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Alert banner */
.dash-alert {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 3px solid #10b981;
    border-radius: 6px;
    padding: 0.55rem 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.dash-alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #f59e0b;
}

.dash-alert-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    color: #f0f2f4;
    letter-spacing: 0.01em;
}

.dash-alert-sub {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #646b70;
    margin-top: 0.18rem;
    letter-spacing: 0.01em;
}

/* Spending bar */
.dash-spending-bar {
    background: #181d20;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
}

.dash-spending-label { color: #646b70; }
.dash-spending-val { color: #ef4444; font-weight: 600; }
.dash-spending-diff { color: #10b981; }

/* Chart panel */
.dash-chart-panel {
    background: #111517;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 0.85rem 0.9rem 0.7rem;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.dash-chart-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: #f0f2f4;
    letter-spacing: -0.01em;
}

.dash-chart-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dash-chart-legend {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.48rem;
    color: #646b70;
}

.dash-legend-line {
    width: 16px;
    height: 2px;
    border-radius: 1px;
    display: inline-block;
}

.dash-legend-line.solid { background: #3b82f6; }
.dash-legend-line.dashed {
    background: repeating-linear-gradient(90deg, #10b981 0px, #10b981 4px, transparent 4px, transparent 7px);
}

.dash-chart-btn {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #646b70;
    background: #202629;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    padding: 2px 7px;
    letter-spacing: 0.02em;
}

.dash-chart-btn.active {
    color: #f0f2f4;
    background: #2a3035;
    border-color: rgba(255,255,255,0.14);
}

.dash-chart-body {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 0.4rem;
    overflow: hidden;
}

.dash-chart-yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.46rem;
    color: #3d4347;
    text-align: right;
    flex-shrink: 0;
    padding-bottom: 2px;
}

.dash-chart-area {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.pos { color: #10b981; }
.neg { color: #ef4444; }

.ticker-row {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 0;
    position: relative;
    z-index: 2;
    background: var(--bg-2);
}

.ticker-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    white-space: nowrap;
    text-transform: uppercase;
}

.ticker-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.features-section {
    padding: 5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.feature-tile {
    background: var(--bg-2);
    padding: 2.5rem 2rem;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-tile:hover {
    background: var(--bg-3);
}

.feature-tile:hover::after {
    opacity: 1;
}

.feature-icon {
    display: block;
    margin-bottom: 1rem;
    line-height: 0;
    color: #10b981;
}

.feature-name {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.feature-desc {
    font-size: 0.83rem;
    color: var(--ink-3);
    line-height: 1.65;
}

.feature-tag {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-dim);
    padding: 3px 8px;
    border-radius: var(--r-sm);
}

.strip {
    padding: 4rem 4rem;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.strip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.05), transparent 70%);
    pointer-events: none;
}

.strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.health-preview {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
}

.health-score-bar-mock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.health-score-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--green);
    font-weight: 600;
}

.health-score-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.health-bar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    height: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.health-bar-fill {
    height: 100%;
    width: 87%;
    background: linear-gradient(90deg, var(--green), #10d97a);
    border-radius: 100px;
    animation: growBar 1.5s 1.2s both ease-out;
}

@keyframes growBar {
    from {
        width: 0;
    }

    to {
        width: 87%;
    }
}

.health-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.health-item-mock {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.health-item-label {
    font-size: 0.78rem;
    color: var(--ink-2);
}

.health-item-score {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--green);
}

.how-section {
    padding: 5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 3rem;
}

.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-2), var(--border-2), transparent);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.step:hover .step-num {
    background: var(--gold-dim);
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.step-title {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.8rem;
    color: var(--ink-3);
    line-height: 1.6;
}

.pricing-section {
    padding: 5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.pricing-toggle-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.pricing-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-2);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.pricing-toggle.active {
    background: var(--gold);
    border-color: var(--gold);
}

.pricing-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    display: block;
}

.pricing-toggle.active .pricing-toggle-knob {
    transform: translateX(20px);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.pricing-card {
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    width: 100%;
    max-width: 420px;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-glow), transparent 60%);
    pointer-events: none;
}

.pricing-card.featured {
    border-color: var(--gold);
    background: var(--bg-3);
}

.pricing-card.featured::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent 60%);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(16, 185, 129, 0.07);
}

.pricing-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.pricing-save-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid var(--border-2);
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 0.6rem;
    vertical-align: middle;
}

.pricing-price {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.pricing-price sup {
    font-size: 1.6rem;
    vertical-align: super;
    color: var(--gold);
}

.pricing-period {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 2.5rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.83rem;
    color: var(--ink-2);
    line-height: 1.4;
}

.pricing-features li::before {
    content: '✦';
    color: var(--gold);
    font-size: 0.5rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.pricing-card-cta {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: 4px;
    transition: all 0.25s;
    margin-top: auto;
}

.pricing-card-cta.cta-outline {
    color: var(--gold);
    border: 1px solid var(--border-2);
    background: transparent;
}

.pricing-card-cta.cta-outline:hover {
    border-color: var(--gold);
    background: var(--gold-dim);
    transform: translateY(-1px);
}

.pricing-card-cta.cta-solid {
    color: var(--bg);
    background: var(--gold);
    border: 1px solid var(--gold);
}

.pricing-card-cta.cta-solid:hover {
    background: var(--gold-2);
    border-color: var(--gold-2);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
}

.pricing-note {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: var(--ink-3);
    margin-top: 1.5rem;
}

.faq-section {
    padding: 4rem 4rem;
    max-width: 740px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 0;
    cursor: pointer;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--ink);
    gap: 1rem;
}

.faq-chevron {
    font-size: 0.75rem;
    color: var(--gold);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-a {
    font-size: 0.85rem;
    color: var(--ink-3);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding-top 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding-top: 0.8rem;
}

.cta-section {
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.07), transparent 65%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.cta-title em {
    font-style: normal;
    font-weight: 700;
    color: var(--gold);
}

.cta-sub {
    font-size: 0.95rem;
    color: var(--ink-2);
    margin-bottom: 3rem;
    line-height: 1.7;
}


.page-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4rem;
}

.page-header {
    padding: 10rem 0 5rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-header-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.page-header-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-3);
    letter-spacing: 0.06em;
}

.tab-bar {
    position: sticky;
    top: 72px;
    z-index: 50;
    background: rgba(10, 9, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
}

.tab-btn {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: none;
    border: none;
    padding: 1.1rem 2.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.2s;
}

.tab-btn.active {
    color: var(--gold);
}

.tab-btn.active::after {
    opacity: 1;
}

.tab-btn:hover {
    color: var(--ink-2);
}

.tab-btn.active:hover {
    color: var(--gold);
}

.content-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 6rem;
    padding: 5rem 0 8rem;
    align-items: start;
}

.toc {
    position: sticky;
    top: 140px;
}

.toc-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1.2rem;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.toc-list a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--ink-3);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 5px;
    display: block;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--ink-2);
    background: var(--gold-glow);
}

.toc-list a.active {
    color: var(--gold);
    background: var(--gold-dim);
}

.doc-panel {
    display: none;
}

.doc-panel.active {
    display: block;
}

.doc-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(240, 237, 230, 0.06);
}

.doc-section:last-child {
    border-bottom: none;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.doc-section h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.doc-section p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--ink-2);
    margin-bottom: 1rem;
}

.doc-section p:last-child {
    margin-bottom: 0;
}

.doc-section ul {
    margin: 1rem 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.doc-section ul li {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--ink-2);
    padding-left: 1.4rem;
    position: relative;
}

.doc-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
}

.highlight-box {
    background: var(--gold-dim);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    font-size: 0.85rem;
    color: var(--ink-2);
    margin: 0;
    line-height: 1.7;
}

.highlight-box strong {
    color: var(--gold-2);
    font-weight: 500;
}

.contact-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.8rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-card .contact-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.contact-card a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.contact-card a:hover {
    color: var(--gold-2);
}


@media (max-width: 900px) {
    nav {
        padding: 1.2rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .nav-login {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .strip-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .steps::before {
        display: none;
    }

    .pricing-cards {
        justify-content: center;
    }

    .features-section,
    .how-section,
    .pricing-section,
    .faq-section,
    .cta-section {
        padding: 3.5rem 2rem;
    }

    .strip {
        padding: 3rem 2rem;
    }

    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-wrapper {
        padding: 0 1.5rem;
    }

    .page-header {
        padding: 8rem 0 3.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toc {
        display: none;
    }

    .cookie-banner {
        width: calc(100% - 2rem);
        bottom: 1rem;
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }

    .pricing-card {
        padding: 2rem;
    }
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.2s;
    pointer-events: none;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav a {
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 300;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.15s;
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    width: 80%;
    justify-content: center;
}

.mobile-nav-actions .nav-cta,
.mobile-nav-actions .nav-login { font-size: 0.85rem; }

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .mobile-nav { display: flex; }
    .nav-right { display: none; }
    nav { padding: 1rem 1.25rem; }
}

@media (max-width: 768px) {
    .hero { padding: 7rem 1.5rem 4rem; min-height: auto; }
    .hero-title { font-size: clamp(2.8rem, 12vw, 5rem); }
    .hero-sub { font-size: 0.95rem; margin-bottom: 2rem; }
    .cta-section { display: flex; flex-direction: column; align-items: center; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
    .hero-actions a { width: 100%; text-align: center; }
    .hero-dashboard { margin-top: 3rem; overflow: hidden; }
    .dash-sidebar { width: 120px; }
    .dash-sidebar-logo-text { display: none; }
    .dash-nav-item { font-size: 0.52rem; padding: 0.35rem 0.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 2rem; }
    .steps::before { display: none; }
    .section-title { font-size: clamp(2rem, 8vw, 3.5rem); }
    .cta-title { font-size: clamp(2.2rem, 9vw, 4rem); }
    .stat-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .strip-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .pricing-card { padding: 2rem 1.5rem; }
    footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; }
    .footer-left { flex-direction: column; gap: 0.5rem; align-items: center; }
}

@media (max-width: 400px) {
    .hero-title { font-size: clamp(2.4rem, 14vw, 3.5rem); }
    .dash-sidebar { display: none; }
}

.updates-feed {
    max-width: 620px;
    margin: 0 auto;
    padding: 5rem 0 8rem;
}

.update-entry {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.update-entry:last-child {
    border-bottom: none;
}

.update-date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.update-title {
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.update-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ink-2);
    margin-bottom: 1rem;
}

.update-body:last-of-type {
    margin-bottom: 2rem;
}

.update-cta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    padding: 0.7rem 1.6rem;
    border-radius: var(--r-md);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.update-cta:hover {
    background: var(--gold-2);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG — Index & Post styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Blog Index Feed ─────────────────────────────────────────────── */
.blog-feed {
    padding: 4rem 0 8rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: var(--bg-2);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.18);
}

.blog-card:hover .blog-card-title {
    color: var(--gold);
}

.blog-card:hover .blog-card-read {
    color: var(--gold-2);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}

.blog-card:nth-child(3n+2) .blog-card-image {
    background: linear-gradient(135deg, #1a0527 0%, #4a0e68 55%, #7c1d91 100%);
}

.blog-card:nth-child(3n) .blog-card-image {
    background: linear-gradient(135deg, #0a1a28 0%, #0f2d47 50%, #0e3d5f 100%);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    margin-bottom: 0.6rem;
}

.blog-card-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.blog-card-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0 0 0.65rem;
    transition: color 0.15s;
}

.blog-card-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0 0 1.25rem;
    flex: 1;
}

.blog-card-read {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    transition: color 0.15s;
    margin-top: auto;
}

.blog-empty {
    font-size: 0.9rem;
    color: var(--ink-3);
    padding: 4rem 0;
    text-align: center;
}

/* ── Post Header ─────────────────────────────────────────────────── */
.post-header {
    max-width: 680px;
    margin: 0 auto;
    padding: 8rem 0 3.5rem;
    border-bottom: 1px solid var(--border);
}

.post-back {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    text-decoration: none;
    transition: color 0.15s;
    display: inline-block;
    margin-bottom: 2rem;
}

.post-back:hover {
    color: var(--gold);
}

.post-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1rem;
}

.post-title {
    font-family: var(--font-sans);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
}

.post-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-2);
    margin: 0;
    max-width: 580px;
}

/* ── Post Body (article typography) ─────────────────────────────── */
.post-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 0 2rem;
}

.post-body p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--ink-2);
    margin: 0 0 1.5rem;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body h2 {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 3rem 0 1rem;
    line-height: 1.3;
}

.post-body h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 2.5rem 0 0.75rem;
    line-height: 1.35;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-body ul li,
.post-body ol li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ink-2);
    padding-left: 1.4rem;
    position: relative;
}

.post-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.post-body ol {
    counter-reset: post-ol;
}

.post-body ol li {
    counter-increment: post-ol;
}

.post-body ol li::before {
    content: counter(post-ol) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 500;
    line-height: 1.8;
}

.post-body strong {
    font-weight: 600;
    color: var(--ink);
}

.post-body em {
    font-style: italic;
    color: var(--ink);
}

.post-body a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(16, 185, 129, 0.4);
    transition: color 0.15s, text-decoration-color 0.15s;
}

.post-body a:hover {
    color: var(--gold-2);
    text-decoration-color: var(--gold-2);
}

.post-body blockquote {
    border-left: 2px solid var(--gold);
    margin: 2rem 0;
    padding: 0.75rem 0 0.75rem 1.5rem;
    background: var(--gold-glow);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.post-body blockquote p {
    color: var(--ink);
    font-style: italic;
    margin: 0;
}

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--bg-3);
    color: var(--gold-2);
    padding: 2px 7px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

.post-body pre {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--ink-2);
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

/* ── Post Footer ─────────────────────────────────────────────────── */
.post-footer {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 0 8rem;
    border-top: 1px solid var(--border);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .blog-feed { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-feed    { grid-template-columns: 1fr; padding: 3rem 0 6rem; }
    .post-header  { padding: 6rem 0 2.5rem; }
    .post-body    { padding: 3rem 0 1.5rem; }
    .post-footer  { padding: 2rem 0 5rem; }
    .post-title   { font-size: clamp(1.7rem, 7vw, 2.4rem); }
}
