:root {
    --bg: #0a0a0b;
    --bg-alt: #111113;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --fg: #f0f0f3;
    --fg-dim: #6e6e7a;
    --fg-muted: #3a3a45;
    --accent: #10b981;
    --accent-strong: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.12);
    --accent2: #6ee7b7;
    --border: #1e1e26;
    --border-light: #2a2a35;
    --line-height: 1.6;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Consolas', 'Liberation Mono', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    --font-size: 14px;
}

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

body {
    font-family: var(--font-mono);
    font-size: var(--font-size);
    color: var(--fg);
    background: var(--bg);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:visited {
    color: var(--accent);
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

a:active {
    color: var(--accent-strong);
}

/* ==========================================
   Header
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-logo {
    font-size: var(--font-size);
    color: var(--fg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo:hover {
    color: var(--accent);
    text-decoration: none;
}

.header-logo .prompt {
    color: var(--accent);
}

.header-center {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    list-style: none;
    gap: 4px;
}

.header-nav a {
    color: var(--fg-dim);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid transparent;
    font-size: var(--font-size);
}

.header-nav a:hover {
    color: var(--fg);
    border-color: var(--border);
    text-decoration: none;
}

#mobile-sidebar-toggle {
    display: none;
}

/* ==========================================
   Main Content
   ========================================== */

.main-content {
    margin-top: 44px;
    padding: 48px 24px 64px;
    min-height: calc(100vh - 44px);
}

.content-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

/* ==========================================
   Page Shell & Components
   ========================================== */

.page-shell {
    background: transparent;
    border: none;
    padding: 0;
}

.page-shell + .page-shell {
    margin-top: 32px;
}

.page-header {
    margin-bottom: 24px;
}

.page-eyebrow {
    display: block;
    color: var(--accent);
    font-size: var(--font-size);
    margin-bottom: 4px;
}

.page-eyebrow::before {
    content: '❯ ';
}

.page-title {
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.25;
    color: var(--fg);
    font-weight: 400;
}

.page-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.3;
    color: var(--fg);
    font-weight: 400;
}

.page-intro {
    color: var(--fg-dim);
    font-size: var(--font-size);
    margin-top: 8px;
}

.page-prose {
    max-width: 100%;
}

.page-prose p {
    margin-bottom: 1em;
}

.page-prose p + p {
    margin-top: 0;
}

.page-footnote,
.text-muted {
    color: var(--fg-dim);
}

.page-meta {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--fg-dim);
    font-size: 13px;
}

.page-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-list-item {
    padding: 20px 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.page-list-item:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.04);
}

.page-list-item strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--fg);
}

.page-list-item:not(:has(strong)) {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--fg-dim);
    line-height: 1.5;
}

.page-list-item a {
    color: var(--accent);
}

.page-list-item a:hover {
    color: #fff;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-col {
    min-width: 0;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fg-dim);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* ==========================================
   Hero (Homepage)
   ========================================== */

.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 32px 0 24px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.hero-panel {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-panel-glow {
    position: absolute;
    top: -40px;
    left: -20px;
    right: -20px;
    bottom: -40px;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%, var(--accent-glow) 100%);
    border-radius: 24px;
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent2) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 8px var(--accent);
}

.hero-title .host {
    color: var(--accent-strong);
}

.hero-title .path {
    color: var(--fg-dim);
}

.hero-title .prompt-sign {
    color: var(--accent-strong);
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-rule {
    width: 100%;
    height: 1px;
    margin: 0 0 24px 0;
    background: linear-gradient(90deg, var(--border), var(--border-light), transparent);
}

.hero-copy {
    max-width: 640px;
    color: var(--fg);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.7;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

.hero-copy p {
    margin-bottom: 1em;
}

.hero-copy p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   Homepage
   ========================================== */

.home-hero {
    text-align: center;
    padding: 32px 0 40px;
}

.home-title {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 400;
    color: var(--fg);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.home-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--fg-dim);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 16px;
}

.home-value {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--accent-strong);
    margin-bottom: 28px;
}

a.home-cta {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.home-cta:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.home-cta:hover::before {
    opacity: 1;
}

.home-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.home-section {
    margin-bottom: 40px;
}

.home-section-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--fg);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.home-capabilities {
    list-style: none;
    display: grid;
    gap: 12px;
}

.home-capabilities li {
    padding: 20px 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.home-capabilities li:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.04);
}

.home-capabilities h3 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--fg);
    margin-bottom: 6px;
}

.home-capabilities p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--fg-dim);
    line-height: 1.5;
}

.home-steps {
    list-style: none;
    counter-reset: home-step;
    display: grid;
    gap: 12px;
}

.home-steps li {
    counter-increment: home-step;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.home-steps li::before {
    content: counter(home-step);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
}

.home-steps li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.home-steps li:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.home-steps li:hover::after {
    opacity: 1;
}

.home-steps h3 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--fg);
    margin-bottom: 4px;
}

.home-steps p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--fg-dim);
    line-height: 1.5;
}

/* ==========================================
   Sales CTA
   ========================================== */

.sales-cta {
    padding: 24px 0 40px;
}

.sales-cta h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.sales-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 12px;
    margin-bottom: 48px;
}

.sales-steps li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.sales-steps li::before {
    content: counter(step);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
}

.sales-steps li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sales-steps li:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.sales-steps li:hover::after {
    opacity: 1;
}

.sales-steps li span {
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   Cards & Posts
   ========================================== */

.card {
    background: transparent;
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 20px;
}

.card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
    color: var(--fg);
}

.card-body {
    padding: 16px;
}

.post-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card {
    border: 1px solid var(--border);
    background: transparent;
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.post-card-title {
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: var(--font-size);
    font-weight: 400;
}

.post-card-title a {
    color: var(--fg);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-subtitle {
    color: var(--fg-dim);
    margin-bottom: 4px;
}

.post-card-meta {
    color: var(--fg-dim);
    font-size: 13px;
}

.post-card-labels {
    margin-top: 8px;
    color: var(--fg-dim);
}

/* ==========================================
   Status Banner
   ========================================== */

.status-banner {
    margin-bottom: 20px;
}

/* ==========================================
   Alerts
   ========================================== */

.alert {
    padding: 12px 16px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    color: var(--fg);
}

.alert-success {
    border-color: var(--accent);
    color: var(--accent);
}

.alert-warning {
    border-color: #d29922;
    color: #d29922;
}

.alert-secondary {
    border-color: var(--border);
    color: var(--fg-dim);
}

/* ==========================================
   Buttons
   ========================================== */

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    font-size: var(--font-size);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    border-color: var(--fg);
}

/* ==========================================
   Tables
   ========================================== */

.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    color: var(--fg);
}

.table th,
.table td {
    padding: 10px 12px;
    vertical-align: top;
    border-top: 1px solid var(--border);
    text-align: left;
}

.table thead th {
    border-bottom: 2px solid var(--border);
    color: var(--fg-dim);
}

/* ==========================================
   Forms
   ========================================== */

.form-group {
    margin-bottom: 1rem;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fg);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* ==========================================
   Sales Request Form
   ========================================== */

.sales-request-form {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-top: 28px;
    display: grid;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.sales-request-fields {
    display: flex;
    gap: 16px;
}

.sales-request-fields .form-group {
    flex: 1;
    margin-bottom: 0;
}

.sales-request-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.sales-request-form label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fg-dim);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sales-request-form input {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}

.sales-request-form input:focus {
    background: var(--bg-alt);
}

.sales-request-form button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.sales-request-form button[type="submit"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sales-request-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.sales-request-form button[type="submit"]:hover::before {
    opacity: 1;
}

.sales-request-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.sales-message {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--fg);
}

/* ==========================================
   Sales Chat Messages
   ========================================== */

.msg {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.msg-user {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--fg-dim);
}

.msg-user strong {
    color: var(--fg);
}

.msg-assistant {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--fg);
}

.msg-assistant p { margin-bottom: 0.6em; }
.msg-assistant p:last-child { margin-bottom: 0; }
.msg-assistant ul, .msg-assistant ol { margin: 0.4em 0; padding-left: 1.4em; }
.msg-assistant li { margin-bottom: 0.3em; }
.msg-assistant strong { color: var(--accent-strong); }
.msg-assistant code {
    background: rgba(255,255,255,0.06);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}
.msg-assistant pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    margin: 0.6em 0;
}
.msg-assistant pre code {
    background: none;
    padding: 0;
}

.msg-error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.msg-error p { margin-bottom: 0.6em; }
.msg-error p:last-child { margin-bottom: 0; }
.msg-error ul, .msg-error ol { margin: 0.4em 0; padding-left: 1.4em; }
.msg-error li { margin-bottom: 0.3em; }
.msg-error strong { color: #ef4444; }
.msg-error code {
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ==========================================
   Sales Page Layout
   ========================================== */

.sales-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sales-panels {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.sales-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 500px;
}

.sales-chat h3,
.sales-requirements h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

#sales-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 360px;
}

#sales-message-input {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fg);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease;
}

#sales-message-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.sales-chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sales-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--fg-dim);
    margin-top: 6px;
}

.sales-counter .over {
    color: #ef4444;
    font-weight: 600;
}

.sales-counter .info-icon {
    width: 16px;
    height: 16px;
    font-size: 12px;
}

#sales-send {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sales-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

#sales-send:disabled {
    cursor: wait;
    transform: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: send-pulse 1.6s ease-in-out infinite;
}

#sales-send:disabled::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: send-spin 0.8s linear infinite;
}

@keyframes send-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes send-pulse {
    0%,
    100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sales-send:disabled {
        animation: none;
    }
    #sales-send:disabled::before {
        animation-duration: 1.6s;
    }
}

.sales-requirements {
    position: sticky;
    top: 64px;
    padding: 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-height: calc(100vh - 88px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#sales-requirements-body {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 40vh;
}

#sales-requirements-body:empty::before {
    content: 'Requirements will appear here as the conversation progresses.';
    color: var(--fg-muted);
    font-style: italic;
}

#sales-requirements-body .req-block {
    margin-bottom: 0.8em;
    padding-bottom: 0.8em;
    border-bottom: 1px solid var(--border);
}

#sales-requirements-body .req-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#sales-requirements-body .req-label {
    color: var(--accent-strong);
    font-weight: 500;
    text-transform: capitalize;
    margin-bottom: 0.2em;
}

#sales-requirements-body .req-value {
    color: var(--fg);
}

#sales-requirements-body .req-value p {
    margin: 0.3em 0;
}

#sales-requirements-body .req-value ul,
#sales-requirements-body .req-value ol {
    margin: 0.4em 0;
    padding-left: 1.4em;
}

#sales-requirements-body .req-value li {
    margin-bottom: 0.3em;
}

.sales-gap-title {
    margin-top: 16px;
}

.info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 1;
    color: var(--fg-dim);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 4px;
    transition: color 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.info-icon:hover {
    color: var(--fg);
    border-color: var(--fg-dim);
}

.info-icon .info-tip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    padding: 8px 10px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    white-space: normal;
    text-transform: none;
    letter-spacing: normal;
    z-index: 10;
}

.info-icon .info-tip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--border-light);
}

.info-icon.active .info-tip {
    display: block;
}

.sales-gap-hint {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--accent-glow);
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.5;
}

#sales-cancel {
    padding: 10px 28px;
    background: transparent;
    color: var(--fg-dim);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sales-cancel:hover {
    border-color: var(--fg-dim);
    color: var(--fg);
}

#sales-submit {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sales-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

#sales-submit.not-ready {
    background: var(--bg-dim, #2a2a2a);
    color: var(--fg-dim, #888);
    opacity: 0.6;
}

#sales-submit.not-ready:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    padding: 20px;
}

.modal {
    background: var(--bg, #fff);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fg);
}

.modal p {
    margin: 0 0 20px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--fg);
}

.modal p:last-child {
    margin-bottom: 16px;
}

.modal p ul,
.modal p ol {
    margin: 0.4em 0;
    padding-left: 1.4em;
}

.modal p li {
    margin-bottom: 0.3em;
}

.modal p p {
    margin: 0.3em 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--fg-dim);
    transition: all 0.2s ease;
}

.modal-btn:hover {
    border-color: var(--fg-dim);
    color: var(--fg);
}

.modal-btn.modal-confirm {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border: none;
}

.modal-btn.modal-confirm:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.modal-btn.modal-btn-secondary {
    background: transparent;
    color: var(--fg-dim);
    border: 1px solid var(--border);
}

.modal-btn.modal-btn-secondary:hover {
    border-color: var(--fg-dim);
    color: var(--fg);
}

.modal-close {
    float: right;
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.modal-close:hover {
    color: var(--fg);
}

/* ==========================================
   Thank You Page
   ========================================== */

.thanks-header {
    text-align: center;
    margin-bottom: 40px;
}

.thanks-check {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.thanks-lead {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--fg-dim);
    margin-top: 8px;
    line-height: 1.5;
}

.thanks-steps {
    list-style: none;
    counter-reset: thanks-step;
    display: grid;
    gap: 12px;
    margin-bottom: 40px;
}

.thanks-step {
    counter-increment: thanks-step;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.thanks-step::before {
    content: counter(thanks-step);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
}

.thanks-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.thanks-step:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.thanks-step:hover::after {
    opacity: 1;
}

.thanks-step h2 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--fg);
    margin-bottom: 4px;
}

.thanks-step p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--fg-dim);
    line-height: 1.5;
    margin: 0;
}

.thanks-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.thanks-footer p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--fg-dim);
    margin-bottom: 16px;
}

.thanks-footer a {
    color: var(--accent);
    text-decoration: none;
}

.thanks-footer a:hover {
    text-decoration: underline;
}

.thanks-home {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.thanks-home:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 768px) {
    .sales-panels {
        grid-template-columns: 1fr;
    }

    .sales-requirements {
        position: static;
        max-height: none;
    }

    .sales-chat {
        min-height: 400px;
    }
}

/* ==========================================
   Grid & Utilities
   ========================================== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }

.w-100 { width: 100%; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.gap-3 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

/* ==========================================
   Container
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================
   Scrollbar
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fg-dim);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .main-content {
        padding: 24px 16px 48px;
    }

    .header {
        padding: 0 12px;
    }

    .header-nav a {
        padding: 4px 8px;
    }

    .hero {
        padding: 24px 0 16px;
    }

    .hero-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .sales-cta {
        padding: 48px 0 40px;
    }

    .sales-cta h2 {
        font-size: 1.4rem;
        margin-bottom: 28px;
    }

    .sales-steps li {
        padding: 16px 18px;
    }

    .sales-request-form {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .sales-request-fields {
        flex-direction: column;
        gap: 1rem;
    }

    .sales-request-form button[type="submit"] {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .home-hero {
        padding: 24px 0 32px;
    }

    .home-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .home-capabilities li,
    .home-steps li {
        padding: 16px 18px;
    }

    .about-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
