:root {
  --violet: #7e3bff;
  --violet-dark: #5b21d6;
  --blue: #47bfff;
  --grad: linear-gradient(135deg, #8b3dff 0%, #6a4dff 55%, #47bfff 100%);
  --ink: #12131c;
  --fg: #1d1f2b;
  --muted: #646a7d;
  --bg: #ffffff;
  --bg-soft: #f6f5fb;
  --border: #e6e4ef;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(60, 30, 140, 0.35);

  color-scheme: light;
  /* Standard (Russian-style) Cyrillic shapes even with lang="bg"; the Bulgarian forms look uneven in Manrope. */
  font-feature-settings: 'locl' 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
}

* { box-sizing: border-box; }
.ic { width: 22px; height: 22px; flex: none; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); overflow-x: hidden; }
img { display: block; }
a { color: var(--violet); text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.hidden { display: none !important; }

/* Language: every text comes in both languages; the <html lang> picks which one shows. */
html[lang='bg'] .en, html[lang='en'] .bg { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 0.95rem/1.2 'Inter', sans-serif; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(110, 60, 255, 0.7); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(110, 60, 255, 0.8); }
.btn-outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: var(--violet); }
.btn-white { background: #fff; color: var(--violet-dark); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font: 800 1.35rem 'Manrope', sans-serif; color: var(--ink); letter-spacing: -0.02em; }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { color: var(--fg); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--violet); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 0.35rem 0.6rem; font: 600 0.8rem 'Inter', sans-serif; color: var(--muted); cursor: pointer;
}
.lang-toggle:hover { color: var(--violet); border-color: var(--violet); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 4px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* --- Hero --- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 59, 255, 0.22), rgba(71, 191, 255, 0.12) 55%, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.hero-note { font-size: 0.875rem; color: var(--muted); }

/* App preview */
.mock {
  position: relative; border-radius: 14px; background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--border);
  font-size: 12.5px; line-height: 1.4;
}
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e1ea; }
.mock-body { display: grid; grid-template-columns: 46px 150px 1fr; min-height: 340px; }
.mock-rail { background: #1a1530; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; border-bottom-left-radius: 14px; }
.mock-ws { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 11px; }
.mock-rail span { width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
.mock-rail span.on { background: rgba(255, 255, 255, 0.35); }
.mock-side { background: #251d43; color: #cfc9e6; padding: 12px 10px; }
.mock-side p { margin: 0 0 4px; padding: 3px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; }
.mock-title { color: #fff; font-weight: 700; font-size: 13.5px; margin-bottom: 10px !important; }
.mock-label { color: #8e86ad; font-size: 11px; margin-top: 10px !important; }
.mock-ch.active { background: #6a4dff; color: #fff; }
.mock-ch.bold { color: #fff; font-weight: 700; display: flex; justify-content: space-between; }
.mock-ch em { font-style: normal; background: #ff4d8d; color: #fff; border-radius: 8px; padding: 0 6px; font-size: 10.5px; }
.mock-dm { display: flex; align-items: center; gap: 6px; }
.mock-dm i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #8e86ad; }
.mock-dm i.g { background: #22c55e; border-color: #22c55e; }
.mock-main { display: flex; flex-direction: column; padding: 0 14px 12px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.mock-call { background: #e8fbef; color: #15803d; font-weight: 600; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.mock-msg { display: flex; gap: 9px; margin-bottom: 12px; }
.mock-msg > i, .spot-msg > i {
  flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  color: #fff; font-style: normal; font-weight: 700; font-size: 12px;
}
.a1 { background: #e7548c; } .a2 { background: #2f9e8f; } .a3 { background: #e08a2e; }
.mock-msg small { color: var(--muted); margin-left: 4px; }
.mock-msg p { margin: 2px 0 0; }
.mock-msg q { display: block; quotes: none; border-left: 3px solid #6a4dff; padding: 2px 8px; margin: 3px 0; color: var(--muted); background: var(--bg-soft); border-radius: 0 5px 5px 0; }
.mock-react { display: inline-block; margin-top: 4px; border: 1px solid #c9bdfc; background: #f2edff; border-radius: 10px; padding: 0 7px; font-size: 11px; }
.mock-file { display: inline-block; border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px; margin-top: 4px !important; }
.mock-composer { margin-top: auto; border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; color: var(--muted); }
.mock-float {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px var(--border);
  padding: 10px 14px; display: flex; flex-direction: column; font-size: 12.5px; animation: float 6s ease-in-out infinite;
}
.mock-float small { color: var(--muted); }
.mock-meeting { right: -22px; top: 70px; border-left: 4px solid #6a4dff; }
.mock-task { left: -26px; bottom: 34px; flex-direction: row; align-items: center; gap: 8px; animation-delay: -3s; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 11px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mock-float { animation: none; } html { scroll-behavior: auto; } }

.replaces { padding: 8px 0 24px; }
.replaces p { font-weight: 500; margin: 0; }

/* --- Sections --- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .muted { font-size: 1.1rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature p { color: var(--muted); margin: 0; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.12), rgba(71, 191, 255, 0.14)); color: var(--violet); font-weight: 800;
}

.checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.55rem; }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 0.15em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: rgba(126, 59, 255, 0.12); color: var(--violet); font-size: 0.75rem; font-weight: 700; display: grid; place-items: center;
}

/* Spotlights */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spotlight + .spotlight { margin-top: 96px; }
.spotlight.reverse > :first-child { order: 2; }
.spotlight .muted { font-size: 1.08rem; }
.spot-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow), 0 0 0 1px var(--border); padding: 28px; }
.spot-msg { display: flex; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.spot-msg p { margin: 2px 0 0; }
.spot-dialog { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 9px; padding: 3px; font-size: 0.875rem; }
.seg > span { padding: 5px 12px; border-radius: 7px; color: var(--muted); }
.seg > span.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.spot-field { width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: 0.95rem; }

.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #15112a; padding: 14px; }
.tile { aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; position: relative; }
.tile i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; font-size: 1.3rem; background: rgba(255, 255, 255, 0.18); }
.tile small { position: absolute; left: 10px; bottom: 8px; color: #fff; font-size: 0.75rem; background: rgba(0, 0, 0, 0.35); padding: 1px 7px; border-radius: 6px; }
.t1 { background: linear-gradient(135deg, #7e3bff, #a76bff); box-shadow: 0 0 0 3px #47bfff; }
.t2 { background: linear-gradient(135deg, #2f9e8f, #4cc3b0); }
.t3 { background: linear-gradient(135deg, #e08a2e, #f0b35a); }
.t4 { background: linear-gradient(135deg, #3a63d8, #47bfff); }
.call-controls { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; padding-top: 6px; }
.call-controls span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); }
.call-controls { color: #fff; }
.call-controls .ic { width: 18px; height: 18px; }
.call-controls .end { background: #e5484d; color: #fff; font-weight: 700; }

/* --- Pricing --- */
.billing-toggle { display: flex; width: max-content; margin: -24px auto 40px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.billing-toggle button { border: 0; background: none; padding: 0.55rem 1.2rem; border-radius: 9px; font: 600 0.95rem 'Inter', sans-serif; color: var(--muted); cursor: pointer; }
.billing-toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.billing-toggle em { font-style: normal; color: #15803d; font-size: 0.8rem; margin-left: 0.25rem; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; margin-bottom: 24px; }
.plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 24px; background: var(--grad); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.plan-desc { color: var(--muted); font-size: 0.92rem; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 0.35rem; margin: 0.5rem 0 0; flex-wrap: wrap; }
.price b { font: 800 2.6rem/1 'Manrope', sans-serif; color: var(--ink); letter-spacing: -0.03em; }
.price b.price-custom { font-size: 1.7rem; line-height: 1.5; }
.price > span { color: var(--muted); font-size: 0.9rem; }
.price-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.25rem; }
.plan .checks { font-size: 0.94rem; }

.compare { margin-top: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.compare summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--violet); list-style: none; text-align: center; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: ' ▾'; }
.compare[open] summary::after { content: ' ▴'; }
.table-wrap { overflow-x: auto; padding: 0 12px 16px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.94rem; }
.compare th, .compare td { padding: 12px 14px; border-top: 1px solid var(--border); text-align: center; }
.compare thead th { border-top: 0; font-family: 'Manrope', sans-serif; color: var(--ink); }
.compare tbody th { text-align: left; font-weight: 500; color: var(--fg); }
.compare td { color: var(--muted); }

/* --- Download --- */
.section-dark { background: #120e24; color: #d9d4ee; position: relative; overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(126, 59, 255, 0.35), transparent); pointer-events: none;
}
.section-dark .container { position: relative; }
.section-dark h2 { color: #fff; }
.section-dark .muted { color: #a59fc2; }
.section-dark .eyebrow { color: var(--blue); }
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.download {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff;
}
.download.available { background: linear-gradient(160deg, rgba(139, 61, 255, 0.45), rgba(71, 191, 255, 0.25)); border-color: rgba(255, 255, 255, 0.25); cursor: pointer; }
.download.available:hover { transform: translateY(-3px); transition: transform 0.2s; }
.dl-icon { margin-bottom: 0.75rem; color: var(--blue); }
.dl-icon .ic { width: 30px; height: 30px; }
.download.available .dl-icon { color: #fff; }
.download small { color: #a59fc2; }
.dl-state { margin-top: 1rem; font-weight: 600; font-size: 0.9rem; color: #fff; }
.dl-state.soon { color: #a59fc2; font-weight: 500; }

.feature-grid.three { grid-template-columns: repeat(3, 1fr); }

/* --- FAQ --- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--violet); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* --- CTA --- */
.cta { padding: 0 0 96px; }
.cta-inner {
  background: var(--grad); border-radius: 28px; padding: 64px 32px; text-align: center; color: #fff;
  max-width: calc(1180px - 48px); box-shadow: var(--shadow);
}
.cta h2 { color: #fff; }
.cta p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1.75rem; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 1rem; }
.footer-grid a:not(.logo) { display: block; color: var(--fg); margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-grid a:not(.logo):hover { color: var(--violet); }
.footer-grid .logo { margin-bottom: 0.75rem; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }

/* --- Legal pages --- */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal .draft { background: #fff7e0; border: 1px solid #f3d27a; border-radius: 12px; padding: 12px 16px; color: #7a5a00; }

/* --- Responsive --- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .hero-inner, .spotlight { grid-template-columns: 1fr; gap: 40px; }
  .spotlight.reverse > :first-child { order: 0; }
  .feature-grid, .feature-grid.three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mock-meeting { right: 8px; }
  .mock-task { left: 8px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-actions .btn-primary { display: none; }
  .hero { padding-top: 40px; }
  .section { padding: 64px 0; }
  .feature-grid, .feature-grid.three, .plans, .downloads { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-rail, .mock-side { display: none; }
  .mock-main { padding-top: 4px; }
  .mock-meeting { top: auto; bottom: -18px; right: 8px; }
  .mock-task { display: none; }
  .cta-inner { border-radius: 20px; padding: 44px 20px; }
  .billing-toggle { margin-top: -16px; }
}
