:root {
    --bg-color: #0c0c0c;
    --surface-color: #161616;
    --border-color: #333333;
    --text-primary: #e5e5e5;
    --text-secondary: #888888;
    --accent-color: #22c55e; /* Modern Terminal Green */
    --accent-hover: #16a34a;
    --error-color: #ef4444;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --scanline-color: rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scanline effect (subtle) */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.side-nav {
    width: 200px;
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
}

.side-nav-toggle {
    margin: 0.75rem 0.5rem 0.25rem;
    padding: 0.35rem 0.6rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
}

.side-nav-toggle:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.5rem;
    gap: 0.25rem;
}

.side-nav-links a {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-right: 0;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.side-nav-links a:hover, .side-nav-links a.active {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
    color: var(--accent-color);
    text-decoration: none;
}

.side-nav-links a.active {
    border-left: 2px solid var(--accent-color);
    background: rgba(34, 197, 94, 0.05);
}

.nav-icon {
    display: none;
    width: 3ch;
    text-align: center;
    font-size: 0.75rem;
}

.side-nav.collapsed {
    width: 64px;
}

.side-nav.collapsed .side-nav-links {
    padding: 0.6rem 0.4rem;
    gap: 0.35rem;
}

.side-nav.collapsed .side-nav-toggle {
    text-align: center;
    padding: 0.35rem 0.4rem;
}

.side-nav.collapsed .side-nav-links a {
    text-align: center;
    padding: 0.6rem 0.4rem;
    justify-content: center;
}

.side-nav.collapsed .side-nav-links a.active {
    border-left: none;
    border-top: 2px solid var(--accent-color);
}

.side-nav.collapsed .nav-icon {
    display: inline-block;
}

.side-nav.collapsed .nav-label,
.side-nav.collapsed .side-nav-footer {
    display: none;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Important for grid/flex child scaling */
}

.public-wrapper {
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-wrapper {
    max-width: 1400px;
}

.public-layout {
    flex-direction: column;
}

.public-layout header.app-header {
    display: none;
}

/* Header / Nav */
header.app-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
    gap: 1rem;
    height: 60px;
}

header.app-header .brand {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

header.app-header .brand::before {
    content: "> ";
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Agent 3-Column Layout */
.agent-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr 500px;
    grid-template-rows: 1fr;
    gap: 0; /* Gap 0 to handle borders ourselves for collapse */
    height: calc(100vh - 60px); 
    min-height: 500px;
    background: var(--bg-color);
}

.agent-pane {
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
    position: relative;
}

.agent-pane:last-child {
    border-right: none;
}

.agent-pane.collapsed {
    width: 40px !important;
    min-width: 40px !important;
}

.agent-pane.collapsed > *:not(.pane-toggle-btn) {
    display: none !important;
}

.pane-toggle-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    z-index: 10;
    border-radius: 2px;
}

.pane-toggle-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.agent-sidebar-header, .workspace-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
    flex-shrink: 0;
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow-x: auto; /* Allow scrolling for overflowing content like tables */
}

.card h2 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.card h2::after {
    content: "";
    flex: 1;
}

/* Agent UI: project connection dots */
.project-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-connection-dots {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.conn-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #2a2a2a;
    opacity: 0.7;
}

.conn-dot.connected {
    opacity: 1;
}

.conn-dot-ga4.connected {
    background: #a855f7;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.35);
}

.conn-dot-gsc.connected {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.35);
}

.conn-dot.disconnected {
    background: #2a2a2a;
    box-shadow: none;
}

/* Buttons */
.btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn:disabled:hover {
    background: transparent;
    color: var(--text-secondary);
    box-shadow: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    min-width: 600px; /* Ensure table doesn't squish too much */
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

th {
    color: var(--text-secondary);
    font-weight: normal;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

main.full-width {
    padding: 0;
    max-width: none;
    margin: 0;
}

footer {
    margin-top: auto;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Forms */
input, select, textarea {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    font-family: var(--font-mono);
    width: 100%;
    margin-bottom: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Agent 3-Column Layout */
.agent-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr 500px;
    grid-template-rows: 1fr;
    gap: 1.5rem;
    height: calc(100vh - 100px); /* Adjust based on header height */
    min-height: 600px;
}

.agent-sidebar {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0; /* Removed rounding */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agent-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.session-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.session-item.active {
    background: rgba(34, 197, 94, 0.08);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
}

.agent-chat-pane {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0; /* Removed rounding */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-history-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-message {
    max-width: 90%;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.chat-message.user {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    min-width: 150px; /* Added min-width */
}

.chat-message.assistant {
    align-self: flex-start;
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
    position: relative;
    padding-right: 2.75rem;
}

.chat-message.assistant.assistant-with-copy {
    padding-right: 4.5rem;
}

.assistant-copy-btn {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.assistant-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

.assistant-copy-btn.copy-success {
    color: var(--accent-color);
    border-color: rgba(34, 197, 94, 0.8);
    background: rgba(34, 197, 94, 0.1);
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

.agent-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.agent-controls-left {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
}

.agent-controls-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.model-tier-control {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 180px;
}

.model-tier-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.model-tier-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.model-tier-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.model-tier-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 170px;
    height: 30px;
    padding: 2px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
    overflow: hidden;
}

.model-tier-option {
    z-index: 1;
    width: 50%;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

.model-tier-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 4px);
    height: calc(100% - 4px);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.model-tier-toggle input:checked + .model-tier-track .model-tier-thumb {
    transform: translateX(100%);
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.model-tier-toggle input:checked + .model-tier-track .model-tier-option-pro {
    color: var(--accent-color);
}

.model-tier-toggle input:not(:checked) + .model-tier-track .model-tier-option-standard {
    color: var(--accent-color);
}

.model-tier-toggle input:disabled + .model-tier-track {
    opacity: 0.4;
    cursor: not-allowed;
}

.model-tier-note {
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.75;
}

.agent-workspace-pane {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0; /* Removed rounding */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workspace-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workspace-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.process-log {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 2px solid var(--border-color);
    display: none; /* Hidden by default until populated */
}

.process-log:not(:empty) {
    display: block;
}

.process-line {
    margin-bottom: 0.2rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Mobile Responsive */
@media (max-width: 1100px) {
    .agent-layout-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .agent-sidebar, .agent-workspace-pane {
        max-height: 300px;
    }

    .agent-chat-pane {
        height: 600px;
    }
}


.trend-down {
    color: var(--error-color);
    font-size: 0.85em;
    margin-left: 0.35rem;
}

.stat-value {
    font-weight: bold;
    color: var(--text-primary);
}

.no-wrap {
    white-space: nowrap;
}

.agent-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.stats-rail .stat-block {
    margin-bottom: 1rem;
    border: 1px dashed var(--border-color);
    padding: 0.75rem;
    border-radius: 4px;
}

.stat-block-title {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: bold;
    color: var(--text-primary);
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.agent-form .form-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.prompt-pill {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(34, 197, 94, 0.05);
}

.agent-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.response-panel {
    border: 1px dashed var(--border-color);
    padding: 1rem;
    margin-top: 1rem;
    background: #111;
    border-radius: 4px;
    min-height: 120px;
}

.response-panel .answer-text {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.console-log {
    max-height: 7em; /* 4 lines (1.6em * 4) + padding */
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    scrollbar-width: thin; /* Firefox */
}

.console-log::-webkit-scrollbar {
    width: 6px;
}

.console-log::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.metrics-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metric-chip {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.6rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.actions-card .actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.action-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #111;
}

.action-title {
    font-weight: bold;
    margin-bottom: 0.35rem;
}

.action-detail {
    opacity: 0.8;
    margin-bottom: 0.35rem;
}

.action-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    text-transform: lowercase;
}

.placeholder {
    opacity: 0.6;
}

.error {
    color: var(--error-color);
}

.toast {
    margin-top: 0.75rem;
    border: 1px solid var(--accent-color);
    padding: 0.6rem 0.8rem;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 4px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    border-top: 1px solid var(--accent-color);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

/* User Credits Display */
.user-credits {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: bold;
    white-space: nowrap; /* Prevent wrapping */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .terminal-layout {
        padding: 0.5rem;
    }

    .public-wrapper {
        padding: 0 0.75rem;
    }

    .engineering-hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    nav .brand {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    nav .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem; /* Adjust gap for stacked links */
    }

    nav a {
        margin-right: 0;
        width: 100%; /* Make links take full width */
        text-align: left;
        padding: 0.25rem 0; /* Add some padding */
    }

    .user-credits {
        width: 100%; /* Take full width on mobile */
        text-align: center;
        margin-left: 0; /* Override margin-left: auto */
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }
    
    /* Allow tables to scroll horizontally on mobile */
    .card {
        padding: 1rem;
        overflow-x: auto;
    }

    .agent-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing Card Override for Badge Overflow */
.pricing-card {
    overflow: visible !important;
}

/* Google Sign-In button (material) */
.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: #131314;
    background-image: none;
    border: 1px solid #747775;
    border-radius: 4px;
    box-sizing: border-box;
    color: #e3e3e3;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
    border-color: #8e918f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}
.gsi-material-button .gsi-material-button-content-wrapper {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}
.gsi-material-button .gsi-material-button-contents {
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}
.gsi-material-button .gsi-material-button-state {
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.gsi-material-button:disabled {
    cursor: default;
    background-color: #13131461;
    border-color: #8e918f1f;
}
.gsi-material-button:disabled .gsi-material-button-state {
    background-color: #e3e3e31f;
}
.gsi-material-button:disabled .gsi-material-button-contents,
.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 0.38;
}
.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: white;
    opacity: 0.12;
}
.gsi-material-button:not(:disabled):hover {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}
.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: white;
    opacity: 0.08;
}

/* Example Prompts Grid (Landing Page) */
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.example-card {
    background: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}
.example-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
    transform: translateY(-4px);
}
.example-card:hover .run-overlay {
    opacity: 1;
    pointer-events: none;
}
.example-card:active {
    transform: translateY(-2px);
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
}
.run-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}
.example-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.example-body {
    padding: 1.5rem;
}
.user-query {
    background: #000;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    position: relative;
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 0.95rem;
}
.user-query::before {
    content: "USER_QUERY >";
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    opacity: 0.7;
    letter-spacing: 1px;
}
.user-query::after {
    content: "_";
    animation: blink 1s step-end infinite;
    color: var(--accent-color);
}
@keyframes blink { 50% { opacity: 0; } }
.agent-task {
    padding-left: 1rem;
    border-left: 2px solid var(--accent-color);
}
.agent-task-label {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}
.agent-task a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: all 0.2s;
    font-size: 0.95rem;
    pointer-events: none; /* Make clicks hit the card container instead */
}

/* Informational 3-column layout */
.info-hero {
    margin-bottom: 1.5rem;
}

.info-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eyebrow {
    color: var(--accent-color);
    font-weight: bold;
}

.info-title {
    margin: 0.25rem 0;
    font-size: 1.8rem;
}

.info-byline {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.info-lead {
    margin: 0;
    color: var(--text-secondary);
    max-width: 900px;
}

.engineering-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: linear-gradient(140deg, rgba(34, 197, 94, 0.18), rgba(12, 12, 12, 0.95) 55%, #0c0c0c 100%);
}

.engineering-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(34, 197, 94, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.25;
    pointer-events: none;
}

.engineering-hero > * {
    position: relative;
    z-index: 1;
}

.engineering-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.engineering-title {
    margin: 0.5rem 0 0.35rem;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.engineering-lead {
    margin: 0;
    color: var(--text-secondary);
    max-width: 820px;
    line-height: 1.6;
}

.engineering-index {
    display: grid;
    gap: 1.5rem;
}

.engineering-post {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(18, 18, 18, 0.98), rgba(8, 8, 8, 0.98));
    margin-bottom: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.engineering-post::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(34, 197, 94, 0.35);
    pointer-events: none;
}

.engineering-post:hover {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45), 0 0 18px rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
}

.engineering-post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.engineering-post-tag {
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(34, 197, 94, 0.6);
    color: var(--accent-color);
    border-radius: 999px;
    font-size: 0.65rem;
}

.engineering-post-date {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.engineering-post-title {
    margin: 0.9rem 0 0.55rem;
    font-size: 1.35rem;
}

.engineering-post-title a {
    color: var(--text-primary);
}

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

.engineering-post-excerpt {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.engineering-post-tags {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

.engineering-post-tags span {
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.engineering-post-footer {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.engineering-post-byline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

.engineering-post-cta {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    gap: 1.5rem;
    align-items: start;
}

.info-rail {
    align-self: start;
}

.sticky-rail {
    position: sticky;
    top: 1.25rem;
}

.info-rail-card h3 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.info-sticky {
    position: sticky;
    top: 1.25rem;
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toc-list a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.toc-list a:hover {
    color: var(--accent-color);
}

.info-article {
    line-height: 1.8;
}

.info-article h2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    scroll-margin-top: 1.5rem;
}

.info-article p {
    color: var(--text-primary);
}

.info-article ul {
    padding-left: 1.2rem;
}

.info-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-cta-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, 0.55);
    background: linear-gradient(155deg, rgba(34, 197, 94, 0.16) 0%, rgba(12, 12, 12, 0.96) 55%, #0c0c0c 100%);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.1) inset, 0 18px 35px rgba(0, 0, 0, 0.45);
}

.info-cta-card > * {
    position: relative;
    z-index: 1;
}

.info-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(34, 197, 94, 0.18), transparent 45%);
    opacity: 0.7;
    pointer-events: none;
}

.info-cta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.08) 1px, transparent 1px, transparent 6px);
    opacity: 0.25;
    mix-blend-mode: screen;
    pointer-events: none;
}

.info-cta-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.info-cta-tag {
    color: var(--accent-color);
}

.info-cta-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
    animation: cta-pulse 1.6s ease-in-out infinite;
}

.info-cta-title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.6rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-cta-text {
    position: relative;
    z-index: 1;
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

.info-cta-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    display: block;
}

@keyframes cta-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.65;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.85);
        opacity: 0.65;
    }
}

/* Public nav (root + seeds) */
.public-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.public-nav .brand {
    font-weight: bold;
    font-size: 1.1rem;
}

.public-nav a {
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.85;
}

.public-nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.nav-spacer {
    flex: 1;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    color: var(--text-primary);
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown[open] summary {
    opacity: 1;
}

.nav-dropdown ul {
    position: absolute;
    top: 1.8rem;
    left: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    min-width: 200px;
    z-index: 10;
}

.nav-dropdown li {
    margin: 0;
    padding: 0.25rem 0.35rem;
}

.nav-dropdown li a {
    display: block;
    width: 100%;
    color: var(--text-primary);
}

.nav-dropdown li a:hover {
    color: var(--accent-color);
}

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

    .info-sticky,
    .sticky-rail {
        position: static;
        max-height: none;
    }
}

/* Terminal Syntax Highlighting */
.hl-metric { color: var(--accent-color); font-weight: bold; }
.hl-imp { color: #a78bfa; /* Purple-ish */ }
.hl-ctr { color: #fbbf24; /* Amber/Gold */ }
.hl-pos { color: #f472b6; /* Pink */ }
.hl-keyword { color: #60a5fa; /* Blue */ }

/* --- Proposal Design System (SPIN / Cyberpunk) --- */
.proposal-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--font-mono);
}

.hero-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.spin-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.spin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--border-color);
}

.spin-card.situation::before { background: #3b82f6; }
.spin-card.problem::before { background: var(--error-color); }
.spin-card.implication::before { background: #f59e0b; }
.spin-card.payoff::before { background: var(--accent-color); }

.spin-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-card {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 1.25rem;
    text-align: center;
}

.metric-val {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1;
}

.metric-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-width: 0; /* Override global table min-width */
}

.comp-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    opacity: 0.6;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.comp-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #222;
}

.comp-table tr:last-child td { border-bottom: none; }

.pillar-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, var(--surface-color) 0%, transparent 100%);
}

.pillar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pillar-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: bold;
}

.impact-badge {
    font-size: 0.7rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-color);
    padding: 2px 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 3px;
    text-transform: uppercase;
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
}

.roadmap-item {
    position: relative;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 0.4rem;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
}

.cta-box {
    margin-top: 4rem;
    padding: 2.5rem;
    background: radial-gradient(circle at center, #1a2e1a 0%, #0c0c0c 100%);
    border: 1px solid var(--accent-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '[ SYSTEM_READY ]';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.6rem;
    opacity: 0.4;
    color: var(--accent-color);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
    transition: all 0.2s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px);
}

/* Code Blocks */
pre {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

pre:has(code.language-rust)::before,
pre:has(code.hljs.language-rust)::before {
    content: 'rust';
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--surface-color);
    border-bottom-left-radius: 4px;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

pre code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e0e0e0;
}

code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--accent-color);
}

/* Syntax highlighting - terminal theme */
.hljs {
    background: transparent !important;
    padding: 0 !important;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-name,
.hljs-tag {
    color: #ff7b72;
}

.hljs-string,
.hljs-title,
.hljs-section,
.hljs-attribute,
.hljs-literal,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type {
    color: #a5d6ff;
}

.hljs-comment,
.hljs-quote,
.hljs-deletion,
.hljs-meta {
    color: #6e7681;
}

.hljs-function .hljs-keyword,
.hljs-class .hljs-keyword {
    color: #ff7b72;
}

.hljs-function .hljs-title,
.hljs-class .hljs-title,
.hljs-title.function_ {
    color: #d2a8ff;
}

.hljs-number,
.hljs-symbol,
.hljs-bullet,
.hljs-link {
    color: #79c0ff;
}

.hljs-params,
.hljs-variable,
.hljs-attr {
    color: #ffa657;
}

.hljs-punctuation {
    color: #c9d1d9;
}

/* ================================================
   SALES PAGE STYLES - Long-form SaaS Product Page
   ================================================ */

.sales-page-wrapper {
    max-width: none;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Sales Navigation */
.sales-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sales-nav .brand {
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Sales Hero */
.sales-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.sales-hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 0.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sales-hero-subtitle {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
}

.sales-hero-lead {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 2rem;
    line-height: 1.7;
}

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

.btn-large {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.cta-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Hero Agent Chat Visual */
.sales-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-agent-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.hero-agent {
    width: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
                0 25px 50px -12px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                0 -20px 40px -20px rgba(34, 197, 94, 0.1) inset;
    transform: rotateX(2deg) rotateY(-1deg);
    transform-style: preserve-3d;
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-icon {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.8rem;
}

.agent-title {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 1px;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
    animation: status-blink 1.5s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-color); }
    50% { opacity: 0.5; box-shadow: 0 0 4px var(--accent-color); }
}

/* Chat Scrolling Area */
.agent-chat-scroll {
    height: 380px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.agent-chat-scroll::before,
.agent-chat-scroll::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 10;
}

.agent-chat-scroll::before {
    top: 0;
    background: linear-gradient(180deg, #0d0d0d 0%, transparent 100%);
}

.agent-chat-scroll::after {
    bottom: 0;
    background: linear-gradient(0deg, #0d0d0d 0%, transparent 100%);
}

.agent-chat-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: chat-scroll 20s linear infinite;
}

@keyframes chat-scroll {
    0% {
        transform: translateY(0);
    }
    8% {
        transform: translateY(0);
    }
    88% {
        transform: translateY(calc(-100% + 380px));
    }
    93% {
        transform: translateY(calc(-100% + 380px));
    }
    93.5% {
        transform: translateY(calc(-100% + 380px));
        opacity: 1;
    }
    94% {
        opacity: 0;
    }
    99% {
        transform: translateY(0);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-agent:hover .agent-chat-content {
    animation-play-state: paused;
}

.hero-agent:hover::before,
.hero-agent:hover::after {
    animation-play-state: paused;
}

/* Glitch overlay for transition */
.agent-chat-scroll::before,
.agent-chat-scroll::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 10;
}

.agent-chat-scroll::before {
    top: 0;
    background: linear-gradient(180deg, #0d0d0d 0%, transparent 100%);
}

.agent-chat-scroll::after {
    bottom: 0;
    background: linear-gradient(0deg, #0d0d0d 0%, transparent 100%);
}

/* Glitch effect pseudo-element */
.agent-chat-scroll {
    position: relative;
}

.hero-agent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    animation: glitch-overlay 20s linear infinite;
    background:
        linear-gradient(90deg, transparent 0%, transparent 30%, rgba(34, 197, 94, 0.1) 30%, rgba(34, 197, 94, 0.1) 32%, transparent 32%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 65%, rgba(239, 68, 68, 0.1) 65%, rgba(239, 68, 68, 0.1) 68%, transparent 68%, transparent 100%);
}

@keyframes glitch-overlay {
    0%, 92% {
        opacity: 0;
    }
    93% {
        opacity: 1;
        transform: translateX(-5px);
        background-position: 0 0, 0 0;
    }
    93.5% {
        opacity: 1;
        transform: translateX(8px) skewX(-2deg);
        background-position: 10px 0, -15px 0;
    }
    94% {
        opacity: 1;
        transform: translateX(-3px) skewX(1deg);
        background-position: -5px 0, 8px 0;
    }
    94.5% {
        opacity: 1;
        transform: translateX(5px);
        clip-path: polygon(0 15%, 100% 15%, 100% 20%, 0 20%, 0 45%, 100% 45%, 100% 55%, 0 55%, 0 75%, 100% 75%, 100% 85%, 0 85%);
    }
    95% {
        opacity: 1;
        transform: translateX(-2px) skewX(-1deg);
        clip-path: polygon(0 0%, 100% 0%, 100% 35%, 0 35%, 0 60%, 100% 60%, 100% 100%, 0 100%);
    }
    95.5% {
        opacity: 0;
        transform: translateX(0);
        clip-path: none;
    }
    100% {
        opacity: 0;
    }
}

/* Secondary glitch blocks */
.hero-agent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 21;
    opacity: 0;
    animation: glitch-blocks 20s linear infinite;
    background: var(--bg-color);
}

@keyframes glitch-blocks {
    0%, 92.5% {
        opacity: 0;
        clip-path: none;
    }
    93% {
        opacity: 0.9;
        clip-path: polygon(0 20%, 45% 20%, 45% 25%, 0 25%);
    }
    93.3% {
        opacity: 0.9;
        clip-path: polygon(55% 40%, 100% 40%, 100% 48%, 55% 48%);
    }
    93.6% {
        opacity: 0.9;
        clip-path: polygon(10% 65%, 70% 65%, 70% 70%, 10% 70%);
    }
    94% {
        opacity: 0.9;
        clip-path: polygon(30% 10%, 90% 10%, 90% 18%, 30% 18%, 30% 50%, 60% 50%, 60% 55%, 30% 55%);
    }
    94.5% {
        opacity: 0.9;
        clip-path: polygon(0 80%, 50% 80%, 50% 88%, 0 88%);
    }
    95% {
        opacity: 0;
        clip-path: none;
    }
    100% {
        opacity: 0;
    }
}

/* Chat Messages */
.chat-msg {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chat-label {
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-user {
    align-self: flex-end;
    max-width: 85%;
}

.chat-user .chat-label {
    color: var(--text-secondary);
    text-align: right;
}

.chat-user p {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 0.85rem;
    border-radius: 12px 12px 4px 12px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.chat-agent {
    align-self: flex-start;
    max-width: 95%;
}

.chat-agent .chat-label {
    color: var(--accent-color);
}

/* Agent Process Log */
.agent-process-log {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-secondary);
    max-height: 100px;
    overflow: hidden;
}

.agent-process-log .process-line {
    opacity: 0.7;
    line-height: 1.5;
}

.agent-process-log .process-line:last-child {
    color: var(--accent-color);
    opacity: 1;
}

/* Agent Answer */
.agent-answer {
    background: rgba(34, 197, 94, 0.03);
    border-left: 2px solid var(--accent-color);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    line-height: 1.6;
}

.agent-answer p {
    margin: 0 0 0.6rem;
    color: var(--text-primary);
}

.agent-answer p:last-child {
    margin-bottom: 0;
}

.agent-answer ul,
.agent-answer ol {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.agent-answer li {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.agent-answer code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    color: var(--accent-color);
}

.agent-answer .hl-metric {
    color: var(--accent-color);
    font-weight: bold;
}

.agent-answer .hl-down {
    color: var(--error-color);
    font-size: 0.75rem;
}

.agent-answer .hl-ctr {
    color: #fbbf24;
}

.agent-answer .hl-imp {
    color: #a78bfa;
}

.agent-answer .hl-keyword {
    color: #60a5fa;
}

.agent-confidence {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Agent Task List */
.agent-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.6rem 0;
}

.agent-task {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    font-size: 0.75rem;
}

.agent-task.high {
    border-color: rgba(239, 68, 68, 0.3);
}

.agent-task.medium {
    border-color: rgba(245, 158, 11, 0.3);
}

.task-priority {
    font-size: 0.55rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.agent-task.high .task-priority {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.agent-task.medium .task-priority {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.task-text {
    color: var(--text-primary);
}

/* Agent Input Bar */
.agent-input-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.input-prompt {
    color: var(--accent-color);
    font-weight: bold;
}

.input-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.6;
}

.input-cursor {
    width: 8px;
    height: 16px;
    background: var(--accent-color);
    animation: cursor-blink 1s step-end infinite;
}

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

/* Sales Letter */
.sales-letter {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.letter-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.letter-from {
    font-weight: bold;
    font-size: 1.1rem;
}

.letter-re {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.letter-body {
    font-size: 1.05rem;
    line-height: 1.9;
}

.letter-body p {
    margin-bottom: 1.25rem;
}

.letter-callout {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px dashed var(--accent-color);
    background: rgba(34, 197, 94, 0.05);
}

/* Sales Sections */
.sales-section {
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sales-section-dark {
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.8), var(--bg-color));
    max-width: none;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sales-section-dark > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* Problems Grid */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    position: relative;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--error-color);
}

.problem-header {
    margin-bottom: 1rem;
}

.problem-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--error-color);
    display: block;
    margin-bottom: 0.5rem;
}

.problem-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.problem-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Problem Card as Link */
a.problem-card-link {
    text-decoration: none;
    display: block;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

a.problem-card-link:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

a.problem-card-link::before {
    background: var(--accent-color);
}

a.problem-card-link .problem-label {
    color: var(--accent-color);
}

.card-cta {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.solution-block {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 1.25rem;
    border-radius: 4px;
}

.solution-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.solution-block h4 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.solution-block p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Feature Split */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-content h2 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
}

.feature-question {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.feature-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.feature-content strong {
    color: var(--text-primary);
}

.feature-list {
    margin: 1.5rem 0;
    padding-left: 1.25rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Mock Interface */
.mock-interface {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.mock-header {
    background: var(--surface-color);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
}

.mock-body {
    padding: 1.5rem;
}

.cannibal-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cannibal-query {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.cannibal-urls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cannibal-url {
    padding: 0.5rem 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.cannibal-url.conflict {
    border-color: var(--error-color);
    color: var(--error-color);
}

.cannibal-vs {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.cannibal-action {
    color: var(--accent-color);
    font-size: 0.9rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--accent-color);
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.process-step h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.process-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    padding-top: 2rem;
}

/* Sales Quote */
.sales-quote {
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--accent-color);
    background: rgba(34, 197, 94, 0.05);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
}

/* Comparison Table */
.comparison-table-wrap {
    overflow-x: auto;
}

.sales-comparison {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.sales-comparison th,
.sales-comparison td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.sales-comparison th {
    background: var(--bg-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: normal;
}

.sales-comparison th.highlight-col {
    color: var(--accent-color);
}

.sales-comparison td {
    color: var(--text-secondary);
}

.sales-comparison td.highlight-col {
    background: rgba(34, 197, 94, 0.05);
    color: var(--accent-color);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-primary);
    background: var(--surface-color);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent-color);
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1.25rem 1.5rem;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Final CTA */
.sales-cta {
    padding: 5rem 3rem;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.08) 0%, var(--bg-color) 70%);
    border-top: 1px solid var(--accent-color);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    margin: 0 0 1.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cta-content .btn {
    margin-top: 1.5rem;
}

.cta-content .cta-note {
    display: block;
    margin-top: 1rem;
}

/* CTA Trust Signals */
.cta-trust-signals {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.trust-item::before {
    content: '';
}

/* Pricing Preview */
.pricing-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-preview-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-preview-card.pricing-popular {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.pricing-info {
    margin-bottom: 0.75rem;
}

.pricing-cost {
    margin-top: auto;
}

.pricing-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-color);
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0;
}

.pricing-tier {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pricing-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.pricing-cta-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Comparison - Desktop shows table, Mobile shows cards */
.comparison-mobile {
    display: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 1px solid var(--accent-color);
    padding: 1rem;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.sticky-mobile-cta .btn {
    width: 100%;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sales-hero {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 3rem;
    }

    .sales-hero-title {
        font-size: 2.5rem;
    }

    .sales-hero-visual {
        order: -1;
    }

    .hero-agent-wrapper {
        max-width: 100%;
    }

    .hero-agent {
        transform: none;
    }

    .feature-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-visual {
        order: -1;
    }
}

@media (max-width: 480px) {
    .agent-chat-scroll {
        height: 320px;
    }

    .agent-answer {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }

    .agent-process-log {
        font-size: 0.6rem;
        padding: 0.5rem 0.6rem;
    }

    .chat-user p {
        font-size: 0.8rem;
    }

    .agent-task {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .sales-nav {
        padding: 1rem 1.5rem;
    }

    .sales-hero {
        padding: 2rem 1.5rem;
    }

    .sales-hero-title {
        font-size: 2rem;
    }

    .sales-hero-subtitle {
        font-size: 1.2rem;
    }

    .sales-section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .process-step {
        max-width: none;
        width: 100%;
    }

    .sales-cta {
        padding: 3rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    /* Pricing responsive - 2x2 grid on tablet */
    .pricing-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pricing-preview-card {
        padding: 1.25rem 1rem;
    }

    .pricing-amount {
        font-size: 1.75rem;
    }

    .pricing-desc {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .pricing-cta-row {
        flex-direction: column;
        align-items: center;
    }

    .pricing-cta-row .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Trust signals responsive */
    .cta-trust-signals {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    /* Sticky mobile CTA */
    .sticky-mobile-cta {
        display: block;
    }

    /* Add padding to body to account for sticky CTA */
    .sales-page-wrapper {
        padding-bottom: 80px;
    }

    /* Ensure footer clears sticky */
    footer {
        margin-bottom: 70px;
    }
}

@media (max-width: 480px) {
    /* Global mobile constraints */
    .sales-page-wrapper,
    .sales-section,
    .sales-hero {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Single column pricing - compact horizontal cards */
    .pricing-preview-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .pricing-preview-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        text-align: left;
    }

    .pricing-preview-card.pricing-popular {
        border-width: 2px;
    }

    .pricing-info {
        flex: 1;
        margin-bottom: 0;
    }

    .pricing-cost {
        text-align: right;
        margin-top: 0;
        flex-shrink: 0;
    }

    .pricing-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.35rem;
        margin-left: 0.35rem;
    }

    .pricing-tier {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        letter-spacing: 0;
        text-transform: none;
    }

    .pricing-amount {
        font-size: 1.2rem;
    }

    .pricing-period {
        font-size: 0.65rem;
        margin: 0;
    }

    .pricing-desc {
        display: none;
    }

    /* Hero improvements for mobile */
    .sales-hero-title {
        font-size: 1.6rem !important;
        line-height: 1.2;
    }

    .sales-hero-subtitle {
        font-size: 0.95rem !important;
    }

    .sales-hero-lead {
        font-size: 0.85rem !important;
    }

    /* Trust signals */
    .cta-trust-signals {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.35rem 0.75rem !important;
    }

    .trust-item {
        font-size: 0.7rem !important;
    }

    /* Sticky CTA */
    .sticky-mobile-cta {
        padding: 0.75rem 1rem !important;
        background: rgba(12, 12, 12, 0.98) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .sticky-mobile-cta .btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.85rem !important;
    }

    /* Section titles */
    .section-title {
        font-size: 1.2rem !important;
    }

    .section-subtitle {
        font-size: 0.85rem !important;
    }

    /* Problem/detection cards */
    .problems-grid {
        gap: 0.75rem !important;
    }

    .problem-card {
        padding: 1rem !important;
    }

    .problem-header h3 {
        font-size: 1rem !important;
    }

    .problem-card > p,
    .card-cta {
        font-size: 0.8rem !important;
    }

    /* Final CTA section */
    .sales-cta {
        padding: 2rem 1rem !important;
    }

    .cta-content h2 {
        font-size: 1.15rem !important;
    }

    .cta-content p {
        font-size: 0.85rem !important;
    }

    /* Comparison - hide table, show cards on mobile */
    .comparison-desktop {
        display: none !important;
    }

    .comparison-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 0.75rem;
    }

    .comparison-card {
        background: var(--surface-color);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        padding: 1rem;
    }

    .comparison-feature {
        font-weight: bold;
        font-size: 0.9rem;
        color: var(--text-primary);
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .comparison-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.35rem 0;
        font-size: 0.8rem;
    }

    .comparison-label {
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .comparison-value {
        text-align: right;
    }

    .comparison-old {
        color: var(--text-secondary);
    }

    .comparison-new {
        color: var(--accent-color);
        font-weight: 600;
    }
}
