/* ========================================
   SessionCodex — shared visual system
   ======================================== */

:root {
    --bg-base: #08080a;
    --bg-elevated: #0d0d10;
    --bg-app: #050507;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --bg-row-active: rgba(59, 130, 246, 0.10);

    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-hover: rgba(255, 255, 255, 0.12);
    --border-line: rgba(255, 255, 255, 0.08);

    --text-primary: #f5f5f7;
    --text-secondary: #a0a0a8;
    --text-muted: #6b6b75;
    --text-faint: #4a4a52;

    --accent-blue: #3b82f6;
    --accent-blue-bright: #60a5fa;
    --accent-blue-deep: #2563eb;
    --accent-blue-soft: #93c5fd;

    --logo-bg: #1e2a45;
    --logo-text: #7aa6ff;

    --accent-green: #22c55e;
    --accent-amber: #f59e0b;

    --daw-pt: #3b82f6;
    --daw-ableton: #14b8a6;
    --daw-logic: #f59e0b;
    --daw-reaper: #94a3b8;
    --daw-reason: #ef4444;

    --font-sans: 'IBM Plex Sans', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ----- reset & base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    overflow-x: hidden;
}
a { color: var(--text-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-blue-bright); }
::selection { background: var(--accent-blue); color: #fff; }

/* ----- container ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

/* ----- logo block ----- */
.logo-block {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--logo-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 12px;
    color: var(--logo-text);
    letter-spacing: -0.3px;
}
.logo-wordmark {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* ----- nav ----- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8, 8, 10, 0.7);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-bottom: 1px solid var(--border-glass);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 11px;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-cta {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--bg-base) !important;
    background: var(--text-primary);
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-cta:hover { background: #fff; color: var(--bg-base) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 20px; height: 1.5px;
    background: var(--text-secondary); margin: 4px 0;
}
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(8, 8, 10, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-glass);
        padding: 24px 32px;
        gap: 20px;
        align-items: flex-start;
    }
    .nav-links.open { display: flex; }
}

/* ----- section shell ----- */
section {
    padding: 110px 0;
    position: relative;
}
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-weight: 500;
}
.section-title {
    font-family: var(--font-sans);
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 600;
    letter-spacing: -1.4px;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 820px;
}
.section-title .muted { color: var(--text-muted); font-weight: 500; }
.section-lede {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
    font-weight: 400;
}
.section-lede strong { color: var(--text-primary); font-weight: 500; }

.section-bordered { border-top: 1px solid var(--border-glass); }

/* ----- page hero (sub-page header pattern) ----- */
.page-hero {
    position: relative;
    padding-top: 168px;
    padding-bottom: 72px;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -240px;
    right: -200px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(59, 130, 246, 0.18) 0%,
        rgba(59, 130, 246, 0.06) 30%,
        rgba(59, 130, 246, 0.02) 50%,
        transparent 65%
    );
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}
.page-hero-title {
    font-family: var(--font-sans);
    font-size: clamp(44px, 6.5vw, 78px);
    font-weight: 600;
    letter-spacing: -2.2px;
    line-height: 1;
    margin-bottom: 24px;
    color: var(--text-primary);
    max-width: 900px;
}
.page-hero-title .muted { color: var(--text-muted); font-weight: 500; }
.page-hero-lede {
    font-size: clamp(17px, 1.5vw, 19px);
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.55;
    font-weight: 400;
}
.page-hero-lede strong { color: var(--text-primary); font-weight: 500; }

/* ----- hero-tag pill ----- */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
}
.hero-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue-bright);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ----- buttons ----- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--bg-base);
    background: var(--text-primary);
    padding: 12px 22px;
    border-radius: 8px;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #fff;
    color: var(--bg-base);
    transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(2px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 22px;
    border-radius: 8px;
    transition: all 0.15s;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-glass-hover);
    background: var(--bg-card-hover);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--accent-blue);
    padding: 12px 22px;
    border-radius: 8px;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}
.btn-accent:hover {
    background: var(--accent-blue-bright);
    transform: translateY(-1px);
}

/* ----- glass card ----- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 28px;
}
.glass-card.glass-card-static {
    /* no hover state */
}
.glass-card.glass-card-interactive {
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    cursor: pointer;
}
.glass-card.glass-card-interactive:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-1px);
}

/* ----- daw badges (used in feature visuals + article tags) ----- */
.daw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 19px;
    padding: 0 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.daw-badge.pt { background: rgba(59, 130, 246, 0.18); color: var(--accent-blue-soft); border: 1px solid rgba(59, 130, 246, 0.3); }
.daw-badge.ab { background: rgba(20, 184, 166, 0.18); color: #5eead4; border: 1px solid rgba(20, 184, 166, 0.3); }
.daw-badge.lp { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.daw-badge.re { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.daw-badge.rs { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.daw-badge.s1 { background: rgba(167, 139, 250, 0.18); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.3); }
.daw-badge.gb { background: rgba(34, 197, 94, 0.18); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }

/* ----- footer ----- */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 56px 0 36px;
    background: var(--bg-base);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand-mark .logo-block { width: 26px; height: 26px; font-size: 11px; }
.footer-brand-mark .name {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
}
.footer-brand-text {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.55;
}
.footer-col-title {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-attribution {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: var(--text-faint);
    line-height: 1.6;
    padding-top: 28px;
    margin-top: 0;
    border-top: 1px solid var(--border-glass);
    margin-bottom: 14px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.5px;
}
@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
.footer-parent { color: var(--text-muted); }
.footer-parent a { color: var(--text-secondary); }
.footer-parent a:hover { color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
    .hero-tag .dot { animation: none !important; }
    * { transition-duration: 0.01s !important; animation-duration: 0.01s !important; }
}
