/* session-bridge.softwaresoftware.dev — softwaresoftware design system v2 "monochrome"
   values vendored from design-system.softwaresoftware.dev/css/tokens.css */

:root {
    --ink: #0a0a0a;
    --paper: #ffffff;
    --n-50: #fafafa;
    --n-200: #e5e5e5;
    --n-300: #d4d4d4;
    --n-400: #a3a3a3;
    --n-500: #737373;
    --n-800: #262626;
    --n-900: #171717;
    --accent: #22c55e;

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

    --track-display: -0.035em;
    --track-eyebrow: 0.14em;

    --container: 72rem;
    --space-section: clamp(4.5rem, 9vw, 8rem);

    --bg: var(--paper);
    --fg: var(--ink);
    --muted: var(--n-500);
    --line: var(--n-200);
    --surface: var(--n-50);
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2 { font-weight: 300; letter-spacing: var(--track-display); margin: 0; }
h1 { font-size: 2.4rem; line-height: 1.05; }
h2 { font-size: 1.6rem; line-height: 1.15; }
h3 { font-size: 1.1rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 0.5rem; }
b, strong { font-weight: 500; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 1.25rem;
}

code {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0.1em 0.4em;
    font-family: var(--font-mono);
    font-size: 0.85em;
    font-weight: 400;
}

/* dark band sections — full width, alternating */
.section--dark {
    --bg: var(--ink);
    --fg: #fafafa;
    --muted: var(--n-400);
    --line: var(--n-800);
    --surface: var(--n-900);
    background: var(--bg);
    color: var(--fg);
}

/* nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-logo {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.logo-dot { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.82rem;
    font-weight: 400;
}
.nav-links a { color: var(--muted); text-decoration: none; transition: color 150ms ease; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 640px) {
    .nav-links a:not(:last-child) { display: none; }
}

@media (min-width: 640px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.25rem; }
}

/* hero */
.hero { padding: var(--space-section) 0; }
.hero-sub {
    color: var(--muted);
    max-width: 58ch;
    font-size: 1.05rem;
    margin: 1.5rem 0 2.5rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    font: 400 0.9rem var(--font-sans);
    padding: 0.65rem 1.3rem;
    text-decoration: none;
    transition: opacity 150ms ease;
}
.btn:hover { opacity: 0.82; }
.btn.ghost {
    background: none;
    color: var(--ink);
    transition: background 150ms ease, color 150ms ease;
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }

/* band sections */
.band { padding: var(--space-section) 0; }
section:not(.band):not(.hero) { padding: var(--space-section) 0; }

/* steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step {
    border: 1px solid var(--line);
    padding: 1.5rem;
}
.step-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.step code { background: var(--surface); border-color: var(--line); }

/* demo pre — flat, no terminal chrome */
.demo {
    margin: 2.5rem 0 0;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1rem 1.25rem;
    font: 400 0.78rem/1.8 var(--font-mono);
    color: var(--n-300);
    overflow-x: auto;
}
.d-prompt { color: #fafafa; font-weight: 500; }

/* mesh cols */
.cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.cols > div {
    border: 1px solid var(--line);
    padding: 1.5rem;
    transition: border-color 150ms ease;
}
.cols > div:hover { border-color: var(--ink); }
.cols p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
.tool {
    border: 1px solid var(--line);
    padding: 1.25rem 1.5rem;
}
.tool code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fg);
}
.tool p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.85rem; }

/* install */
.install-note { color: var(--muted); max-width: 58ch; margin: 0 0 2rem; }
.code-block {
    position: relative;
    max-width: 34rem;
    margin-bottom: 0.75rem;
}
.code-block pre {
    margin: 0;
    background: var(--ink);
    color: #d4d4d4;
    border: 1px solid var(--ink);
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    font: 400 0.8rem/1.7 var(--font-mono);
    overflow-x: auto;
}
.code-block pre code { background: none; border: none; padding: 0; color: inherit; font: inherit; }
.copy-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--n-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 150ms ease;
}
.copy-btn:hover { color: #ffffff; }
.copy-btn.copied { color: var(--accent); }
.install-after { color: var(--muted); max-width: 58ch; margin: 2rem 0 0; }
@media (max-width: 640px) {
    .code-block pre { white-space: pre-wrap; word-break: break-word; }
}

/* footer */
.site-footer {
    background: var(--ink);
    color: #fafafa;
    padding: 4rem 0 1.5rem;
    overflow: hidden;
}
.site-footer p {
    margin: 0 0 4rem;
    font-size: 0.78rem;
    color: var(--n-500);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.site-footer a { color: var(--n-400); text-decoration: none; transition: color 150ms ease; }
.site-footer a:hover { color: #fafafa; }
.wordmark {
    font-size: clamp(2.6rem, 11.5vw, 9.5rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.85;
    white-space: nowrap;
    user-select: none;
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
