/* ==========================================================================
   Voctis — marketing site styles (light & clean)
   All local. System font stacks only. No remote assets.
   ========================================================================== */

:root {
  /* Brand */
  --violet-900: #2e1065;
  --violet-800: #3b1578;
  --violet-700: #5b21b6;
  --violet-600: #6d28d9;
  --violet-500: #7c3aed;
  --violet-400: #8b5cf6;
  --violet-300: #a78bfa;
  --violet-100: #ede9fe;
  --violet-050: #f5f3ff;

  /* Neutrals */
  --ink: #1c1330;
  --ink-2: #3b3552;
  --muted: #6b6685;
  --line: #ece9f5;
  --bg: #ffffff;
  --bg-soft: #faf9ff;
  --bg-lav: #f5f3ff;
  --white: #ffffff;

  --grad: linear-gradient(120deg, #5b21b6 0%, #7c3aed 48%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, #f5f3ff 0%, #ffffff 60%);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(28, 19, 48, .05), 0 4px 14px rgba(46, 16, 101, .05);
  --shadow: 0 12px 34px rgba(46, 16, 101, .10);
  --shadow-lg: 0 28px 60px rgba(46, 16, 101, .16);
  --ring: 0 0 0 4px rgba(124, 58, 237, .18);

  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ar: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.85; }

img, svg { max-width: 100%; display: block; }
a { color: var(--violet-600); text-decoration: none; }
a:hover { color: var(--violet-500); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: 10px;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 700; font-size: .98rem;
  padding: .78em 1.35em; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(124, 58, 237, .32); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(124, 58, 237, .42); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--violet-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--violet-700); border-color: var(--violet-300); }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn-white { background: #fff; color: var(--violet-700); }
.btn-white:hover { color: var(--violet-700); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.12); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; color: var(--ink); font-size: 1.05rem; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: 10px; flex-wrap: nowrap; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .94rem; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.nav-links a:hover { color: var(--violet-700); background: var(--violet-050); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.nav-signin { color: var(--ink-2); font-weight: 700; font-size: .94rem; padding: 8px 4px; white-space: nowrap; }
.nav-signin:hover { color: var(--violet-700); }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-lav); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { font-size: .82rem; font-weight: 700; color: var(--muted); padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--violet-700); box-shadow: var(--shadow-sm); }

.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* ---------------------------------------------------------------- Section rhythm */
section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: start; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-600); background: var(--violet-050); border: 1px solid var(--violet-100);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.lead { color: var(--muted); font-size: 1.12rem; }
.section-head .lead { margin: 0 auto; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 6vw, 84px); background: var(--grad-soft); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px; z-index: 0;
  background: radial-gradient(60% 60% at 78% 18%, rgba(139,92,246,.20), transparent 60%),
              radial-gradient(50% 50% at 12% 8%, rgba(109,40,217,.14), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--violet-700);
  background: #fff; border: 1px solid var(--violet-100); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-500); box-shadow: 0 0 0 4px rgba(124,58,237,.16); }
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.18rem; color: var(--ink-2); max-width: 30em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; stroke: var(--violet-500); flex: none; }

.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat { }
.hero-stats .num { font-size: 1.8rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hero-stats .lbl { color: var(--muted); font-size: .9rem; }

/* Hero visual card */
.hero-visual { position: relative; }
.call-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px; position: relative; z-index: 2;
}
.call-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.call-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.call-meta strong { display: block; font-size: .98rem; }
.call-meta span { color: var(--muted); font-size: .84rem; }
.call-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: #16a34a; }
.call-live .pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.5)} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }

.wave { display: flex; align-items: center; gap: 4px; height: 56px; margin: 18px 4px; }
.wave i { flex: 1; background: var(--grad); border-radius: 999px; opacity: .85; animation: eq 1.4s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: 1.1s; }
.wave i:nth-child(3n) { animation-duration: 1.7s; }
@keyframes eq { 0%,100%{height:16%} 50%{height:100%} }

.chat { display: grid; gap: 10px; }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.bubble.bot { background: var(--violet-050); color: var(--ink); border: 1px solid var(--violet-100); border-bottom-left-radius: 5px; justify-self: start; }
.bubble.user { background: var(--ink); color: #fff; border-bottom-right-radius: 5px; justify-self: end; }
html[dir="rtl"] .bubble.bot { border-bottom-left-radius:16px; border-bottom-right-radius:5px; }
html[dir="rtl"] .bubble.user { border-bottom-right-radius:16px; border-bottom-left-radius:5px; }

.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; z-index: 3;
}
.float-chip svg { width: 20px; height: 20px; }
.float-chip.one { top: -18px; inset-inline-start: -22px; }
.float-chip.two { bottom: -20px; inset-inline-end: -14px; }
.float-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--violet-050); color: var(--violet-600); }

/* ---------------------------------------------------------------- Logo strip */
.logos { padding: 46px 0; border-block: 1px solid var(--line); background: var(--bg-soft); }
.logos p { text-align: center; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.logo-row span { font-weight: 800; font-size: 1.2rem; color: #b3adc7; letter-spacing: -.01em; display:inline-flex; align-items:center; gap:8px; }
.logo-row span svg { width: 22px; height: 22px; opacity: .7; }

/* ---------------------------------------------------------------- Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet-100); }
.feature-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--violet-050); color: var(--violet-600); }
.feature-ic svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------------------------------------------------------------- How it works */
.how { background: var(--bg-lav); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; box-shadow: var(--shadow-sm); }
.step .n { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.1rem; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; inset-inline-end: -13px; width: 26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--violet-300) 0 6px, transparent 6px 12px);
}
html[dir="rtl"] .step:not(:last-child)::after { transform: scaleX(-1); }

/* ---------------------------------------------------------------- Use cases */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.usecase {
  display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.usecase:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.usecase .ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.usecase .ic svg { width: 26px; height: 26px; }
.usecase h3 { margin-bottom: 6px; }
.usecase p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------------------------------------------------------------- Testimonials */
.testimonials { background: var(--bg-soft); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.quote .stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 12px; font-size: .95rem; }
.quote blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--ink-2); line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.quote .who strong { display: block; font-size: .95rem; }
.quote .who span { color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------- Pricing (managed) */
.pricing { background: var(--bg-lav); text-align: center; }
.pricing .eyebrow { }
.catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px;
  max-width: 1000px; margin: 40px auto 0;
}
.pricing-note { margin-top: 30px; color: var(--muted); font-size: .95rem; }
/* Managed cards injected server-side inherit generic card styling if rendered */
.catalog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: start;
  box-shadow: var(--shadow-sm); position: relative;
}

/* ---------------------------------------------------------------- FAQ */
.faq-wrap { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 14px; font-size: 1.03rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { margin-inline-start: auto; width: 22px; height: 22px; flex: none; transition: transform .25s ease; stroke: var(--violet-500); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .ans { padding: 0 22px 20px; color: var(--muted); }
.faq-item .ans p { margin: 0; }

/* ---------------------------------------------------------------- CTA band */
.cta-band { padding: clamp(56px, 7vw, 96px) 0; }
.cta-inner {
  position: relative; overflow: hidden; background: var(--grad); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px); text-align: center; color: #fff; box-shadow: var(--shadow-lg);
}
.cta-inner::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 120% at 20% 0%, rgba(255,255,255,.22), transparent 60%); }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,.9); font-size: 1.12rem; max-width: 34em; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: #130c26; color: #cfc9e6; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #9a94b8; font-size: .95rem; margin-top: 16px; max-width: 30em; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 800; }
.footer-col a { display: block; color: #b7b1d4; padding: 6px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; color: #8f89ad; font-size: .88rem; }
.footer-bottom .langs { display: flex; gap: 6px; }
.footer-bottom .langs a { color: #b7b1d4; }
.footer-bottom .langs a[aria-current="true"] { color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------- Legal pages */
.legal { padding-top: 56px; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 34px; }
.legal h2 { font-size: 1.4rem; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-inline-start: 22px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .features-grid, .steps, .quote-grid { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
  .nav-signin, .nav-cta { display: none; }
  .features-grid, .steps, .usecase-grid, .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
@media (max-width: 760px) {
  .features-grid, .steps, .usecase-grid, .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 0; }
.mobile-nav.show { display: block; }
.mobile-nav a { display: block; padding: 12px 24px; color: var(--ink-2); font-weight: 600; }
.mobile-nav a:hover { background: var(--violet-050); color: var(--violet-700); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
