/* Mahan VoIP — landing page. Colours follow the shared Mahan theme. */
:root {
  color-scheme: light;
  --font: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f1f7;
  --line: #e6e7ef;
  --ink: #1d1f2b;
  --ink-2: #4e5162;
  --ink-3: #7c8094;
  --accent: #5c67f7;
  --accent-2: #8a5cf5;
  --accent-ink: #ffffff;
  --accent-soft: #ecedfe;
  --navy: #1f2353;
  --navy-2: #151838;
  --pink: #e354d4;  --pink-soft: #fcebfa;
  --orange: #f5784f; --orange-soft: #feeee8;
  --purple: #9a5cf5; --purple-soft: #f2eafe;
  --sky: #0ca3e7;   --sky-soft: #e4f5fd;
  --green: #13a06f; --green-soft: #e1f6ee;
  --amber: #c47a00; --amber-soft: #fdf1d9;
  --red: #e04848;   --red-soft: #fde8e8;
  --shadow-sm: 0 1px 2px rgb(30 35 83 / .05), 0 4px 14px rgb(30 35 83 / .05);
  --shadow-lg: 0 30px 80px -20px rgb(30 35 83 / .35), 0 8px 24px rgb(30 35 83 / .12);
  --radius: 18px;
  --header-bg: rgb(255 255 255 / .78);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121216;
  --surface: #1c1c21;
  --surface-2: #24242a;
  --line: #2d2d34;
  --ink: #ecedf2;
  --ink-2: #b4b6c2;
  --ink-3: #8a8d9c;
  --accent: #7b84ff;
  --accent-soft: #262a52;
  --navy: #191b36;
  --navy-2: #0f1024;
  --pink-soft: #3a2036; --orange-soft: #3a2620; --purple-soft: #2c2240;
  --sky-soft: #15303d; --green-soft: #143027; --amber-soft: #352a14; --red-soft: #3a1c1c;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-lg: 0 30px 80px -20px rgb(0 0 0 / .7);
  --header-bg: rgb(18 18 22 / .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.85; font-size: 16px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 24px -8px rgb(92 103 247 / .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgb(92 103 247 / .7); }
.btn-ghost { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .22); }
.btn-ghost:hover { background: rgb(255 255 255 / .15); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-color: var(--line); }
.nav { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; line-height: 1.2; }
.brand small { display: block; font-weight: 500; font-size: 11px; opacity: .7; letter-spacing: .3px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.scrolled .brand { color: var(--ink); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: rgb(255 255 255 / .82); padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.scrolled .nav-links a { color: var(--ink-2); }
.scrolled .nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); color: #fff;
}
.icon-btn svg { width: 18px; height: 18px; }
.scrolled .icon-btn { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }

/* hero */
.hero {
  position: relative; color: #fff; padding: 140px 0 0; overflow: hidden;
  background:
    radial-gradient(900px 500px at 15% 10%, rgb(138 92 245 / .45), transparent 60%),
    radial-gradient(800px 500px at 90% 30%, rgb(92 103 247 / .5), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; text-align: center; max-width: 860px; margin-inline: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13px;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); color: rgb(255 255 255 / .9);
}
.pill b { background: #fff; color: var(--navy); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 56px); font-weight: 900; margin: 22px 0 18px; letter-spacing: -.5px; }
.grad { background: linear-gradient(90deg, #a5acff, #e69bf5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: rgb(255 255 255 / .78); max-width: 720px; margin-inline: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 32px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); color: rgb(255 255 255 / .8); direction: ltr; }

.hero-shot { position: relative; margin: 56px auto -1px; max-width: 1080px; perspective: 1600px; }
.frame {
  border-radius: 14px 14px 0 0; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg);
  border: 1px solid rgb(255 255 255 / .14); border-bottom: 0;
}
.hero-shot .frame { transform: rotateX(8deg); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-shot.in .frame { transform: rotateX(0); }
.frame-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); direction: ltr; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-inline: auto; font-size: 12px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 40px; }
.hero-shot .frame img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.shot-dark { display: none !important; }
[data-theme="dark"] .shot-light { display: none !important; }
[data-theme="dark"] .shot-dark { display: block !important; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.5; animation: bob 6s ease-in-out infinite; text-align: start;
}
.float-card b { display: block; font-size: 20px; font-weight: 800; }
.float-card .dot-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.float-card .dot-ic svg { width: 20px; height: 20px; }
.fc-1 { top: 18%; inset-inline-start: -40px; }
.fc-2 { top: 46%; inset-inline-end: -48px; animation-delay: -2s; }
.fc-3 { top: 76%; inset-inline-start: -24px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(19 160 111 / .6); animation: ping 1.8s infinite; margin-inline-end: 4px; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgb(19 160 111 / 0); } 100% { box-shadow: 0 0 0 0 rgb(19 160 111 / 0); } }

/* sections */
section { position: relative; }
.section { padding: 100px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.head h2, .split h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; margin-bottom: 14px; letter-spacing: -.3px; }
.head p { color: var(--ink-2); font-size: 17px; }

/* compat strip */
.compat { padding: 34px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.compat .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.compat p { color: var(--ink-3); font-size: 14px; }
.compat ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; justify-content: center; }
.compat li { font-weight: 800; font-size: 18px; color: var(--ink-3); letter-spacing: .2px; direction: ltr; transition: color .2s; }
.compat li:hover { color: var(--accent); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -1px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 32px; font-weight: 900; color: var(--accent); line-height: 1.3; }
.stat span { color: var(--ink-2); font-size: 14px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { font-size: 19px; font-weight: 800; margin: 18px 0 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tone-soft, var(--accent-soft)); color: var(--tone, var(--accent)); }
.ic svg { width: 24px; height: 24px; }

/* tabs showcase */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.tab {
  font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: all .2s;
}
.tab:hover { color: var(--accent); border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 20px -8px rgb(92 103 247 / .6); }
.panel { display: none; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.panel.active { display: grid; animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.panel h3 { font-size: 26px; font-weight: 900; margin-bottom: 12px; }
.panel > div > p { color: var(--ink-2); margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 32px; color: var(--ink-2); font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313a06f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks b { color: var(--ink); }
.shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-lg); cursor: zoom-in; position: relative;
}
.shot img { width: 100%; height: auto; }
.shot.crop img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.stack { position: relative; }
.stack .shot + .shot { position: absolute; width: 52%; inset-inline-start: -6%; bottom: -10%; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split p.sub { color: var(--ink-2); font-size: 17px; margin-bottom: 22px; }

/* IVR spotlight */
.ivr { background: linear-gradient(180deg, var(--bg), var(--surface)); }
.ivr .shot { max-width: 1080px; margin: 0 auto; }
.ivr-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1080px; margin: 36px auto 0; }
.ivr-points div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 14px; color: var(--ink-2); }
.ivr-points b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* phones */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phone-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.phone-card .shot { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
.phone-card .shot img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top; }
.phone-card > div { padding: 22px 24px 26px; }
.phone-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.phone-card p { color: var(--ink-2); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--tone-soft); color: var(--tone); margin-bottom: 10px; }

/* dark security band */
.band {
  color: #fff; overflow: hidden;
  background: radial-gradient(700px 400px at 85% 0%, rgb(92 103 247 / .4), transparent 60%), linear-gradient(160deg, var(--navy-2), var(--navy));
}
.band .eyebrow { background: rgb(255 255 255 / .1); color: #c3c7ff; }
.band p.sub { color: rgb(255 255 255 / .75); }
.band .checks li { color: rgb(255 255 255 / .82); }
.band .checks b { color: #fff; }
.band .checks li::before { background-color: rgb(19 160 111 / .25); }
.term {
  direction: ltr; text-align: left; background: #0b0c1a; border: 1px solid rgb(255 255 255 / .12); border-radius: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.8; color: #d6d8f5;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.term .frame-bar { background: #15162b; border-color: rgb(255 255 255 / .08); }
.term .frame-bar span { background: transparent; border: 0; color: #8086b8; }
.term pre { margin: 0; padding: 20px 22px; overflow-x: auto; white-space: pre; }
.term .c { color: #6b72a8; } .term .g { color: #5ee0a4; } .term .p { color: #a5acff; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.mini { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: 14px; padding: 16px; font-size: 14px; color: rgb(255 255 255 / .75); }
.mini b { display: block; color: #fff; font-size: 15px; }

/* roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; }
.role::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tone); }
.role h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.role p { color: var(--ink-2); font-size: 15px; }

/* specs */
.specs { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.specs th, .specs td { padding: 16px 22px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 220px; font-weight: 700; color: var(--ink); background: var(--surface-2); }
.specs td { color: var(--ink-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, persian); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step code { direction: ltr; display: block; text-align: left; margin-top: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--ink); overflow-x: auto; white-space: nowrap; }

/* faq */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; font-size: 15px; }

/* final cta */
.cta-box {
  border-radius: 28px; padding: 64px 32px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 20% 0%, rgb(227 84 212 / .35), transparent 60%), linear-gradient(135deg, var(--accent), #3d34b8);
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; margin-bottom: 12px; }
.cta-box p { color: rgb(255 255 255 / .85); max-width: 640px; margin: 0 auto 28px; font-size: 17px; }
.cta-box .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.contact-list { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .brand { color: var(--ink); }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--accent); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(10 11 25 / .88); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; animation: fade .2s; }
.lightbox img { max-width: min(1440px, 100%); max-height: 88vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox p { color: #fff; text-align: center; margin-top: 12px; font-size: 14px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

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

/* responsive */
@media (max-width: 1080px) {
  .fc-1, .fc-3 { inset-inline-start: 8px; } .fc-2 { inset-inline-end: 8px; }
  .ivr-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; top: 72px; inset-inline: 16px; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 10px; box-shadow: var(--shadow-lg); display: none; margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .scrolled .nav-links a { color: var(--ink); display: block; padding: 12px 14px; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn { display: none; }
  .grid, .phones, .roles, .steps { grid-template-columns: 1fr 1fr; }
  .panel.active, .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev > :first-child { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stack .shot + .shot { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding-top: 112px; }
  .hero-cta .btn { width: 100%; }
  .grid, .phones, .roles, .steps, .ivr-points, .mini-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tab { flex: none; }
  .specs th { width: auto; }
  .specs th, .specs td { display: block; padding: 10px 16px; }
  .specs th { border-bottom: 0; padding-top: 14px; }
  .cta-box { padding: 44px 20px; border-radius: 20px; }
  .frame-bar span { padding: 1px 16px; }
  .stat b { font-size: 26px; }
}

/* language switch */
.lang-btn { width: auto; padding: 0 12px; font: inherit; font-weight: 700; font-size: 14px; }

/* softphone */
.softphone { overflow: hidden; background: radial-gradient(800px 400px at 80% 10%, var(--accent-soft), transparent 70%), var(--bg); }
.sp-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.platforms span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.platforms svg { width: 15px; height: 15px; }
.sp-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-feat { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.sp-feat .ic { width: 38px; height: 38px; flex: none; }
.sp-feat .ic svg { width: 18px; height: 18px; }
.sp-feat b { display: block; font-size: 14.5px; line-height: 1.6; }
.sp-feat span { color: var(--ink-2); font-size: 13.5px; line-height: 1.7; display: block; }
.devices { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.device {
  width: 230px; border-radius: 38px; padding: 9px; background: #0c0d1b; box-shadow: var(--shadow-lg);
  border: 1px solid rgb(255 255 255 / .08); position: relative; cursor: zoom-in; margin: 0;
}
.device::before { content: ""; position: absolute; top: 18px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: #0c0d1b; border-radius: 999px; z-index: 2; }
.device img { border-radius: 30px; width: 100%; aspect-ratio: 585 / 1266; object-fit: cover; }
.device.side { width: 200px; opacity: .97; }
.device.d2 { z-index: 3; width: 250px; }
.device.d1 { margin-inline-end: -56px; margin-top: 70px; transform: rotate(-7deg); z-index: 1; }
.device.d3 { margin-inline-start: -56px; margin-top: 70px; transform: rotate(7deg); z-index: 1; }
[dir="rtl"] .device.d1 { transform: rotate(7deg); }
[dir="rtl"] .device.d3 { transform: rotate(-7deg); }
.sp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }

@media (max-width: 960px) {
  .sp-grid { grid-template-columns: 1fr; }
  .devices { min-height: 0; padding: 20px 0; }
  .sp-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sp-feats, .sp-strip { grid-template-columns: 1fr; }
  .device.side { display: none; }
  .device.d2 { width: 240px; }
}

figure.shot, figure.device { margin: 0; }
.shot:focus-visible, .device:focus-visible, .tab:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[dir="ltr"] .checks li::before { background-position: center; }
.phone-card .shot img[width="585"], .phone-card .shot img[width="420"] { object-position: top; }

/* engines diagram */
.engine-diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); }
.eng-src { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eng { border-radius: 16px; padding: 18px; background: var(--tone-soft); border: 1px solid var(--line); text-align: center; }
.eng b { display: block; font-size: 20px; font-weight: 900; color: var(--tone); direction: ltr; }
.eng span { display: block; font-size: 14px; font-weight: 700; color: var(--ink); direction: ltr; }
.eng small { display: block; font-size: 12.5px; color: var(--ink-2); direction: ltr; margin-top: 4px; }
.eng-link { display: block; width: 100%; height: 70px; overflow: visible; }
.eng-link path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.eng-hub { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 18px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--navy), #3d34b8); box-shadow: 0 16px 40px -16px rgb(61 52 184 / .6); }
.eng-hub .brand-mark { width: 48px; height: 48px; }
.eng-hub b { display: block; font-size: 20px; font-weight: 900; }
.eng-hub span:not(.brand-mark) { font-size: 14px; color: rgb(255 255 255 / .8); }
.eng-out { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.eng-out span { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 640px) { .engine-diagram { padding: 18px; } .eng-src { gap: 10px; } .eng { padding: 12px; } .eng b { font-size: 17px; } }
.split > *, .panel > *, .sp-grid > * { min-width: 0; }

/* Teams */
.teams-visual { position: relative; padding-bottom: 40px; }
.teams-visual .teams-tab { position: absolute; width: 38%; inset-inline-end: -12px; bottom: 0; }
.sp-strip { grid-template-columns: repeat(2, 1fr); }

/* full menu map */
.menu-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.mm-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.mm-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--navy); color: #fff; font-weight: 800; font-size: 17px; }
.mm-head svg { width: 20px; height: 20px; color: #a5acff; }
.mm-head span { margin-inline-start: auto; font-size: 12px; font-weight: 700; background: rgb(255 255 255 / .12); border-radius: 999px; padding: 1px 10px; }
.mm-group > ul { list-style: none; margin: 0; padding: 6px 0; }
.mm-group > ul > li { padding: 10px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 4px 14px; align-items: baseline; }
.mm-group > ul > li:last-child { border-bottom: 0; }
.mm-group b { font-size: 14.5px; color: var(--ink); }
.mm-group > ul > li > span { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.mm-sub { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mm-sub li { font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

@media (max-width: 1200px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; top: 72px; inset-inline: 16px; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 10px; box-shadow: var(--shadow-lg); display: none; margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .scrolled .nav-links a { color: var(--ink); display: block; padding: 12px 14px; }
  .nav-actions { margin-inline-start: auto; }
}
@media (max-width: 960px) {
  .menu-map { grid-template-columns: 1fr; }
  .teams-visual .teams-tab { width: 42%; }
}
@media (max-width: 640px) {
  .sp-strip { grid-template-columns: 1fr; }
  .mm-group > ul > li { grid-template-columns: 1fr; padding: 10px 16px; }
  .teams-visual .teams-tab { position: static; width: 70%; margin: 16px auto 0; }
  .teams-visual { padding-bottom: 0; }
}

/* product video */
.video-sec { padding-bottom: 40px; }
.video-wrap { max-width: 1080px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #0c0d1b; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.video-wrap video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0c0d1b; }
