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

:root {
    --bg: #0d1117;
    --bg-secondary: #161b22;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --border: #30363d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

/* Navigation */
nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn.primary {
    background: var(--accent);
    color: var(--bg);
}

.btn.primary:hover {
    background: var(--accent-hover);
}

.btn.secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn.secondary:hover {
    border-color: var(--text-muted);
}

/* Service cards */
h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

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

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.card h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
}

/* Why us */
.why-us ul {
    list-style: none;
}

.why-us li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.why-us li:last-child {
    border-bottom: none;
}

/* Page content */
.page-content {
    max-width: 800px;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.page-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.page-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.page-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Newsletter form */
.newsletter-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.newsletter-cta .btn {
    display: inline-block;
}

.newsletter-form {
    max-width: 480px;
    margin: 1.5rem auto 0;
}

.form-row {
    display: flex;
    gap: 0.5rem;
}

.form-row input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.form-row input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.form-row button {
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.form-row button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.form-message.success {
    color: #3fb950;
}

.form-message.error {
    color: #f85149;
}

/* Demo page */
.demo-hero {
    text-align: center;
    padding: 4rem 0 2rem;
}

.demo-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.demo-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.demo-showcase {
    margin-bottom: 3rem;
}

.demo-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.how-it-works {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.how-it-works h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.step h4 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.demo-features {
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Demo Gallery */
.demo-gallery {
    margin-bottom: 3rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.demo-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.demo-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--text);
}

.demo-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.demo-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(88, 166, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.demo-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.demo-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1rem;
}

.demo-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.demo-card:hover .demo-card-cta {
    color: var(--accent-hover);
}

.demo-how-it-works {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.demo-how-it-works h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Demo Page Styles */
.demo-page-header {
    padding: 3rem 0 1rem;
}

.demo-page-header .demo-card-tag {
    margin-bottom: 1rem;
}

.demo-page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.demo-page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.demo-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.demo-back-link:hover {
    color: var(--text);
}

/* Demo Form */
.demo-form-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.demo-form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.demo-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.demo-field input,
.demo-field select,
.demo-field textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

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

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

.demo-field select {
    cursor: pointer;
}

.demo-submit {
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
}

.demo-submit:hover {
    background: var(--accent-hover);
}

.demo-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Demo Results */
.demo-result-section {
    display: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.demo-result-section.visible {
    display: block;
}

.demo-result-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.demo-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    color: var(--text-muted);
}

.demo-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: demo-spin 0.8s linear infinite;
}

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

.demo-error {
    color: #f85149;
    padding: 1rem;
    background: rgba(248, 81, 73, 0.1);
    border-radius: 8px;
}

/* Score badge for Lead Scorer */
.score-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.score-badge.hot {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.score-badge.warm {
    background: rgba(210, 153, 34, 0.15);
    color: #d29922;
}

.score-badge.cold {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
}

/* Platform cards for Social Media */
.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.platform-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.platform-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.platform-card-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    white-space: pre-wrap;
}

.platform-card-hashtags {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent);
}

.copy-btn {
    margin-top: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Review response result */
.review-result {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.sentiment-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sentiment-badge.positive {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
}

.sentiment-badge.negative {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.sentiment-badge.neutral {
    background: rgba(139, 148, 158, 0.15);
    color: #8b949e;
}

.sentiment-badge.mixed {
    background: rgba(210, 153, 34, 0.15);
    color: #d29922;
}

.review-response-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
}

/* Demo page CTA */
.demo-page-cta {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.demo-page-cta h2 {
    margin-bottom: 0.75rem;
}

.demo-page-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }
    .platform-cards {
        grid-template-columns: 1fr;
    }
}

/* Edition cards */
.edition-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edition-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    color: var(--text);
    transition: border-color 0.2s;
}

.edition-card:hover {
    border-color: var(--accent);
    color: var(--text);
}

.edition-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.edition-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.edition-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.edition-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.edition-type {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-build {
    background: rgba(56, 139, 253, 0.15);
    color: #58a6ff;
}

.type-stack {
    background: rgba(163, 113, 247, 0.15);
    color: #a371f7;
}

.type-signal {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
}

.edition-subscribe {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.edition-subscribe p {
    margin-bottom: 0;
}

/* Code blocks */
.page-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.page-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
}

.page-content pre code {
    color: var(--text);
}

.page-content p code {
    background: var(--bg-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--text);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.page-content th,
.page-content td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

.page-content th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text);
}

.page-content td {
    color: var(--text-muted);
}

/* Responsive */
/* Registration Gate Modal */
.register-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 4, 8, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: registerFadeIn 0.3s ease-out;
}

@keyframes registerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes registerSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.register-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 0 0 1px rgba(88, 166, 255, 0.06),
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
    animation: registerSlideUp 0.35s ease-out;
}

.register-modal h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-align: center;
    color: var(--text);
    letter-spacing: -0.01em;
}

.register-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.register-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.register-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.register-field .required {
    color: var(--accent);
}

.register-field input {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.register-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

.register-field input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.register-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.register-checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.register-checkbox:hover {
    color: var(--text);
    background: rgba(88, 166, 255, 0.04);
}

.register-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.register-checkbox input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.register-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.register-error {
    display: none;
    color: #f85149;
    font-size: 0.82rem;
    padding: 0.6rem 0.8rem;
    background: rgba(248, 81, 73, 0.08);
    border: 1px solid rgba(248, 81, 73, 0.15);
    border-radius: 8px;
    line-height: 1.4;
}

.register-submit {
    padding: 0.7rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    margin-top: 0.35rem;
    letter-spacing: 0.01em;
}

.register-submit:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
}

.register-submit:active {
    transform: scale(0.985);
}

.register-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .register-modal {
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 14px;
        max-height: 95vh;
    }

    .register-modal h2 {
        font-size: 1.25rem;
    }

    .register-checkboxes {
        grid-template-columns: 1fr;
    }
}

/* Chat Widget */
#tas-widget-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9000;
    font-family: inherit;
}

#tas-chat-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #58a6ff 0%, #388bfd 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 14px rgba(88, 166, 255, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#tas-chat-button:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 24px rgba(88, 166, 255, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.25);
}

#tas-chat-button:active {
    transform: scale(1.02);
}

#tas-chat-button svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#tas-chat-window {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(88, 166, 255, 0.05);
}

#tas-chat-window.open {
    display: flex;
    animation: chatSlideIn 0.25s ease-out;
}

#tas-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #58a6ff 0%, #388bfd 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

#tas-chat-header .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #56d364;
    margin-right: 0.5rem;
    box-shadow: 0 0 6px rgba(86, 211, 100, 0.5);
    animation: statusPulse 2.5s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

#tas-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    transition: background 0.15s;
}

#tas-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

#tas-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 280px;
    max-height: 360px;
    background: var(--bg);
}

#tas-messages::-webkit-scrollbar {
    width: 5px;
}

#tas-messages::-webkit-scrollbar-track {
    background: transparent;
}

#tas-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.tas-message {
    display: flex;
    max-width: 85%;
    animation: msgFadeIn 0.2s ease-out;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tas-message.bot {
    align-self: flex-start;
}

.tas-message.user {
    align-self: flex-end;
}

.tas-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.55;
}

.tas-message.bot .tas-bubble {
    background: var(--bg-secondary);
    color: var(--text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.tas-message.user .tas-bubble {
    background: linear-gradient(135deg, #58a6ff 0%, #388bfd 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.tas-typing {
    display: flex;
    gap: 5px;
    padding: 0.7rem 0.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}

.tas-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: tas-bounce 1.4s infinite ease-in-out;
}

.tas-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.tas-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes tas-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

#tas-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

#tas-input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#tas-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

#tas-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

#tas-send {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #58a6ff 0%, #388bfd 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

#tas-send:hover {
    transform: scale(1.06);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.3);
}

#tas-send:active {
    transform: scale(0.96);
}

#tas-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#tas-send svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

#tas-powered {
    text-align: center;
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0.35rem;
    border-top: 1px solid var(--border);
    opacity: 0.7;
}

@media (max-width: 768px) {
    #tas-chat-window {
        width: calc(100vw - 2rem);
        right: -0.5rem;
        bottom: 70px;
        max-height: 70vh;
    }

    #tas-chat-button {
        width: 52px;
        height: 52px;
    }

    #tas-chat-button svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }
}
