/* نجوم المعرفة - Modern RTL Styles */

:root {
    --bg: #0b1220;
    --surface: #0f1b33;
    --card: rgba(255,255,255,.06);
    --card-strong: rgba(255,255,255,.10);
    --text: #eaf0ff;
    --muted: rgba(234,240,255,.78);
    --muted2: rgba(234,240,255,.62);
    --primary: #22c55e;
    --primary-2: #0ea5e9;
    --warn: #f59e0b;
    --border: rgba(234,240,255,.12);
    --shadow: 0 16px 48px rgba(0,0,0,.35);
    --radius: 18px;
    --radius-lg: 22px;
    --container: 1120px;
    --font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    --focus: 0 0 0 4px rgba(14,165,233,.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: radial-gradient(1100px 700px at 20% -10%, rgba(14,165,233,.22), transparent 55%),
                radial-gradient(900px 600px at 90% 10%, rgba(34,197,94,.18), transparent 50%),
                linear-gradient(180deg, #050916 0%, var(--bg) 40%, #060a14 100%);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font-family: inherit;
}

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

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    inset-block-start: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,.9);
    color: #111;
    border-radius: 12px;
    transform: translateY(-200%);
    transition: transform .2s ease;
    z-index: 9999;
}

.skip-link:focus {
    transform: translateY(0);
    outline: none;
    box-shadow: var(--focus);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(5,9,22,.65);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14,165,233,.22), rgba(34,197,94,.18));
    border: 1px solid rgba(234,240,255,.16);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    display: grid;
    place-items: center;
}

.brand-mark svg {
    width: 22px;
    height: 22px;
}

.brand-mark svg path {
    stroke: rgba(234,240,255,.9);
    stroke-width: 1.6;
    fill: rgba(234,240,255,.10);
}

.brand-text strong {
    display: block;
    font-weight: 800;
    letter-spacing: .2px;
}

.brand-text small {
    display: block;
    font-size: 12px;
    color: var(--muted2);
    margin-top: -2px;
}

.nav {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 14px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.burger {
    width: 18px;
    height: 2px;
    background: var(--text);
    display: block;
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.burger::before {
    top: -6px;
}

.burger::after {
    top: 6px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,.06);
    border-color: rgba(234,240,255,.12);
    transform: translateY(-1px);
}

.header-ctas {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Buttons */
.btn {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.06);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.085);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus {
    outline: none;
    box-shadow: var(--focus);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(14,165,233,.85));
    border-color: rgba(34,197,94,.45);
    box-shadow: 0 14px 40px rgba(14,165,233,.12);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(34,197,94,1), rgba(14,165,233,.95));
}

.btn-secondary {
    background: rgba(14,165,233,.12);
    border-color: rgba(14,165,233,.35);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(234,240,255,.14);
    color: var(--text);
}

.btn-lg {
    padding: 12px 16px;
    border-radius: 18px;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-icon svg path {
    stroke: rgba(255,255,255,.92);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
    border-top: 1px solid rgba(234,240,255,.06);
    border-bottom: 1px solid rgba(234,240,255,.06);
}

.section-head {
    text-align: center;
    margin-bottom: 26px;
}

.section-head.align-start {
    text-align: start;
}

.section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.2vw, 32px);
    letter-spacing: .2px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

/* Hero */
.hero {
    position: relative;
    padding: 80px 0 40px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 28px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(234,240,255,.12);
    color: var(--muted);
    margin-bottom: 12px;
}

.badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.2));
    box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.2;
}

.grad-text {
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 18px;
}

.hero-metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.metric {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(234,240,255,.10);
    min-width: 140px;
}

.metric strong {
    display: block;
    font-weight: 800;
    font-size: 18px;
}

.metric span {
    color: var(--muted2);
    font-size: 12px;
}

.hero-visual {
    position: relative;
    min-height: 420px;
}

.glass-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
    border: 1px solid rgba(234,240,255,.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 16px;
    overflow: hidden;
    animation: floaty 5.8s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(234,240,255,.10);
}

.pill {
    background: rgba(14,165,233,.12);
    border: 1px solid rgba(14,165,233,.22);
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.spark svg {
    width: 22px;
    height: 22px;
}

.spark svg path {
    stroke: rgba(234,240,255,.85);
    stroke-width: 1.4;
    fill: rgba(234,240,255,.08);
}

.steps {
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.steps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 16px;
    background: rgba(0,0,0,.12);
    border: 1px solid rgba(234,240,255,.10);
}

.ic {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(234,240,255,.12);
}

.ic svg {
    width: 20px;
    height: 20px;
}

.ic svg path {
    stroke: rgba(234,240,255,.92);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.steps strong {
    display: block;
    font-weight: 800;
}

.steps small {
    color: var(--muted2);
    display: block;
    margin-top: 2px;
}

.note {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(34,197,94,.10);
    border: 1px solid rgba(34,197,94,.22);
    color: var(--muted);
}

.note-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}

.blob {
    position: absolute;
    filter: blur(40px);
    opacity: .7;
    pointer-events: none;
}

.blob-a {
    width: 220px;
    height: 220px;
    background: rgba(14,165,233,.45);
    top: -30px;
    inset-inline-end: -40px;
    border-radius: 50%;
}

.blob-b {
    width: 240px;
    height: 240px;
    background: rgba(34,197,94,.35);
    bottom: -40px;
    inset-inline-start: -50px;
    border-radius: 50%;
}

.hero-wave {
    height: 1px;
    margin-top: 52px;
    background: linear-gradient(90deg, transparent, rgba(234,240,255,.16), transparent);
}

/* Cards */
.grid {
    display: grid;
    gap: 14px;
}

.cards {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
    border: 1px solid rgba(234,240,255,.12);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    transition: transform .18s ease, border-color .2s ease, background .2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(234,240,255,.18);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tag {
    font-size: 12px;
    color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(234,240,255,.14);
    padding: 6px 10px;
    border-radius: 999px;
}

.tag-warm {
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.22);
}

.tag-cool {
    background: rgba(14,165,233,.12);
    border-color: rgba(14,165,233,.22);
}

.tag-free {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.26);
}

.icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.12);
    border: 1px solid rgba(234,240,255,.10);
}

.icon svg {
    width: 20px;
    height: 20px;
}

.icon svg path {
    stroke: rgba(234,240,255,.92);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card p {
    margin: 0 0 10px;
    color: var(--muted);
}

.bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bullets li {
    position: relative;
    padding-inline-start: 22px;
    color: var(--muted2);
}

.bullets li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .55em;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(14,165,233,.45));
    box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-free {
    border-color: rgba(34,197,94,.28);
}

.card-free::after {
    content: "";
    position: absolute;
    inset: -60px -60px auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(34,197,94,.22), transparent 60%);
    transform: rotate(25deg);
}

/* Why */
.why-grid {
    grid-template-columns: repeat(2, 1fr);
}

.why-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(234,240,255,.10);
}

.why-ic {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(14,165,233,.12);
    border: 1px solid rgba(14,165,233,.20);
    flex: 0 0 auto;
}

.why-ic svg {
    width: 22px;
    height: 22px;
}

.why-ic svg path {
    stroke: rgba(234,240,255,.92);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-item h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.why-item p {
    margin: 0;
    color: var(--muted);
}

.cta-strip {
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(234,240,255,.12);
    background: linear-gradient(135deg, rgba(14,165,233,.16), rgba(34,197,94,.12));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cta-strip h3 {
    margin: 0 0 2px;
}

.cta-strip p {
    margin: 0;
    color: var(--muted);
}

.cta-strip-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Split */
.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: center;
}

/* KDP */
.kdp-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kdp-point {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(234,240,255,.10);
}

.kdp-ic {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(34,197,94,.10);
    border: 1px solid rgba(34,197,94,.18);
    flex: 0 0 auto;
}

.kdp-ic svg {
    width: 22px;
    height: 22px;
}

.kdp-ic svg path {
    stroke: rgba(234,240,255,.92);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kdp-point strong {
    display: block;
    font-weight: 800;
}

.kdp-point p {
    margin: 2px 0 0;
    color: var(--muted);
}

.inline-cta {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kdp-visual {
    position: relative;
    min-height: 280px;
}

.mock {
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(234,240,255,.12);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mock-top {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(234,240,255,.10);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(234,240,255,.25);
}

.mock-body {
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.cover {
    width: 140px;
    height: 180px;
    border-radius: 18px;
    border: 1px solid rgba(234,240,255,.12);
    background: linear-gradient(135deg, rgba(14,165,233,.22), rgba(34,197,94,.16));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cover-title {
    font-weight: 900;
    font-size: 32px;
    letter-spacing: .8px;
}

.cover-sub {
    color: var(--muted);
    font-size: 14px;
}

.mock-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-lines span {
    height: 10px;
    border-radius: 999px;
    background: rgba(234,240,255,.10);
}

.mock-lines span:nth-child(1) {
    width: 92%;
}

.mock-lines span:nth-child(2) {
    width: 76%;
}

.mock-lines span:nth-child(3) {
    width: 84%;
}

/* Testimonials */
.testimonials {
    grid-template-columns: repeat(3, 1fr);
}

.t-card {
    margin: 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(234,240,255,.10);
}

.t-card blockquote {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 15px;
}

.t-card figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(234,240,255,.12);
}

.t-card small {
    color: var(--muted2);
}

/* FAQ */
.faq {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(234,240,255,.10);
    background: rgba(255,255,255,.05);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: start;
    padding: 14px;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.faq-q:focus {
    outline: none;
    box-shadow: var(--focus);
}

.chev {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(234,240,255,.8);
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-inline-start: 8px;
}

.faq-item[data-open="true"] .chev {
    transform: rotate(-135deg);
}

.faq-a {
    padding: 0 14px 14px;
    color: var(--muted);
}

/* Contact */
.form {
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(234,240,255,.12);
    background: rgba(0,0,0,.12);
}

.form-row {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(234,240,255,.12);
    background: rgba(255,255,255,.06);
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus, textarea:focus {
    box-shadow: var(--focus);
    border-color: rgba(14,165,233,.35);
    background: rgba(255,255,255,.08);
}

.field-error {
    margin: 6px 0 0;
    color: rgba(255,160,160,.92);
    min-height: 18px;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-note {
    margin-top: 10px;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px dashed rgba(234,240,255,.16);
    background: rgba(255,255,255,.04);
    min-height: 44px;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.mini-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(234,240,255,.10);
    background: rgba(255,255,255,.05);
    cursor: pointer;
}

.mini-card:hover {
    border-color: rgba(234,240,255,.16);
    background: rgba(255,255,255,.07);
}

.mini-ic {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(14,165,233,.12);
    border: 1px solid rgba(14,165,233,.20);
    flex: 0 0 auto;
}

.mini-ic svg {
    width: 22px;
    height: 22px;
}

.mini-ic svg path {
    stroke: rgba(234,240,255,.92);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-card small {
    color: var(--muted2);
}

/* Footer */
.footer {
    padding: 26px 0 40px;
    border-top: 1px solid rgba(234,240,255,.08);
}

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

.footer p {
    margin: 0;
    color: var(--muted);
}

.footer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Chat Widget */
.chat-fab {
    position: fixed;
    inset-inline-end: 16px;
    inset-block-end: 16px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(234,240,255,.14);
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(12px);
    color: var(--text);
    box-shadow: 0 18px 50px rgba(0,0,0,.38);
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.chat-fab:hover {
    transform: translateY(-2px);
    background: rgba(0,0,0,.45);
    border-color: rgba(234,240,255,.2);
}

.chat-fab:focus {
    outline: none;
    box-shadow: var(--focus);
}

.fab-ic svg {
    width: 20px;
    height: 20px;
}

.fab-ic svg path {
    stroke: rgba(234,240,255,.92);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fab-text {
    font-weight: 800;
}

.chat {
    position: fixed;
    inset-inline-end: 16px;
    inset-block-end: 84px;
    z-index: 2000;
    width: min(380px, calc(100% - 32px));
    max-height: min(560px, calc(100dvh - 120px));
    border-radius: 22px;
    border: 1px solid rgba(234,240,255,.14);
    background: rgba(6,10,20,.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 60px rgba(0,0,0,.45);
    overflow: hidden;
    transform-origin: bottom right;
    animation: pop .18s ease-out;
}

@keyframes pop {
    from {
        transform: translateY(8px) scale(.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(234,240,255,.10);
    background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(34,197,94,.10));
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-badge {
    width: 36px;
    height: 36px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(234,240,255,.14);
}

.chat-title small {
    color: var(--muted2);
    display: block;
    margin-top: -2px;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    border: 1px solid rgba(234,240,255,.14);
    background: rgba(0,0,0,.18);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.icon-btn:hover {
    background: rgba(0,0,0,.28);
}

.icon-btn:focus {
    outline: none;
    box-shadow: var(--focus);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.icon-btn svg path {
    stroke: rgba(234,240,255,.92);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-body {
    padding: 12px;
    overflow: auto;
    max-height: 360px;
}

.msg {
    display: flex;
    margin-bottom: 10px;
}

.msg .bubble {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(234,240,255,.12);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.92);
}

.msg.user {
    justify-content: flex-start;
}

.msg.user .bubble {
    margin-inline-start: auto;
    background: rgba(14,165,233,.12);
    border-color: rgba(14,165,233,.22);
}

.msg.bot .bubble {
    margin-inline-end: auto;
    background: rgba(34,197,94,.10);
    border-color: rgba(34,197,94,.18);
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    color: rgba(234,240,255,.55);
    font-size: 11px;
}

.typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 0;
    color: var(--muted2);
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(234,240,255,.55);
    animation: blink 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: .12s;
}

.typing-dot:nth-child(3) {
    animation-delay: .24s;
}

@keyframes blink {
    0%, 100% {
        transform: translateY(0);
        opacity: .45;
    }
    50% {
        transform: translateY(-3px);
        opacity: .95;
    }
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(234,240,255,.10);
}

.chat-input input {
    flex: 1;
    border-radius: 16px;
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        min-height: 360px;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .split {
        grid-template-columns: 1fr;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        inset-inline-end: 0;
        width: min(320px, calc(100vw - 32px));
        padding: 10px;
        border-radius: 18px;
        border: 1px solid rgba(234,240,255,.14);
        background: rgba(6,10,20,.88);
        backdrop-filter: blur(14px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        box-shadow: 0 20px 60px rgba(0,0,0,.45);
    }
    
    .nav-menu[data-open="true"] {
        display: flex;
    }
    
    .header-ctas {
        display: none;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-actions {
        justify-content: space-between;
    }
    
    .chat-body {
        max-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
