/* Shared by the Nexa pages. Kept in a file (not inline) so their Content-Security-Policy can
   refuse every inline style and script. The layout follows the WindowSmith page (glass nav,
   gradient headline, app mockup, feature cards, footer popups), rebuilt without Tailwind, web
   fonts or icon fonts so the pages load nothing from another site. */
:root {
    --bg: #020617;
    --surface: rgba(30, 41, 59, 0.4);
    --surface-hover: rgba(30, 41, 59, 0.6);
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.15);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --text-faint: #64748b;
    --accent: #3b82f6;
    --accent-text: #60a5fa;
    --green: #34d399;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    background-color: var(--bg);
    /* The BauerHaus background mesh, in Nexa's quieter blue and slate. */
    background-image:
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(148, 163, 184, 0.10) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text-main); font-weight: 600; }
p, li { color: var(--text-dim); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Navigation */
header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(2, 6, 23, 0.7);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav { height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.crumbs { display: flex; align-items: center; gap: 14px; min-width: 0; }
.back { color: var(--text-dim); font-size: 14px; font-weight: 500; white-space: nowrap; }
.back:hover { color: var(--text-main); text-decoration: none; }
.slash { color: #334155; }
.app { display: flex; align-items: center; gap: 10px; color: var(--text-main); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.app:hover { text-decoration: none; }
.app img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text-main); text-decoration: none; }
.nav-links .pill {
    color: var(--text-main); font-weight: 600; background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05); padding: 8px 18px; border-radius: 999px;
}
.nav-links .pill:hover { background: rgba(255, 255, 255, 0.2); }

/* Hero */
.hero { text-align: center; padding-top: 88px; padding-bottom: 40px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
    background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd; font-size: 12px; font-weight: 600; margin-bottom: 32px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.hero h1 {
    font-size: clamp(2.6rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
    margin: 0 0 24px;
}
.gradient {
    background: linear-gradient(to right, #e2e8f0, #60a5fa, #38bdf8);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 640px; margin: 0 auto 40px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.button {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 32px; border-radius: 999px;
    font-weight: 700; color: #fff; background: #2563eb; box-shadow: 0 0 40px -10px rgba(37, 99, 235, 0.5);
    transition: background 0.2s, transform 0.2s;
}
.button:hover { text-decoration: none; background: var(--accent); transform: scale(1.04); }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button.ghost {
    color: #cbd5e1; font-weight: 500; background: var(--surface); box-shadow: none;
    border: 1px solid var(--border);
}
.button.ghost:hover { color: #fff; background: var(--surface-hover); }
.meta { margin: 20px 0 0; font-size: 14px; color: var(--text-faint); }

.notice {
    max-width: 760px; margin: 48px auto 0; text-align: left;
    background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px; padding: 18px 22px;
}
.notice p { margin: 0; color: var(--text-main); }

/* The app mockup: a drawing of Nexa's window with made-up contacts, not real data. */
.demo { position: relative; max-width: 960px; margin: 72px auto 0; perspective: 1000px; }
.glow {
    position: absolute; inset: -20px; z-index: -1; border-radius: 50%; opacity: 0.18; filter: blur(60px);
    background: conic-gradient(from 180deg at 50% 50%, #2a8af6 0deg, #94a3b8 180deg, #2a8af6 360deg);
}
.window {
    text-align: left; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1); background: #0f172a;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    transform: rotateX(6deg); transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.demo:hover .window { transform: rotateX(0deg) scale(1.01); }
.titlebar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.light { width: 12px; height: 12px; border-radius: 50%; }
.light.red { background: #ff5f57; } .light.yellow { background: #febc2e; } .light.green { background: #28c840; }
.panes { display: grid; grid-template-columns: 250px 1fr; height: 420px; }
.sidebar { display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.025); border-right: 1px solid rgba(255, 255, 255, 0.06); padding: 12px 10px; }
.chat-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; }
.chat-row.selected { background: rgba(59, 130, 246, 0.85); }
.chat-row.selected .preview { color: rgba(255, 255, 255, 0.8); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; font-weight: 700; color: #fff; }
.a1 { background: linear-gradient(135deg, #f472b6, #a855f7); }
.a2 { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.a3 { background: linear-gradient(135deg, #fbbf24, #f97316); }
.a4 { background: linear-gradient(135deg, #64748b, #334155); }
.chat-row b { display: block; font-size: 13px; color: var(--text-main); font-weight: 600; }
.preview { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row div { min-width: 0; }
.status { margin-top: auto; padding: 10px; font-size: 11px; color: var(--text-dim); display: grid; gap: 4px; }
.status span { display: flex; align-items: center; gap: 6px; }
.status .dot { width: 7px; height: 7px; }
.conversation { display: flex; flex-direction: column; min-width: 0; }
.conv-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.conv-head b { font-size: 14px; }
.verified { font-size: 11px; color: var(--green); border: 1px solid rgba(52, 211, 153, 0.35); border-radius: 999px; padding: 1px 8px; }
.messages { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px; overflow: hidden; }
.bubble { max-width: 70%; padding: 8px 13px; border-radius: 16px; font-size: 13px; line-height: 1.45; color: var(--text-main); }
.bubble.them { align-self: flex-start; background: rgba(255, 255, 255, 0.09); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: #2563eb; border-bottom-right-radius: 5px; }
.stamp { align-self: center; font-size: 11px; color: var(--text-faint); }
.composer { margin: 0 18px 16px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: var(--text-faint); }

/* The mockup's glow and tilt reach past the edges; clip them so phones get no sideways scroll
   (clip, unlike hidden, doesn't make main a scroll container). */
main { overflow-x: clip; }

/* Sections */
section { padding: 96px 0; }
section.ruled { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; }
.section-head p { font-size: 1.1rem; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
/* Eight feature cards: four, two or one per row, never leaving a pair alone under a row of three. */
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards.four { grid-template-columns: 1fr; } }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3); }
.card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; color: var(--text-main); }
.card p { margin: 0; }
.card .small { margin-top: 14px; font-size: 14px; color: var(--text-faint); }
.icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
    transition: transform 0.3s;
}
.card:hover .icon { transform: scale(1.1); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.step { font-size: 20px; font-weight: 700; }
.blue { color: #60a5fa; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); }
.sky { color: #38bdf8; background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.2); }
.green { color: #34d399; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.slate { color: #cbd5e1; background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.2); }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin: 56px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-faint); }
.facts li { margin: 0; color: var(--text-faint); }

/* Help, questions, report abuse */
.help h2 { font-size: 1.6rem; letter-spacing: -0.015em; margin: 56px 0 14px; }
.help h2:first-child { margin-top: 0; }
.help ul, .help ol { padding-left: 1.3em; }
.help li { margin: 6px 0; }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--text-main); }
details summary:hover { color: #fff; }
details p { margin: 10px 0 0; }

/* Privacy policy page */
h1.page { font-size: clamp(2rem, 6vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.1; margin: 56px 0 8px; }
.updated { color: var(--text-dim); margin: 0 0 32px; }
main.policy h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 48px 0 12px; }
main.policy h3 { font-size: 1.1rem; margin: 28px 0 6px; }
main.policy ul, main.policy ol { padding-left: 1.3em; }
main.policy li { margin: 6px 0; }
main.policy .notice { margin: 24px 0; }

/* Footer */
footer { border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 48px; padding: 48px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.byline img { width: 32px; height: 32px; border-radius: 8px; }
.byline b { color: var(--text-main); }
.copyright { text-align: center; }
.copyright p { margin: 0; color: var(--text-faint); }
.copyright p + p { font-size: 12px; color: #475569; margin-top: 4px; }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; font-weight: 500; }
.footer-links a { color: var(--text-faint); }
.footer-links a:hover { color: var(--text-main); text-decoration: none; }

/* Popups, opened by their #fragment so they need no script. */
.modal {
    position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.modal:target { display: flex; }
.modal-backdrop { position: absolute; inset: 0; }
.modal-content {
    position: relative; background: #1c1c1e; border: 1px solid rgba(255, 255, 255, 0.1); padding: 40px;
    border-radius: 24px; max-width: 440px; width: 90%; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.modal-content h2 { margin: 0 0 12px; font-size: 1.5rem; letter-spacing: -0.02em; }
.modal-content p { margin: 0; color: #86868b; }
.modal-content .mail { display: inline-block; margin-top: 8px; color: #2997ff; font-weight: 500; }
.close {
    position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 18px; line-height: 1;
}
.close:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; }

@media (max-width: 760px) {
    .nav-links a:not(.pill) { display: none; }
    .slash, .back-label { display: none; }
    .panes { grid-template-columns: 1fr; height: auto; }
    .sidebar { display: none; }
    .messages { min-height: 300px; }
    .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .window, .card, .icon, .button { transition: none; }
    .window, .demo:hover .window { transform: none; }
    .card:hover, .button:hover { transform: none; }
}
