/* ============================================================
   atene.io — Design System
   Dark navy + amber accent — matches DriftPilot website
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
    --bg:           #09090b;
    --surface:      #111117;
    --surface-2:    #0d0d12;
    --surface-raised: #18181f;
    --accent:       #5b8cf7;
    --accent-hover: #3b7af0;
    --text:         #f1f5f9;
    --text-muted:   #94a3b8;
    --border:       rgba(255,255,255,0.08);
    --border-dim:   rgba(255,255,255,0.04);
    --shadow-card:  0 0 0 1px rgba(255,255,255,0.07), inset 0 0 0 1px rgba(255,255,255,0.03), 0 4px 24px rgba(0,0,0,0.4);
    --shadow-card-hover: 0 0 0 1px rgba(91,140,247,0.2), inset 0 0 0 1px rgba(91,140,247,0.05), 0 8px 40px rgba(0,0,0,0.5);
    --font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: 1rem;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Selection ──────────────────────────────────────────────── */
::selection { background: rgba(254, 164, 66, 0.25); color: #fff; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   BACKGROUND PATTERNS
   ============================================================ */

.dot-grid {
    background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Noise / grain overlay — 21st.dev texture */
.noise::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container   { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 896px; }

.section     { padding: 6rem 0; }
.section-alt { background: rgba(13, 24, 41, 0.5); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s, color 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    padding: 0.6875rem 1.375rem;
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(91,140,247,0.3), 0 2px 8px rgba(91,140,247,0.15);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #0a0a0a;
    box-shadow: 0 0 0 1px rgba(91,140,247,0.4), 0 4px 24px rgba(91,140,247,0.25);
}

.btn-secondary {
    padding: 0.6875rem 1.375rem;
    background: var(--surface-raised);
    color: var(--text-muted);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-secondary:hover {
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ============================================================
   BADGE / PILL
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-accent {
    border: 1px solid rgba(91,140,247,0.3);
    background: rgba(91,140,247,0.08);
    color: var(--accent);
}

.badge-default {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-anim 2s ease-in-out infinite;
}

.pulse-dot-accent  { background: var(--accent); }
.pulse-dot-green   { background: #10b981; }

@keyframes pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    border-radius: 0.875rem;
    border: none;
    background: var(--surface-raised);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.04), 0 8px 40px rgba(0,0,0,0.5);
}

.card-glow:hover {
    box-shadow: var(--shadow-card-hover);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 1.5rem 5rem;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.hero-orb-1 {
    top: -160px;
    left: 33%;
    width: 700px;
    height: 500px;
    background: rgba(91,140,247,0.06);
    filter: blur(120px);
}

.hero-orb-2 {
    top: 50%;
    right: -160px;
    width: 400px;
    height: 400px;
    background: rgba(37,99,235,0.05);
    filter: blur(100px);
}

.hero-grid {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.hero-headline {
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-headline-accent { color: var(--accent); }

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 36rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-ctas  { flex-direction: column; }
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 0.625rem;
    background: var(--surface-raised);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
}

/* ============================================================
   TERMINAL
   ============================================================ */

.terminal-wrap {
    position: relative;
}

.terminal-glow {
    position: absolute;
    inset: -16px;
    border-radius: 1.5rem;
    background: rgba(91,140,247,0.05);
    filter: blur(32px);
    pointer-events: none;
}

.terminal {
    border-radius: 0.875rem;
    border: none;
    background: #050810;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07), inset 0 0 0 1px rgba(255,255,255,0.02), 0 32px 80px rgba(0,0,0,0.7);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: #0d1829;
    border-bottom: 1px solid var(--border-dim);
}

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

.chrome-title {
    margin-left: 0.75rem;
    color: #475569;
    font-size: 0.6875rem;
}

.terminal-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    color: rgba(16,185,129,0.7);
}

.terminal-body {
    padding: 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.t-time   { color: #334155; user-select: none; flex-shrink: 0; }
.t-scan   { color: #475569; font-weight: 600; flex-shrink: 0; }
.t-drift  { color: #f59e0b; font-weight: 600; flex-shrink: 0; }
.t-diff   { color: #ef4444; font-weight: 600; flex-shrink: 0; }
.t-auto   { color: #60a5fa; font-weight: 600; flex-shrink: 0; }
.t-fixed  { color: #10b981; font-weight: 600; flex-shrink: 0; }
.t-ok     { color: #10b981; font-weight: 600; flex-shrink: 0; }
.t-msg    { color: #cbd5e1; }

.terminal-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.terminal-footer {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.terminal-meta { font-family: var(--font-mono); font-size: 0.6875rem; color: #475569; }
.terminal-ok   { font-family: var(--font-mono); font-size: 0.6875rem; color: rgba(16,185,129,0.6); display: flex; align-items: center; gap: 0.375rem; }

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-title-accent { color: var(--accent); }

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   MODULE CARDS (Products)
   ============================================================ */

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

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

.module-card {
    padding: 1.75rem;
    border-radius: 0.875rem;
    border: none;
    background: var(--surface-raised);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.module-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.module-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-tag {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
    color: #475569;
}

.module-card-header { display: flex; align-items: flex-start; justify-content: space-between; }

.module-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.module-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.module-features {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    list-style: none;
    margin-top: 0.25rem;
}

.module-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.module-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */

/* ── Bento grid (21st.dev-style asymmetric layout) ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.bento-wide  { grid-column: span 2; }
.bento-tall  { grid-row: span 2; }

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-wide { grid-column: span 2; }
}

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }
}

.feature-card {
    padding: 1.625rem;
    border-radius: 0.875rem;
    border: none;
    background: var(--surface-raised);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

/* Subtle top-edge highlight — gives a "lit from above" look */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.feature-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.06);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07);
    background: var(--surface);
    color: #475569;
}

.feature-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.feature-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
    max-width: 896px;
    margin: 0 auto;
    border-radius: 1rem;
    border: none;
    background: var(--surface-raised);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07), inset 0 0 0 1px rgba(255,255,255,0.03), 0 32px 80px rgba(0,0,0,0.5);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(91,140,247,0.08) 0%, transparent 65%);
    pointer-events: none;
}

/* Top highlight line */
.cta-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(91,140,247,0.3) 50%, transparent 95%);
    pointer-events: none;
}

.cta-banner-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 1rem 0;
}

.cta-banner-sub {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (blog / docs sub-pages)
   ============================================================ */

.page-hero {
    padding: 8rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(91,140,247,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-inner { max-width: 1280px; margin: 0 auto; }
.page-hero-title  { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.page-hero-sub    { color: var(--text-muted); font-size: 1.125rem; max-width: 500px; }

/* ============================================================
   BLOG
   ============================================================ */

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }

.blog-card {
    border-radius: 0.875rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    border: none;
    background: var(--surface-raised);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.blog-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); font-weight: 500; }
.blog-card-title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.blog-card-excerpt { color: var(--text-muted); font-size: 0.875rem; line-height: 1.65; flex: 1; }
.blog-read-more { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--accent); font-weight: 600; margin-top: auto; font-family: var(--font-mono); }

/* ============================================================
   ARTICLE
   ============================================================ */

.article-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-dim); }
.article-title  { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0.75rem 0; }
.article-meta   { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; color: #475569; }

/* ============================================================
   DOCS
   ============================================================ */

/* 3-column: sidebar | content | toc */
.docs-shell {
    display: grid;
    grid-template-columns: 280px 1fr 220px;
    min-height: calc(100vh - 68px);
    padding-top: 68px;
}

@media (max-width: 1200px) {
    .docs-shell { grid-template-columns: 260px 1fr; }
    .docs-toc   { display: none !important; }
}

@media (max-width: 900px) {
    .docs-shell   { grid-template-columns: 1fr; }
    .docs-sidebar { display: none !important; }
}

/* ── Left sidebar ─────────────────────────────── */
.docs-sidebar {
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.07) transparent;
}

.docs-sidebar-inner {
    padding: 1.5rem 0.75rem 3rem;
}

.docs-group-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #334155;
    padding: 0 0.75rem;
    margin: 1.75rem 0 0.5rem;
    font-family: var(--font-mono);
}

.docs-sidebar ul {
    list-style: none !important;
    margin: 0 0 0.125rem;
    padding: 0;
}

.docs-sidebar li { list-style: none !important; }

.docs-nav-link {
    display: block;
    padding: 0.375rem 0.75rem;
    border-left: 2px solid transparent;
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.docs-nav-link:hover {
    color: #94a3b8;
    text-decoration: none;
    background: rgba(255,255,255,0.03);
}

.docs-nav-link-active {
    color: var(--accent) !important;
    border-left-color: var(--accent) !important;
    background: rgba(91,140,247,0.06);
    font-weight: 500;
}

.docs-sidebar-loading { display: flex; justify-content: center; padding: 2rem 0; }
.spinner-sm { width: 20px !important; height: 20px !important; border-width: 2px !important; }

/* ── Main content ─────────────────────────────── */
.docs-main {
    padding: 2.5rem 3rem;
    min-width: 0;
}

/* Breadcrumb */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.docs-breadcrumb a { color: #475569; text-decoration: none; transition: color 0.15s; }
.docs-breadcrumb a:hover { color: #94a3b8; text-decoration: none; }
.docs-breadcrumb-sep { color: #334155; }

/* Prev / Next */
.docs-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.docs-pager {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.docs-pager:hover {
    border-color: rgba(91,140,247,0.3);
    background: rgba(91,140,247,0.04);
    text-decoration: none;
    color: inherit;
}

.docs-pager-dir   { font-size: 0.75rem; color: #475569; font-family: var(--font-mono); }
.docs-pager-title { font-size: 0.9375rem; color: #94a3b8; font-weight: 500; }
.docs-pager-next  { align-items: flex-end; text-align: right; }

/* ── Right TOC ────────────────────────────────── */
.docs-toc {
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 2rem 1.25rem 2rem 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.07) transparent;
}

.docs-toc-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #334155;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.docs-toc ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.docs-toc li { list-style: none !important; }

.docs-toc-link {
    display: block;
    font-size: 0.8125rem;
    color: #475569;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.15s;
    line-height: 1.4;
}

.docs-toc-link:hover { color: #94a3b8; text-decoration: none; }

.docs-toc-sub .docs-toc-link {
    padding-left: 0.875rem;
    font-size: 0.75rem;
}

/* ============================================================
   PROSE
   ============================================================ */

.prose { color: var(--text-muted); font-size: 1rem; line-height: 1.8; max-width: 70ch; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 2em; margin-bottom: 0.6em; line-height: 1.3; }
.prose h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 0; }
.prose h2 { font-size: 1.4375rem; font-weight: 700; }
.prose h3 { font-size: 1.175rem; font-weight: 600; }
.prose p  { margin-bottom: 1.25em; }
.prose a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose code {
    background: rgba(91,140,247,0.08);
    border: 1px solid rgba(91,140,247,0.15);
    border-radius: 0.3em;
    padding: 0.15em 0.4em;
    font-size: 0.875em;
    font-family: var(--font-mono);
    color: var(--accent);
}
.prose pre {
    background: #0d1829;
    border: 1px solid var(--border-dim);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.5em 0;
}
.prose pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 0.875rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25em; }
.prose li { margin-bottom: 0.375em; }
.prose blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1.25rem;
    background: rgba(91,140,247,0.04);
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.5em 0;
    color: rgba(241,245,249,0.7);
    font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9375rem; }
.prose th { background: rgba(91,140,247,0.07); color: var(--text); padding: 0.625rem 1rem; text-align: left; border-bottom: 1px solid rgba(91,140,247,0.2); font-weight: 600; }
.prose td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--border-dim); }
.prose hr { border: none; border-top: 1px solid var(--border-dim); margin: 2em 0; }

/* ============================================================
   STATES
   ============================================================ */

.loading-state { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 5rem 2rem; color: var(--text-muted); }
.spinner { width: 32px; height: 32px; border: 2.5px solid rgba(91,140,247,0.15); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 420px;
    margin: 2rem auto;
    border-radius: 1.25rem;
    border: 1px solid var(--border-dim);
    background: var(--surface);
    color: var(--text-muted);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.back-link:hover { color: var(--accent); text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
    .section { padding: 4rem 0; }
    .cta-banner { padding: 2.5rem 1.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .docs-main { padding: 2rem 1.25rem; }
    .docs-pagination { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER (global rules — ensures correct rendering)
   ============================================================ */

.site-footer { background: #000 !important; border-top: 1px dashed rgba(255,255,255,0.09); }

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
}

.footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.footer-brand { max-width: 240px; flex-shrink: 0; }

.footer-logo-img {
    height: 20px;
    max-height: 20px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.875rem;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.footer-links-grid {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.footer-col { display: flex; flex-direction: column; }

.footer-col-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #334155;
    margin-bottom: 0.875rem;
}

.footer-col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.footer-col li {
    list-style: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-col a {
    font-size: 0.8125rem;
    color: #475569;
    text-decoration: none;
    display: block;
    transition: color 0.15s;
}

.footer-col a:hover { color: #94a3b8; text-decoration: none; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255,255,255,0.06);
}

.footer-copy { font-size: 0.75rem; color: #334155; margin: 0; }

.footer-swiss {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #334155;
}

@media (max-width: 768px) {
    .footer-top { flex-direction: column; gap: 2rem; }
    .footer-links-grid { gap: 2rem; }
}

/* ============================================================
   BLUEPRINT SYSTEM — saas-landing.techwithanirudh.com inspired
   Dark #09090b + amber #5b8cf7
   ============================================================ */

/* ── Wrapper with dashed side borders ──────────────────────── */
.bp-wrap {
    border-left:  1px dashed rgba(255,255,255,0.09);
    border-right: 1px dashed rgba(255,255,255,0.09);
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Section: dashed bottom border ─────────────────────────── */
.bp-section {
    border-bottom: 1px dashed rgba(255,255,255,0.09);
    position: relative;
    padding: 5rem 2.5rem;
}

/* ── Corner + markers ───────────────────────────────────────── */
.bp-corner {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    z-index: 10;
    display: none;
    pointer-events: none;
}
@media (min-width: 640px) { .bp-corner { display: block; } }

.bp-corner-tl { top:    -0.75rem; left:  -0.75rem; }
.bp-corner-tr { top:    -0.75rem; right: -0.75rem; }
.bp-corner-bl { bottom: -0.75rem; left:  -0.75rem; }
.bp-corner-br { bottom: -0.75rem; right: -0.75rem; }

/* Eraser lines that "break" the dashed border at the corner */
.bp-cx {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    transform: translateX(-50%);
    width: 1px;
    background: #09090b;
}
.bp-cy {
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    height: 1px;
    background: #09090b;
}
.bp-cp {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(91,140,247,0.45);
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1;
    user-select: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
.bp-hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
    text-align: center;
}

.bp-hero-inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bp-announce {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow 0.15s, color 0.15s;
    margin-bottom: 1.875rem;
}
.bp-announce:hover { color: var(--text); box-shadow: 0 0 0 1px rgba(255,255,255,0.15); text-decoration: none; }

.bp-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.06;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.bp-title-accent {
    background: linear-gradient(135deg, #5b8cf7 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bp-sub {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.75;
    max-width: 52ch;
    margin: 0 auto 2.25rem;
}

.bp-hero-ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.bp-hero-preview {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Logos / Works-with strip ────────────────────────────────── */
.bp-logos {
    padding: 2.25rem 2.5rem;
    text-align: center;
}

.bp-logos-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    margin-bottom: 1.25rem;
}

.bp-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bp-logo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 1rem;
    border-radius: 100px;
    background: var(--surface-raised);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ── Features section header ─────────────────────────────────── */
.bp-section-header {
    padding-bottom: 3rem;
    border-bottom: 1px dashed rgba(255,255,255,0.09);
    margin-bottom: 0;
}

.bp-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #475569;
    font-family: var(--font-mono);
    margin-bottom: 0.875rem;
}

.bp-section-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.bp-section-title-accent {
    background: linear-gradient(135deg, #5b8cf7 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bp-section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 52ch;
}

/* ── Features 2×2 grid with dashed dividers ──────────────────── */
.bp-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) { .bp-feature-grid { grid-template-columns: 1fr; } }

.bp-feature-cell {
    padding: 2.5rem;
    border-right:  1px dashed rgba(255,255,255,0.09);
    border-bottom: 1px dashed rgba(255,255,255,0.09);
    transition: background 0.2s;
}
.bp-feature-cell:nth-child(2n)     { border-right: none; }
.bp-feature-cell:nth-child(3),
.bp-feature-cell:nth-child(4)      { border-bottom: none; }
@media (max-width: 640px) {
    .bp-feature-cell               { border-right: none; }
    .bp-feature-cell:nth-child(3)  { border-bottom: 1px dashed rgba(255,255,255,0.09); }
    .bp-feature-cell:last-child    { border-bottom: none; }
}

.bp-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: var(--surface-raised);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.bp-feature-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.bp-feature-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Suite 3-col with dashed dividers ───────────────────────── */
.bp-suite-header {
    padding-bottom: 0;
    margin-bottom: 0;
}

.bp-suite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px dashed rgba(255,255,255,0.09);
}
@media (max-width: 900px) { .bp-suite-grid { grid-template-columns: 1fr; } }

.bp-suite-card {
    padding: 2.5rem;
    border-right: 1px dashed rgba(255,255,255,0.09);
    transition: background 0.2s;
}
.bp-suite-card:last-child { border-right: none; }
@media (max-width: 900px) {
    .bp-suite-card { border-right: none; border-bottom: 1px dashed rgba(255,255,255,0.09); }
    .bp-suite-card:last-child { border-bottom: none; }
}

.bp-suite-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: var(--surface-raised);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.bp-suite-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07);
    background: var(--surface-raised);
    color: #475569;
    margin-bottom: 0.875rem;
}

.bp-suite-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.625rem;
}

.bp-suite-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.bp-suite-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bp-suite-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.bp-suite-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.bp-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}
@media (max-width: 860px) { .bp-faq-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.bp-faq-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: var(--text);
}

.bp-faq-sub {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.bp-faq-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}
.bp-faq-contact:hover { text-decoration: underline; color: var(--accent); }

.bp-faq-list { display: flex; flex-direction: column; }

.bp-faq-item {
    border-bottom: 1px dashed rgba(255,255,255,0.09);
}

.bp-faq-item:first-child {
    border-top: 1px dashed rgba(255,255,255,0.09);
}

.bp-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 0;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    user-select: none;
    transition: color 0.15s;
    list-style: none;
}
.bp-faq-q:hover { color: var(--accent); }

.bp-faq-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #475569;
    transition: transform 0.25s ease, color 0.15s;
}
.bp-faq-item-open .bp-faq-chevron { transform: rotate(180deg); color: var(--accent); }
.bp-faq-item-open .bp-faq-q { color: var(--accent); }

.bp-faq-a {
    padding-bottom: 1.125rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ── CTA split ───────────────────────────────────────────────── */
.bp-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 768px) { .bp-cta-grid { grid-template-columns: 1fr; gap: 2rem; } }

.bp-cta-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: var(--text);
}

.bp-cta-sub {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 0.75rem;
}

.bp-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

/* ── Fade-in on scroll ───────────────────────────────────────── */
@keyframes bp-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bp-fade { animation: bp-fadein 0.5s ease both; }
.bp-fade-delay-1 { animation-delay: 0.1s; }
.bp-fade-delay-2 { animation-delay: 0.2s; }
.bp-fade-delay-3 { animation-delay: 0.3s; }

/* ── Legal pages (Impressum / Privacy / AGB) ─────────────────── */

.legal-section {
    padding: 6rem 2rem 6rem;
    min-height: calc(100vh - 68px);
}

.legal-inner {
    max-width: 720px;
    margin: 0 auto;
}

.legal-h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #f1f5f9;
    margin: 0.5rem 0 2.5rem;
    line-height: 1.15;
}

.legal-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.legal-content h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin: 2rem 0 0.625rem;
}

.legal-content p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.8;
    margin: 0 0 0.5rem;
}

.legal-content a {
    color: #5b8cf7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover { color: #3b7af0; }

.legal-updated {
    margin-top: 3rem !important;
    font-size: 0.8125rem !important;
    color: #334155 !important;
}

/* ── Hamburger / mobile nav (global override) ────────────────── */

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.hamburger-line {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background-color: #f1f5f9 !important;
    border-radius: 2px !important;
    transition: transform 0.25s ease, opacity 0.2s ease !important;
    transform-origin: center !important;
    pointer-events: none;
}

.nav-mobile-toggle.is-open .line-1 { transform: translateY(7px) rotate(45deg) !important; }
.nav-mobile-toggle.is-open .line-2 { opacity: 0 !important; transform: scaleX(0) !important; }
.nav-mobile-toggle.is-open .line-3 { transform: translateY(-7px) rotate(-45deg) !important; }

@media (max-width: 768px) {
    .nav-mobile-toggle { display: flex !important; }
}

/* Nav blurs when mobile menu is open (even at top of page) */
.nav-menu-open {
    background: rgba(9,9,11,0.92) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07) !important;
}
