/* Labbeh landing page — shared styles for EN (ltr) and AR (rtl).
   Uses logical properties so one stylesheet serves both directions. */

:root {
  --accent: #2EE6A6;
  --accent-soft: #7FF2C9;
  --accent-deep: #14382F;
  --accent-line: #1F5A49;
  --bg: #0A0E17;
  --surface: #111726;
  --surface-2: #1A2235;
  --line: #232B3D;
  --line-2: #2A3348;
  --rule: #1A2235;
  --text: #F4F6FA;
  --text-2: #C9CFDB;
  --muted: #B4BCCB;
  --muted-2: #9AA3B5;
  --muted-3: #8892A6;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --lh: 1.6;
}
html[dir="rtl"] {
  --font-display: 'Readex Pro', system-ui, sans-serif;
  --font-body: 'Readex Pro', system-ui, sans-serif;
  --lh: 1.8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-soft); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
.en { font-family: 'Space Grotesk', system-ui, sans-serif; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { color: var(--bg); }
.btn-ghost { color: var(--text); border-color: var(--line-2); font-weight: 500; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { color: var(--text); }
.btn-outline-dark { border: 1.5px solid var(--bg); color: var(--bg); }
.btn-outline-dark:hover { color: var(--bg); background: rgba(10,14,23,.08); }
.btn-lg { min-height: 54px; padding: 16px 28px; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,23,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -.04em; }
html[dir="rtl"] .brand-name { font-family: 'Readex Pro', sans-serif; letter-spacing: 0; font-size: 28px; }
.main-nav { display: flex; gap: 28px; font-size: 15px; }
.main-nav a, .header-actions .link { color: var(--text-2); text-decoration: none; }
.main-nav a:hover, .header-actions .link:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .link { padding: 12px 6px; font-size: 15px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .main-nav, .header-actions .link { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--rule); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 12px 24px 20px; display: flex; flex-direction: column; }
  .mobile-nav a { display: block; padding: 14px 0; color: var(--text); text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 420px) {
  .header-actions .btn-sm { padding: 10px 14px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 64px 96px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live 1.6s ease-out infinite; flex: none; }
.hero h1 { font-weight: 700; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
html[dir="rtl"] .hero h1 { line-height: 1.2; letter-spacing: 0; font-size: clamp(40px, 5.6vw, 72px); }
.accent { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--muted-3); }

.hero-visual { flex: 1 1 440px; min-width: 0; position: relative; }
.call-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.call-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.call-head strong { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.call-head .live-dot { width: 10px; height: 10px; }
.timer { color: var(--muted-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.eq { height: 56px; display: flex; align-items: center; gap: 5px; padding-inline: 4px; }
.eq span { width: 4px; border-radius: 4px; background: var(--accent); height: 30%; animation: eq 1.1s ease-in-out infinite; }
.chat { display: flex; flex-direction: column; gap: 10px; font-size: 15px; min-height: 236px; }
.bubble { max-width: 85%; padding: 10px 14px; opacity: 0; animation: rise .6s ease forwards; }
.bubble small { display: block; font-size: 11px; color: var(--muted-2); }
.bubble.them { align-self: flex-start; background: var(--surface-2); border-radius: 16px; border-end-start-radius: 4px; }
.bubble.ai { align-self: flex-end; background: var(--accent-deep); border: 1px solid var(--accent-line); border-radius: 16px; border-end-end-radius: 4px; }
.bubble.ai small { color: var(--accent-soft); }
.bubble.typing { display: flex; gap: 6px; align-items: center; padding: 14px 16px; border-radius: 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.tags span { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px; color: var(--text-2); }
.tags .ok { border-color: var(--accent-line); color: var(--accent-soft); }
.toast {
  position: absolute; inset-inline-start: -28px; bottom: -34px;
  background: #F6F7F9; color: var(--bg); border-radius: 16px; padding: 12px 16px;
  display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 50px rgba(0,0,0,.4);
  animation: float 5s ease-in-out infinite;
}
.toast-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; }
.toast strong { display: block; font-size: 14px; line-height: 1.3; }
.toast span { font-size: 12px; color: #4A5468; }
@media (max-width: 560px) { .toast { inset-inline-start: 12px; bottom: -28px; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--rule); padding-block: 22px; overflow: hidden; }
.track { display: flex; gap: 56px; width: max-content; font: 600 22px/1.4 var(--font-display); color: #5E6880; white-space: nowrap; animation: marquee 32s linear infinite; }
html[dir="rtl"] .track { animation-name: marquee-rtl; }
.track .star { color: var(--accent); }
.marquee:hover .track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding-block: 100px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-block-end: 48px; }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; max-width: 640px; }
html[dir="rtl"] .h2 { line-height: 1.3; letter-spacing: 0; font-size: clamp(30px, 3.8vw, 48px); }
.section-head p { font-size: 17px; color: var(--muted); max-width: 400px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.icon { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-deep); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.card h3 { font-size: 22px; line-height: 1.3; }
.card p { font-size: 15px; color: var(--muted); }

/* Gulf */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.panel-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel-copy p { font-size: 17px; color: var(--muted); }
.points { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; gap: 16px; padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.points .num { font: 700 18px/1.6 'Space Grotesk', sans-serif; color: var(--accent); }
.points strong { display: block; font-size: 17px; }
.points span.d { font-size: 15px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-block-start: 40px; counter-reset: step; }
.step { padding: 28px; border-top: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.step:first-child { border-top-color: var(--accent); }
.step .k { font-size: 14px; color: var(--muted-2); }
.step h3 { font-size: 22px; }
.step p { font-size: 15px; color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 900px; margin: 40px auto 0; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border-color: var(--accent); }
.plan h3 { font-size: 22px; }
.price { font: 700 40px/1.1 var(--font-display); }
.price small { font: 500 16px/1 var(--font-body); color: var(--muted-2); }
.plan .note { font-size: 14px; color: var(--accent-soft); }
.plan .note.muted { color: var(--muted-2); }
.plan ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-2); }
.plan .btn { margin-block-start: auto; }
.addon { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 32px; max-width: 900px; margin: 20px auto 0; }
.addon strong { display: block; font: 700 20px/1.4 var(--font-display); }
.addon p { font-size: 15px; color: var(--muted); }
.addon .price { font-size: 28px; }
.addon .price small { font-size: 15px; }
.vat { text-align: center; font-size: 17px; color: var(--muted); margin-block-start: 12px; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--accent); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-block-end: 20px; color: var(--muted); font-size: 15px; }

/* Demo / form */
.demo { background: var(--accent); color: var(--bg); border-radius: 32px; padding: clamp(28px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.demo-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.demo-copy p { font-size: 17px; color: #123A2E; }
.demo-copy .btn { align-self: flex-start; }
.form { flex: 1 1 420px; min-width: 0; background: var(--bg); color: var(--text); border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--text-2); font-weight: 500; }
.field input, .field select {
  min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: 16px/1.3 var(--font-body);
}
.field input::placeholder { color: #6B7489; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,230,166,.2); }
.field input[aria-invalid="true"] { border-color: #FF7A7A; }
.err { font-size: 13px; color: #FF9B9B; min-height: 0; }
.form .btn { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--accent-soft); min-height: 1em; }
.form .fine { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; padding: 20px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding-block: 36px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-brand .copy { font-size: 14px; color: var(--muted-3); margin-inline-start: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer-nav a { color: var(--muted-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--bg);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); color: var(--bg); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Logo bars */
.lb-bar { transform-box: fill-box; transform-origin: center; animation: wave 1.4s ease-in-out infinite; }
.lb-b2 { animation-delay: .2s; } .lb-b3 { animation-delay: .4s; }

@keyframes wave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }
@keyframes eq { 0%,100% { height: 18%; } 25% { height: 85%; } 50% { height: 40%; } 75% { height: 65%; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(46,230,166,.6); } 100% { box-shadow: 0 0 0 10px rgba(46,230,166,0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bubble, .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Visual polish v2: hero glow, product mockup, integrations,
   card spotlight, animated featured border
   ========================================================= */

/* Hero glow + dot grid */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -120px -40vw -40px;
  background:
    radial-gradient(520px 360px at 72% 38%, rgba(46,230,166,.16), transparent 70%),
    radial-gradient(420px 300px at 18% 20%, rgba(91,140,255,.10), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -120px -40vw 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 30%, transparent 75%);
}
html[dir="rtl"] .hero::before {
  background:
    radial-gradient(520px 360px at 28% 38%, rgba(46,230,166,.16), transparent 70%),
    radial-gradient(420px 300px at 82% 20%, rgba(91,140,255,.10), transparent 70%);
}

/* Product mockup */
.showcase { padding-block: 100px 20px; position: relative; isolation: isolate; }
.showcase::before {
  content: ''; position: absolute; z-index: -1; inset: 30% 10% -10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(46,230,166,.18), transparent);
  filter: blur(20px);
}
.showcase .section-head { margin-block-end: 40px; }
.app {
  background: #0D1220; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(46,230,166,.06) inset;
}
.app-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #0B101C; }
.app-bar .dots { display: flex; gap: 7px; }
.app-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2A3348; }
.app-bar .dots i:first-child { background: #FF6B6B; } .app-bar .dots i:nth-child(2) { background: #FFB547; } .app-bar .dots i:nth-child(3) { background: var(--accent); }
.app-title { font-size: 13px; color: var(--muted-2); }
.app-body { display: grid; grid-template-columns: 68px 300px 1fr; min-height: 470px; }
.app-side { border-inline-end: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.app-side span { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #6B7489; }
.app-side span.on { background: var(--accent-deep); color: var(--accent); }
.app-list { border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.app-list-head { padding: 16px 18px 10px; display: flex; justify-content: space-between; align-items: center; }
.app-list-head strong { font: 600 16px/1.3 var(--font-display); }
.app-list-head small { font-size: 12px; color: var(--muted-2); }
.filters { display: flex; gap: 6px; padding: 0 18px 12px; flex-wrap: wrap; }
.filters span { font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted-2); }
.filters span.on { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.convo { display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 12px; padding: 12px 18px; border-top: 1px solid var(--rule); align-items: center; }
.convo.active { background: #121A2B; box-shadow: inset 3px 0 0 var(--accent); }
html[dir="rtl"] .convo.active { box-shadow: inset -3px 0 0 var(--accent); }
.av { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--bg); position: relative; }
.av b { position: absolute; inset-inline-end: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #0D1220; display: flex; align-items: center; justify-content: center; }
.convo .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo .tm { font-size: 11px; color: #6B7489; }
.convo .sn { font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { font-size: 10px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st.ai { background: var(--accent-deep); color: var(--accent-soft); }
.st.hu { background: #3A2A12; color: #FFC977; }
.st.ok { background: #1A2235; color: var(--muted-2); }
.app-chat { display: flex; flex-direction: column; min-width: 0; }
.app-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.app-chat-head strong { font-size: 14px; display: block; }
.app-chat-head small { font-size: 12px; color: var(--muted-2); }
.takeover { font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); white-space: nowrap; }
.app-msgs { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; background:
  radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 18px 18px; }
.app-msgs .bubble { opacity: 1; animation: none; max-width: 78%; }
.app-msgs .bubble.ai { border-end-end-radius: 4px; }
.sys { align-self: center; font-size: 11px; color: #6B7489; background: #121A2B; border-radius: 999px; padding: 4px 12px; }
.summary { margin: 0 20px 18px; padding: 14px 16px; border-radius: 16px; background: #0F1626; border: 1px dashed var(--accent-line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.summary div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.summary small { font-size: 10px; color: #6B7489; text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .summary small { text-transform: none; letter-spacing: 0; font-size: 11px; }
.summary span { font-size: 13px; font-weight: 600; }
.summary .k-ai { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 12px; color: var(--accent-soft); }
@media (max-width: 960px) { .app-body { grid-template-columns: 68px 1fr; } .app-list { display: none; } }
@media (max-width: 600px) {
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .summary { grid-template-columns: 1fr 1fr; }
  .takeover { display: none; }
}

/* Integrations strip */
.integrations { padding-block: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.integrations p { font-size: 14px; color: var(--muted-3); text-align: center; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logos span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font: 600 15px/1.2 'Space Grotesk', sans-serif; color: var(--text-2);
  transition: border-color .2s ease, color .2s ease;
}
.logos span:hover { border-color: var(--accent-line); color: var(--text); }
.logos i { width: 8px; height: 8px; border-radius: 3px; }

/* Card spotlight follows the pointer */
.card, .plan { position: relative; overflow: hidden; isolation: isolate; }
.card::before, .plan::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(46,230,166,.12), transparent 70%);
}
.card:hover::before, .plan:hover::before { opacity: 1; }

/* Animated featured border */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan.featured { border-color: transparent; background:
  linear-gradient(var(--surface), var(--surface)) padding-box,
  conic-gradient(from var(--ang), var(--accent), #5B8CFF, var(--accent-line), var(--accent)) border-box;
  animation: spin 6s linear infinite; }
.plan .badge { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-deep); color: var(--accent-soft); }
@keyframes spin { to { --ang: 360deg; } }

/* Gradient text accent in hero */
.hero h1 .accent { background: linear-gradient(90deg, var(--accent), #7FF2C9 50%, #5BE0FF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Keep decorative glows from widening the page */
html, body { overflow-x: clip; }
main { overflow-x: clip; }
