:root {
    --bg: #06080f;
    --bg2: #0c1120;
    --surface: rgba(255, 255, 255, .04);
    --border: rgba(255, 255, 255, .08);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #0ea5e9;
    --accent: #8b5cf6;
    --grad: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    --success: #10b981;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', system-ui, sans-serif
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg2: #ffffff;
    --surface: rgba(0, 0, 0, .03);
    --border: rgba(0, 0, 0, .08);
    --text: #1e293b;
    --muted: #64748b
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s
}

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

img {
    max-width: 100%;
    display: block
}

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

.eyebrow {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px
}

.section {
    padding: 100px 0
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px
}

.section-heading h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: all .25s;
    font-family: var(--font);
    text-decoration: none
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 20px rgba(14, 165, 233, .3)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, .4);
    color: #fff
}

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

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg)
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all .3s;
    background: transparent
}

.site-header.scrolled {
    background: rgba(6, 8, 15, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, .92)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text)
}

.brand-logo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    line-height: 1.2
}

.brand-line {
    font-size: .7rem;
    color: var(--muted);
    display: block
}

.site-nav {
    display: flex;
    gap: 28px
}

.site-nav a {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px
}

.text-link {
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted)
}

.text-link:hover {
    color: var(--primary)
}

.premium-contact-link {
    color: var(--success)
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s
}

/* Hero */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center
}

.hero-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, .08);
    animation: orbit 30s linear infinite
}

.orbit-one {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px
}

.orbit-two {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation-duration: 22s;
    animation-direction: reverse
}

@keyframes orbit {
    to {
        transform: rotate(360deg)
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center
}

.hero-copy h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px
}

.hero-lede {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 520px
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px
}

.hero-proof {
    display: flex;
    gap: 24px;
    flex-wrap: wrap
}

.hero-proof span {
    font-size: .8rem;
    color: var(--muted);
    padding-left: 16px;
    border-left: 2px solid var(--primary);
    line-height: 1.3
}

/* Dashboard Preview */
.hero-stage {
    position: relative
}

.floating-note {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(12, 17, 32, .9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: .82rem;
    font-weight: 500;
    animation: float 4s ease-in-out infinite
}

.floating-note svg {
    width: 18px;
    height: 18px;
    color: var(--primary)
}

.note-top {
    top: -10px;
    right: 20px
}

.note-bottom {
    bottom: 40px;
    left: -20px;
    animation-delay: 2s
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.dashboard-preview {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden
}

.preview-topbar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border)
}

.preview-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border)
}

.preview-topbar span:first-child {
    background: #ef4444
}

.preview-topbar span:nth-child(2) {
    background: #f59e0b
}

.preview-topbar span:last-child {
    background: #10b981
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border)
}

.preview-header p {
    font-size: .75rem;
    color: var(--muted)
}

.preview-header strong {
    font-size: .85rem
}

.status-pill {
    font-size: .7rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, .12);
    color: var(--success);
    font-weight: 600
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border)
}

.metric-card {
    background: var(--bg2);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.metric-card svg {
    width: 18px;
    height: 18px;
    color: var(--muted)
}

.metric-card span {
    font-size: .7rem;
    color: var(--muted)
}

.metric-card strong {
    font-size: 1.2rem;
    font-weight: 700
}

.metric-card small {
    font-size: .65rem;
    color: var(--muted)
}

.metric-card small.positive {
    color: var(--success)
}

.metric-card.highlight {
    background: rgba(14, 165, 233, .04)
}

.growth-insight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid var(--border)
}

.growth-insight span {
    font-size: .7rem;
    color: var(--muted)
}

.growth-insight strong {
    font-size: 1rem
}

.growth-insight em {
    font-size: .7rem;
    color: var(--muted);
    font-style: normal;
    margin-left: auto
}

.growth-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px
}

.growth-bars span {
    width: 6px;
    border-radius: 2px;
    background: var(--grad)
}

.queue-panel {
    border-top: 1px solid var(--border);
    padding: 12px 20px
}

.queue-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .03)
}

.queue-row:last-child {
    border: none
}

.queue-row>span:first-child {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0
}

.queue-row strong {
    font-size: .8rem;
    display: block
}

.queue-row small {
    font-size: .68rem;
    color: var(--muted)
}

.queue-row em {
    font-size: .7rem;
    font-style: normal;
    margin-left: auto;
    color: var(--muted);
    font-weight: 500
}

.queue-row.active>span:first-child {
    background: rgba(14, 165, 233, .15);
    color: var(--primary)
}

.queue-row.active em {
    color: var(--success)
}

/* Trust Strip */
.trust-strip {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2)
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center
}

.trust-grid strong {
    display: block;
    font-size: .95rem;
    margin-bottom: 4px
}

.trust-grid span {
    font-size: .82rem;
    color: var(--muted)
}

/* Pain Points — Premium 6-card grid */
.pain-section {
    background: var(--bg2)
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.problem-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all .35s;
    overflow: hidden
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
    opacity: 0;
    transition: opacity .35s
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, .2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3)
}

.problem-card:hover::before {
    opacity: 1
}

.problem-card .hook {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(139, 92, 246, .1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: .02em
}

.problem-card svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    margin-bottom: 14px
}

.problem-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3
}

.problem-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 8px
}

.problem-card p strong {
    color: var(--text);
    font-weight: 600
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all .3s
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, .2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2)
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(14, 165, 233, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary)
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px
}

.service-card p {
    font-size: .88rem;
    color: var(--muted)
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start
}

.why-grid h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2
}

.why-grid>div:first-child p {
    color: var(--muted);
    margin-bottom: 24px
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.why-list>div {
    display: flex;
    gap: 16px;
    align-items: flex-start
}

.why-list svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px
}

.why-list strong {
    display: block;
    margin-bottom: 4px;
    font-size: .95rem
}

.why-list span {
    font-size: .85rem;
    color: var(--muted)
}

/* AI Preview */
.ai-preview-section {
    background: var(--bg2)
}

.ai-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start
}

.availability-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px
}

.availability-actions span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--muted)
}

.availability-actions svg {
    width: 18px;
    height: 18px;
    color: var(--primary)
}

.availability-preview {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.availability-card,
.chat-preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden
}

.availability-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border)
}

.doctor-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .03)
}

.doctor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(14, 165, 233, .15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0
}

.doctor-avatar.teal {
    background: rgba(20, 184, 166, .15);
    color: #14b8a6
}

.doctor-status-row strong {
    font-size: .85rem;
    display: block
}

.doctor-status-row small {
    font-size: .72rem;
    color: var(--muted)
}

.doctor-status-row em {
    font-style: normal;
    font-size: .78rem;
    color: var(--success);
    margin-left: auto;
    font-weight: 500
}

.timing-list {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.timing-list span {
    font-size: .78rem;
    color: var(--muted)
}

.chat-preview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border)
}

.chat-preview-head svg {
    width: 20px;
    height: 20px;
    color: var(--primary)
}

.chat-preview-head strong {
    font-size: .9rem
}

.preview-message {
    padding: 10px 16px;
    margin: 8px 12px;
    border-radius: 12px;
    font-size: .82rem;
    max-width: 80%;
    line-height: 1.5
}

.preview-message.user {
    background: rgba(14, 165, 233, .1);
    color: var(--primary);
    margin-left: auto;
    border-bottom-right-radius: 4px
}

.preview-message.bot {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px
}

/* Pricing */
.pricing-section {
    background: var(--bg)
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all .3s;
    position: relative
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3)
}

.price-card.featured {
    border-color: rgba(14, 165, 233, .3);
    background: linear-gradient(145deg, rgba(14, 165, 233, .06), rgba(139, 92, 246, .04))
}

.price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em
}

.plan-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted)
}

.price-card svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin: 12px auto
}

.price-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.maintenance {
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 20px
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 24px
}

.price-card li {
    font-size: .85rem;
    color: var(--muted);
    padding: 6px 0 6px 20px;
    position: relative
}

.price-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: .8rem
}

.price-card .btn {
    width: 100%
}

/* Contact */
.contact-section {
    background: var(--bg2)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start
}

.contact-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2
}

.contact-copy>p {
    color: var(--muted);
    margin-bottom: 24px
}

.integration-box {
    display: none
}

.lead-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px
}

.lead-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 16px
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-size: .9rem;
    font-family: var(--font);
    transition: border-color .2s
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--primary)
}

.lead-form textarea {
    resize: vertical
}

.lead-form .btn {
    width: 100%;
    margin-top: 8px
}

.form-note {
    font-size: .78rem;
    color: var(--muted);
    text-align: center;
    margin-top: 12px
}

.form-success {
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .2);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--success);
    text-align: center;
    font-weight: 500;
    margin-bottom: 16px
}

/* Footer */
.home-footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    background: var(--bg)
}

.footer-premium-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px
}

.footer-about p {
    font-size: .85rem;
    color: var(--muted);
    margin-top: 16px;
    max-width: 320px
}

.footer-brand {
    margin-bottom: 8px
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer-col strong {
    font-size: .9rem;
    margin-bottom: 4px
}

.footer-col a {
    font-size: .85rem;
    color: var(--muted)
}

.footer-col a:hover {
    color: var(--primary)
}

.footer-bottom-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    font-size: .78rem;
    color: var(--muted)
}

/* WhatsApp FAB */
.whatsapp-launcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 28px;
    font-weight: 600;
    font-size: .85rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
    transition: all .25s
}

.whatsapp-launcher:hover {
    transform: scale(1.05);
    color: #fff;
    box-shadow: 0 6px 28px rgba(37, 211, 102, .4)
}

.whatsapp-launcher svg {
    width: 22px;
    height: 22px;
    stroke: #fff
}

/* AI Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 95
}

.ai-chat-launcher {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--grad);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(14, 165, 233, .3);
    transition: all .25s;
    position: relative
}

.ai-chat-launcher svg {
    width: 24px;
    height: 24px;
    stroke: #fff
}

.ai-chat-launcher span {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.ai-chat-launcher:hover {
    transform: scale(1.08)
}

.ai-chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4)
}

.ai-chat-panel.open {
    display: flex
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border)
}

.ai-chat-header strong {
    font-size: .9rem;
    display: block
}

.ai-chat-header span {
    font-size: .72rem;
    color: var(--muted);
    display: block;
    margin-top: 2px
}

.ai-chat-header button {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px
}

.ai-message {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .82rem;
    max-width: 85%;
    line-height: 1.5
}

.ai-message.bot {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    align-self: flex-start
}

.ai-message.user {
    background: rgba(14, 165, 233, .1);
    color: var(--primary);
    border-bottom-right-radius: 4px;
    align-self: flex-end
}

.ai-quick-questions {
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid var(--border)
}

.ai-quick-questions button {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 5px 12px;
    font-size: .72rem;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font);
    transition: all .2s
}

.ai-quick-questions button:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.ai-chat-form {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid var(--border)
}

.ai-chat-form input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text);
    font-size: .85rem;
    font-family: var(--font)
}

.ai-chat-form input:focus {
    outline: none;
    border-color: var(--primary)
}

.ai-chat-form button {
    background: var(--grad);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: .82rem;
    font-family: var(--font)
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all .6s cubic-bezier(.22, 1, .36, 1)
}

[data-animate].visible {
    opacity: 1;
    transform: none
}

/* Responsive */
@media(max-width:1024px) {

    .hero-grid,
    .ai-preview-grid,
    .contact-grid,
    .why-grid {
        grid-template-columns: 1fr
    }

    .solution-grid,
    .services-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-premium-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:768px) {

    .site-nav,
    .header-actions .text-link {
        display: none
    }

    .menu-toggle {
        display: flex
    }

    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 8, 15, .96);
        backdrop-filter: blur(16px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border)
    }

    .solution-grid,
    .services-grid,
    .pricing-grid,
    .trust-grid {
        grid-template-columns: 1fr
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto
    }

    .footer-premium-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom-line {
        flex-direction: column;
        gap: 8px;
        text-align: center
    }

    .ai-chat-panel {
        width: calc(100vw - 48px);
        right: -12px
    }

    .whatsapp-launcher span {
        display: none
    }
}

/* Theme Toggle */
.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    width: 36px;
    height: 36px
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.theme-toggle svg {
    width: 18px;
    height: 18px
}

.theme-toggle .icon-sun {
    display: none
}

.theme-toggle .icon-moon {
    display: block
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none
}

/* Light mode overrides for hardcoded colors */
[data-theme="light"] .floating-note {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(0, 0, 0, .08)
}

[data-theme="light"] .dashboard-preview {
    background: #fff;
    border-color: rgba(0, 0, 0, .1)
}

[data-theme="light"] .metric-card {
    background: #fff
}

[data-theme="light"] .metric-card.highlight {
    background: rgba(14, 165, 233, .04)
}

[data-theme="light"] .metric-grid {
    background: rgba(0, 0, 0, .06)
}

[data-theme="light"] .queue-row {
    border-color: rgba(0, 0, 0, .05)
}

[data-theme="light"] .queue-row.active>span:first-child {
    background: rgba(14, 165, 233, .1)
}

[data-theme="light"] .problem-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .005));
    border-color: rgba(0, 0, 0, .08)
}

[data-theme="light"] .problem-card:hover {
    border-color: rgba(14, 165, 233, .25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08)
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08)
}

[data-theme="light"] .price-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08)
}

[data-theme="light"] .price-card.featured {
    background: linear-gradient(145deg, rgba(14, 165, 233, .04), rgba(139, 92, 246, .03));
    border-color: rgba(14, 165, 233, .2)
}

[data-theme="light"] .lead-form {
    background: #fff
}

[data-theme="light"] .lead-form input,
[data-theme="light"] .lead-form select,
[data-theme="light"] .lead-form textarea {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, .1)
}

[data-theme="light"] .ai-chat-panel {
    background: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .12)
}

[data-theme="light"] .ai-message.bot {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, .06)
}

[data-theme="light"] .ai-chat-form input {
    background: #f1f5f9
}

[data-theme="light"] .ai-quick-questions button {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, .06)
}

[data-theme="light"] .noscript-bar {
    background: #e2e8f0;
    color: #1e293b
}

@media(max-width:768px) {
    [data-theme="light"] .site-nav.open {
        background: rgba(255, 255, 255, .96)
    }
}