@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    --navy: #082f4f;
    --navy-2: #0b3d63;
    --blue: #1768e5;
    --blue-dark: #0f55c5;
    --teal: #12a58f;
    --mint: #dff7f0;
    --amber: #d88b13;
    --amber-soft: #fff3dc;
    --ink: #13243e;
    --muted: #687991;
    --line: #dce5f0;
    --soft: #f4f7fb;
    --white: #fff;
    --danger: #cf3c4f;
    --success: #16836f;
    --shadow: 0 24px 70px rgba(19, 45, 77, .12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section-pad { padding: 98px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(220,229,240,.8);
    backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: white; background: var(--navy-2); font-size: 21px; font-weight: 900; box-shadow: 0 10px 20px rgba(8,47,79,.18); }
.main-nav { display: flex; align-items: center; gap: 7px; }
.main-nav a { padding: 9px 13px; color: #52637a; font-size: 14px; font-weight: 700; border-radius: 10px; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: #eef5ff; }
.main-nav .nav-admin { margin-right: 8px; padding-inline: 17px; color: white; background: var(--navy-2); }
.main-nav .nav-admin:hover { color: white; background: var(--navy); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--navy); border-radius: 5px; }

.hero { position: relative; min-height: 720px; overflow: hidden; display: flex; align-items: center; background: #f5f9fd; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(18,70,109,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(18,70,109,.08) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to left, #000, transparent 72%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.glow-one { width: 360px; height: 360px; left: -140px; top: 80px; background: rgba(23,104,229,.12); }
.glow-two { width: 260px; height: 260px; right: 20%; bottom: -120px; background: rgba(18,165,143,.12); }
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 76px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .1px; }
.eyebrow.light { color: #9fe4da; }
.eyebrow.danger { color: var(--danger); }
.eyebrow.success { color: var(--success); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(18,165,143,.12); }
.hero-copy h1 { max-width: 560px; margin: 20px 0 18px; font-size: clamp(44px, 5vw, 76px); line-height: 1.14; letter-spacing: -2.5px; color: var(--navy); }
.hero-copy > p { max-width: 570px; margin: 0; color: #5e7088; font-size: 18px; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 21px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--blue); box-shadow: 0 13px 26px rgba(23,104,229,.22); }
.button.primary:hover { background: var(--blue-dark); box-shadow: 0 16px 32px rgba(23,104,229,.28); }
.button.ghost { color: var(--navy); background: white; border-color: var(--line); }
.button.wide { width: 100%; }
.button.small { min-height: 39px; padding: 7px 14px; font-size: 13px; }
.button.tiny { min-height: 32px; padding: 4px 10px; font-size: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; color: #75859b; font-size: 12px; }
.trust-row span { display: inline-flex; gap: 5px; align-items: center; }
.trust-row b { color: var(--navy-2); }

.chat-shell { position: relative; width: 100%; min-height: 555px; overflow: hidden; border: 1px solid rgba(212,224,238,.9); border-radius: 28px; background: white; box-shadow: 0 34px 90px rgba(10,52,87,.16); }
.chat-shell::before { content: ""; position: absolute; width: 90px; height: 90px; left: -38px; top: -35px; border: 20px solid #e8f0ff; border-radius: 50%; }
.chat-head { position: relative; display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 17px 20px; border-bottom: 1px solid #edf1f6; }
.bot-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: white; background: var(--blue); }
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.chat-head span i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; margin-right: auto; padding: 0; color: #8190a3; border: 0; border-radius: 10px; background: #f5f7fa; cursor: pointer; }
.icon-button:hover { color: var(--blue); }
.chat-messages { height: 320px; padding: 24px 20px 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cdd8e6 transparent; }
.message-row { display: flex; gap: 10px; margin-bottom: 17px; animation: message-in .25s ease both; }
.message-row.user { justify-content: flex-start; }
.message-row.user .message-bubble { color: white; background: var(--navy-2); border-radius: 16px 16px 4px 16px; }
.message-row.bot .message-bubble { background: #f2f6fb; border-radius: 16px 16px 16px 4px; }
.mini-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; color: var(--blue); border-radius: 9px; background: #e7f0ff; font-size: 12px; font-weight: 900; }
.message-bubble { max-width: 82%; padding: 12px 15px 8px; font-size: 13px; line-height: 1.8; }
.message-bubble p { margin: 0; white-space: pre-wrap; }
.message-bubble time { display: block; margin-top: 3px; color: #8a99aa; font-size: 9px; }
.message-row.user time { color: rgba(255,255,255,.6); }
.typing { display: flex; gap: 4px; align-items: center; height: 22px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8da1b8; animation: typing 1s infinite alternate; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.feedback-row { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.feedback-row button { padding: 3px 7px; color: var(--navy); border: 1px solid #dbe4ee; border-radius: 7px; background: white; cursor: pointer; }
.suggestion-list { display: flex; gap: 7px; padding: 0 20px 12px; overflow-x: auto; }
.suggestion-list button { flex: 0 0 auto; max-width: 210px; padding: 7px 11px; overflow: hidden; color: var(--blue-dark); text-overflow: ellipsis; white-space: nowrap; border: 1px solid #d8e5f8; border-radius: 999px; background: #f5f9ff; cursor: pointer; font-size: 10px; }
.chat-form { display: flex; align-items: flex-end; gap: 10px; padding: 13px 15px; margin: 0 17px; border: 1px solid #d8e2ee; border-radius: 15px; background: #fbfcfe; transition: .2s; }
.chat-form:focus-within { border-color: #8cb6f4; box-shadow: 0 0 0 4px rgba(23,104,229,.08); }
.chat-form textarea { flex: 1; max-height: 100px; resize: none; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 13px; }
.chat-form button { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; color: white; border: 0; border-radius: 11px; background: var(--blue); cursor: pointer; }
.chat-form button:disabled, .chat-form textarea:disabled { opacity: .45; cursor: not-allowed; }
.chat-note { margin: 9px 20px 14px; color: #8795a8; text-align: center; font-size: 9px; }
.chat-note a { color: var(--blue); font-weight: 700; }

.section-heading { max-width: 690px; margin-bottom: 45px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .how-copy h2, .contact-copy h2 { margin: 12px 0 13px; color: var(--navy); font-size: clamp(31px, 4vw, 47px); line-height: 1.3; letter-spacing: -1.2px; }
.section-heading p, .how-copy > p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 285px; padding: 31px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card.featured { color: white; background: var(--navy-2); border-color: var(--navy-2); }
.feature-card.featured h3, .feature-card.featured p { color: white; }
.feature-card.featured p { opacity: .72; }
.feature-number { position: absolute; top: 21px; left: 24px; color: rgba(86,108,133,.26); font-size: 44px; font-weight: 900; line-height: 1; }
.featured .feature-number { color: rgba(255,255,255,.12); }
.feature-icon { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: 30px; color: var(--blue); border-radius: 16px; background: #e9f1ff; }
.feature-icon.mint { color: var(--teal); background: var(--mint); }
.feature-icon.amber { color: var(--amber); background: var(--amber-soft); }
.featured .feature-icon { color: #8edfd4; background: rgba(255,255,255,.1); }
.feature-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

.how { background: #f6f9fc; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.how-visual { position: relative; display: grid; place-items: center; min-height: 470px; }
.core-icon { position: relative; z-index: 3; display: grid; place-items: center; width: 118px; height: 118px; color: white; border: 14px solid rgba(255,255,255,.3); border-radius: 34px; background: var(--blue); background-clip: padding-box; box-shadow: 0 22px 50px rgba(23,104,229,.26); transform: rotate(-5deg); }
.core-icon svg { width: 47px; height: 47px; transform: rotate(5deg); }
.orbit { position: absolute; border: 1px dashed #b8c9dd; border-radius: 50%; }
.orbit-one { width: 280px; height: 280px; }
.orbit-two { width: 430px; height: 430px; opacity: .75; }
.orbit-label { position: absolute; z-index: 4; display: grid; place-items: center; width: 74px; height: 74px; color: var(--navy); border: 1px solid #d8e2ee; border-radius: 24px; background: white; box-shadow: 0 14px 30px rgba(24,55,84,.1); font-size: 13px; font-weight: 800; }
.label-one { top: 31px; right: 25%; }
.label-two { bottom: 44px; right: 12%; color: var(--teal); }
.label-three { top: 45%; left: 5%; color: var(--blue); }
.steps { display: grid; gap: 16px; padding: 0; margin: 32px 0; list-style: none; }
.steps li { display: flex; gap: 17px; align-items: flex-start; padding: 18px; border: 1px solid transparent; border-radius: 17px; transition: .2s; }
.steps li:hover { border-color: var(--line); background: white; }
.steps li > span { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; color: var(--blue); border-radius: 12px; background: #e8f1ff; font-size: 14px; font-weight: 900; }
.steps h3 { margin: 0 0 3px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }
.text-link { padding: 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-weight: 800; }

.contact { color: white; background: var(--navy); }
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 85px; }
.contact-copy h2 { color: white; }
.contact-copy > p { color: rgba(255,255,255,.68); }
.contact-links { display: grid; gap: 10px; margin-top: 30px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-links span { color: rgba(255,255,255,.55); font-size: 12px; }
.contact-links b { font-size: 13px; }
.contact-form { padding: 32px; color: var(--ink); border-radius: 25px; background: white; box-shadow: 0 25px 70px rgba(0,0,0,.16); }
.form-head { display: flex; gap: 13px; align-items: center; margin-bottom: 22px; }
.contact-symbol { display: grid; place-items: center; width: 48px; height: 48px; color: var(--blue); border-radius: 14px; background: #e9f2ff; font-size: 21px; font-weight: 900; }
.form-head h3 { margin: 0; }
.form-head p { margin: 0; color: var(--muted); font-size: 12px; }
.contact-form label, .login-form label { display: grid; gap: 7px; margin-bottom: 14px; color: #35445a; font-size: 12px; font-weight: 700; }
.contact-form input, .contact-form textarea, .login-form input { width: 100%; padding: 12px 14px; color: var(--ink); border: 1px solid #dbe4ee; border-radius: 11px; outline: 0; background: #fbfcfe; font-size: 13px; }
.contact-form input:focus, .contact-form textarea:focus, .login-form input:focus { border-color: #8db7f3; box-shadow: 0 0 0 4px rgba(23,104,229,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-status { min-height: 20px; margin: 10px 0 0; text-align: center; font-size: 12px; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

.floating-chat { position: fixed; z-index: 40; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 17px; color: white; border: 0; border-radius: 999px; background: var(--blue); box-shadow: 0 15px 35px rgba(23,104,229,.34); cursor: pointer; font-weight: 800; }
.floating-chat::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(23,104,229,.26); border-radius: inherit; animation: pulse 2s infinite; }
.ad-wrap { padding: 24px 0; background: #fff; }
.ad-wrap .container { position: relative; }
.ad-label { position: absolute; z-index: 2; top: 10px; right: 12px; padding: 3px 8px; color: #65758a; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); font-size: 9px; font-weight: 700; }
.ad-card { position: relative; display: block; overflow: hidden; min-height: 112px; border: 1px solid var(--line); border-radius: 20px; background: #eef3f8; box-shadow: 0 14px 35px rgba(16,48,76,.08); }
.ad-card img { display: block; width: 100%; aspect-ratio: 5 / 1; object-fit: cover; transition: transform .35s ease; }
a.ad-card:hover img { transform: scale(1.012); }
.ad-title { position: absolute; right: 20px; bottom: 16px; max-width: calc(100% - 40px); padding: 6px 11px; color: white; border-radius: 9px; background: rgba(8,47,79,.86); font-size: 12px; font-weight: 700; }
.ad-inline { padding: 0 0 34px; }
.ad-inline .container { width: 100%; }
.ad-inline .ad-card img { aspect-ratio: 6 / 1; }
.ad-between { background: #f6f9fc; }
.ad-before-contact { background: #f6f9fc; }
footer { padding: 31px 0; background: #062a47; color: rgba(255,255,255,.65); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { color: white; }
.footer-brand .brand-mark { background: rgba(255,255,255,.12); box-shadow: none; }
footer p, footer a { font-size: 11px; }
footer a:hover { color: white; }

.setup-body, .login-body { min-height: 100vh; background: #f1f5fa; }
.setup-body { display: grid; place-items: center; padding: 30px; }
.setup-card { width: min(520px, 100%); padding: 44px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.setup-brand { margin-bottom: 36px; }
.setup-card h1 { margin: 10px 0; color: var(--navy); }
.setup-card code { padding: 2px 5px; border-radius: 4px; background: #edf2f8; }
.notice { padding: 12px 14px; margin: 16px 0; border-radius: 10px; font-size: 12px; }
.notice.error, .error-notice { color: #8d2431; background: #fff0f2; border: 1px solid #ffd5dc; }
.notice.success { color: #116955; background: #eafaf5; border: 1px solid #c8eee3; }
.notice.warning { color: #815500; background: #fff7e8; border: 1px solid #f8e1b4; }
.notice a { text-decoration: underline; font-weight: 800; }

.login-layout { display: grid; grid-template-columns: .88fr 1.12fr; min-height: 100vh; }
.login-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 54px clamp(34px, 5vw, 80px); color: white; background: var(--navy); }
.login-panel::before { content: ""; position: absolute; width: 500px; height: 500px; left: -280px; top: -120px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.login-panel .brand { position: relative; }
.login-panel .brand-mark { background: var(--blue); }
.login-panel .brand small { color: rgba(255,255,255,.5); }
.login-copy { position: relative; max-width: 540px; }
.login-copy h1 { margin: 17px 0; font-size: clamp(36px, 4.6vw, 66px); line-height: 1.27; letter-spacing: -2px; }
.login-copy p { max-width: 470px; color: rgba(255,255,255,.65); }
.login-quote { position: relative; display: flex; gap: 14px; max-width: 480px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); }
.login-quote span { color: #7bd6ca; font-size: 42px; line-height: 1; }
.login-quote p { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; }
.login-form-wrap { display: grid; place-items: center; padding: 40px; background: #f7f9fc; }
.login-form { width: min(430px, 100%); }
.login-form h2 { margin: 8px 0 3px; color: var(--navy); font-size: 34px; }
.login-form > .muted { margin: 0 0 27px; font-size: 13px; }
.login-form input { min-height: 51px; background: white; }
.back-home { display: block; margin-top: 18px; color: var(--muted); text-align: center; font-size: 12px; }

@keyframes typing { to { transform: translateY(-4px); opacity: .45; } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .8; } 60% { transform: scale(1.14); opacity: 0; } }
@keyframes message-in { from { transform: translateY(7px); opacity: 0; } }

@media (max-width: 980px) {
    .hero-grid, .how-grid, .contact-wrap { grid-template-columns: 1fr; gap: 55px; }
    .hero { min-height: auto; }
    .hero-copy { text-align: center; }
    .hero-copy h1, .hero-copy > p { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .chat-shell { width: min(640px, 100%); margin-inline: auto; }
    .how-visual { order: 2; }
    .contact-copy { text-align: center; }
    .contact-links { width: min(520px, 100%); margin-inline: auto; }
    .login-layout { grid-template-columns: 1fr; }
    .login-panel { min-height: 390px; gap: 55px; }
    .login-quote { display: none; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 28px, 1180px); }
    .section-pad { padding: 72px 0; }
    .menu-toggle { display: block; }
    .main-nav { position: absolute; top: 70px; right: 14px; left: 14px; display: none; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }
    .main-nav .nav-admin { margin: 0; text-align: center; }
    .hero-copy h1 { font-size: 44px; letter-spacing: -1.4px; }
    .hero-copy > p { font-size: 15px; }
    .trust-row { gap: 12px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; }
    .how-visual { min-height: 380px; transform: scale(.87); }
    .orbit-two { width: 380px; height: 380px; }
    .contact-form { padding: 23px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-inner { flex-direction: column; text-align: center; }
    .floating-chat span { display: none; }
    .floating-chat { width: 54px; height: 54px; padding: 0; justify-content: center; }
    .ad-card { min-height: 86px; border-radius: 15px; }
    .ad-card img, .ad-inline .ad-card img { aspect-ratio: 2.8 / 1; }
    .login-panel { padding: 35px 28px; }
    .login-copy h1 { font-size: 38px; }
    .login-form-wrap { padding: 48px 24px; }
    .setup-card { padding: 30px 24px; }
}

@media (max-width: 430px) {
    .hero-actions .button { width: 100%; }
    .chat-shell { min-height: 520px; border-radius: 20px; }
    .chat-messages { height: 300px; }
    .orbit-two { width: 330px; height: 330px; }
    .label-three { left: 0; }
}

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