/*
  Zirek website: a hand-written port of the Stitch design.
  No framework and no external requests. Fonts, scripts and styles are all served from this site,
  which keeps the privacy policy's "no tracking" promise true for the site itself.
*/
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #08090d;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #7d8aa0; /* #64748b measured 4.0:1 on the page background; this clears 4.5:1 */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --orange: #ff6600;
  --orange-400: #fb923c;
  --amber: #fbbf24;
  --emerald: #34d399;
  --emerald-500: #10b981;
  --btn-grad: linear-gradient(135deg, #ff7a00 0%, #ff4d00 50%, #d83500 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: #ea580c; color: #fff; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
section[id] { scroll-margin-top: 104px; }
:focus-visible { outline: 2px solid var(--orange-400); outline-offset: 3px; border-radius: 8px; }

/* Negative tracking only for Latin text: letter-spacing breaks the joins of Arabic script. */
:lang(en) .tight, :lang(kmr) .tight { letter-spacing: -0.02em; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232738; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ff5500; }

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

.container { max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 100;
  padding: 8px 16px; border-radius: 8px; background: #fff; color: #000; font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.bg canvas.on { opacity: 0.6; }
.glow { position: absolute; border-radius: 50%; }
.glow-1 { top: -160px; right: 25%; width: 700px; height: 700px; background: rgba(234, 88, 12, 0.15); filter: blur(140px); }
.glow-2 { top: 50%; left: -128px; width: 600px; height: 600px; background: rgba(245, 158, 11, 0.1); filter: blur(150px); }
.glow-3 { bottom: 40px; right: 40px; width: 500px; height: 500px; background: rgba(194, 65, 12, 0.15); filter: blur(130px); }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 70%, transparent 100%);
}
.site-header, main, .footer { position: relative; z-index: 1; }

/* ---------- Surfaces ---------- */
.glass-panel {
  background: rgba(15, 17, 26, 0.65);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.glass-card:hover { border-color: rgba(255, 102, 0, 0.4); transform: translateY(-4px); box-shadow: 0 16px 40px -10px rgba(255, 85, 0, 0.2); }
.grad-text {
  background: linear-gradient(135deg, #ffffff 10%, #ffc078 50%, #ff5500 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons and pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 32px; border-radius: 16px; border: 0;
  font-size: 1rem; font-weight: 800; white-space: nowrap; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--btn-grad); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); box-shadow: 0 10px 30px -5px rgba(255, 85, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3); }
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 15px 40px -5px rgba(255, 85, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.4); }
.btn-ghost { color: var(--text-2); font-weight: 600; padding-inline: 24px; }
.btn-ghost:hover { color: #fff; }
.btn-ghost svg { color: var(--orange-400); }
.btn .chip { background: rgba(0, 0, 0, 0.2); color: rgba(255, 255, 255, 0.9); font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.btn-cta { padding: 8px 16px; border-radius: 12px; font-size: 0.8125rem; gap: 8px; }
.btn-cta svg { width: 16px; height: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px; border-radius: 999px;
  background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--orange-400); font-size: 0.75rem; font-weight: 700;
}
.pill-lg { padding: 6px 16px; font-size: 0.8125rem; font-weight: 600; box-shadow: 0 0 50px -10px rgba(255, 85, 0, 0.1); }
.ping { position: relative; display: inline-flex; width: 8px; height: 8px; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot, var(--orange)); }
.ping::before { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.75; }
.ping.green { --dot: var(--emerald-500); }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.5; } }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 20px; inset-inline: 0; z-index: 50; padding-inline: 16px; }
.nav {
  position: relative; max-width: 1280px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-radius: 16px;
}
.nav summary { list-style: none; cursor: pointer; }
.nav summary::-webkit-details-marker { display: none; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(to top right, #ea580c, #f59e0b); color: #fff;
  font-size: 20px; font-weight: 900; line-height: 1;
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3); transition: transform 0.3s ease;
}
.brand:hover .logo { transform: scale(1.05); }
.brand-row { display: flex; align-items: center; gap: 8px; }
.wordmark { font-size: 1.25rem; font-weight: 800; color: #fff; direction: ltr; letter-spacing: -0.02em; line-height: 1.3; }
.wordmark b { color: var(--orange); font-weight: inherit; }
.ai-badge {
  padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--orange-400); background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.3); direction: ltr;
}
.brand-sub { display: none; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.nav-links { display: none; align-items: center; gap: 32px; font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.nav-links a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.nav-links a:hover { color: var(--orange-400); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem; font-weight: 600; color: var(--text-2); transition: background 0.2s;
}
.chip-btn:hover { background: rgba(255, 255, 255, 0.1); }
.chip-btn svg { width: 15px; height: 15px; color: var(--orange-400); }
.lang, .mnav { position: static; }
.lang-label { display: none; }
.menu-panel {
  position: absolute; top: calc(100% + 8px); padding: 6px; border-radius: 14px; display: grid; gap: 2px;
  background: rgba(15, 17, 26, 0.96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.lang-panel { inset-inline-end: 20px; min-width: 190px; }
.mnav-panel { inset-inline: 0; }
.menu-panel a { padding: 10px 14px; border-radius: 10px; font-size: 0.875rem; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.menu-panel a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.menu-panel a[aria-current="page"] { color: var(--orange-400); font-weight: 700; }

@media (max-width: 479px) {
  /* visually hidden, not display:none: the icon-only button still needs a name for screen readers */
  .btn-cta .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .btn-cta { padding: 9px; }
  .ai-badge { display: none; }
}
@media (min-width: 640px) {
  .brand-sub { display: block; }
  .lang-label { display: inline; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .mnav { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 144px; padding-bottom: 96px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero .pill-lg { margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.25rem, 1.1rem + 4.4vw, 4.5rem); font-weight: 900; line-height: 1.25; margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; width: 100%; }
@media (max-width: 639px) {
  .hero-cta .btn { width: 100%; }
  .br-sm { display: none; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 192px; padding-bottom: 128px; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 32px; }
}

/* ---------- Extension mockup ---------- */
.mock-wrap { position: relative; display: flex; justify-content: center; }
.mock-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 24px; filter: blur(64px);
  background: linear-gradient(to top right, rgba(249, 115, 22, 0.2), rgba(245, 158, 11, 0.1), transparent);
}
.mock {
  position: relative; width: 100%; max-width: 390px; margin: 0; padding: 20px; border-radius: 32px;
  background: rgba(15, 17, 26, 0.8); border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); transition: transform 0.5s ease; font-size: 12px; line-height: 1.5;
}
.mock:hover { transform: scale(1.02); }
.mock::before {
  content: ""; position: absolute; top: 0; inset-inline: 32px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(251, 146, 60, 0.5), transparent);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mock-brand { display: flex; align-items: center; gap: 10px; }
.mock-logo { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #ea580c, #f97316); color: #fff; font-weight: 800; font-size: 16px; }
.mock-name { display: block; font-size: 14px; font-weight: 800; color: #fff; direction: ltr; text-align: start; line-height: 1.2; }
.mock-tag { font-size: 10px; font-weight: 500; color: rgba(251, 146, 60, 0.9); }
.mock-status { display: flex; align-items: center; gap: 8px; }
.ready {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700;
  color: var(--emerald); background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3);
}
.ready::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.icon-box { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--amber); }
.icon-box svg { width: 13px; height: 13px; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); }
.acct { margin-bottom: 14px; }
.acct-email { display: block; font-size: 11px; color: var(--text-2); direction: ltr; text-align: end; }
.acct-plan { font-size: 10px; color: var(--orange-400); }
.mbtn { font-size: 11px; font-weight: 600; color: rgba(251, 146, 60, 0.9); padding: 2px 8px; border-radius: 6px; background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.2); white-space: nowrap; }
.mgrid { display: grid; grid-template-columns: 7fr 5fr; gap: 8px; margin-bottom: 16px; }
.mselect { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); font-weight: 600; color: #e2e8f0; }
.mselect svg { width: 10px; height: 10px; color: var(--muted); }
.mstart { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--btn-grad); color: #fff; font-weight: 900; box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3); }
.mstart svg { width: 14px; height: 14px; }
.mtoggles { display: grid; gap: 8px; margin-bottom: 16px; }
.mtitle { font-weight: 700; color: #e2e8f0; }
.msub { font-size: 10px; color: var(--muted); }
.switch { width: 40px; height: 20px; padding: 2px; border-radius: 999px; background: var(--emerald-500); display: flex; justify-content: flex-end; }
.switch::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.msettings { padding: 12px; margin-bottom: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.msettings-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-weight: 700; color: #e2e8f0; }
.msettings-head span { display: flex; align-items: center; gap: 6px; }
.msettings-head svg { width: 13px; height: 13px; color: var(--orange-400); }
.msettings-head svg.up { color: var(--muted); width: 10px; height: 10px; }
.mvol { display: grid; gap: 8px; margin-bottom: 12px; font-size: 11px; }
.mvol-row { display: flex; justify-content: space-between; color: var(--muted); }
.mval { color: var(--orange-400); font-weight: 700; }
.mtrack { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.mtrack i { display: block; height: 100%; border-radius: 999px; background: #f97316; }
.mtrack .w20 { width: 20%; }
.mtrack .w100 { width: 100%; background: linear-gradient(to right, #f97316, #fbbf24); }
.mmodel { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.05); font-size: 11px; color: var(--muted); }
.mmodel b { color: var(--emerald); font-weight: 600; font-size: 10px; direction: ltr; }
.mkey { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-radius: 12px; background: rgba(249, 115, 22, 0.05); border: 1px solid rgba(249, 115, 22, 0.2); font-size: 11px; color: var(--text-2); }
.mkey span { display: flex; align-items: center; gap: 6px; }
.mkey svg { width: 13px; height: 13px; color: var(--amber); }
.mkey .mbtn { font-weight: 700; }
.mfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 10px; color: var(--muted); }
.mfoot .on { display: flex; align-items: center; gap: 6px; color: var(--emerald); }
.mfoot .ping { width: 6px; height: 6px; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 4px; border-radius: 999px; transform-origin: bottom; animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(1) { height: 12px; animation-delay: 0.1s; background: #f97316; }
.eq i:nth-child(2) { height: 16px; animation-delay: 0.3s; background: #fb923c; }
.eq i:nth-child(3) { height: 8px; animation-delay: 0.2s; background: #fbbf24; }
.eq i:nth-child(4) { height: 14px; animation-delay: 0.4s; background: #f97316; }
.eq i:nth-child(5) { height: 10px; animation-delay: 0.15s; background: #fdba74; }

/* ---------- Sections ---------- */
.sec { padding-block: 96px; }
.sec-head { max-width: 48rem; margin: 0 auto 64px; text-align: center; }
.sec-head h2 { font-size: clamp(1.875rem, 1.1rem + 2.8vw, 3rem); font-weight: 900; line-height: 1.3; margin: 16px 0; }
.sec-head p { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); }

/* ---------- Demo ---------- */
.demo { position: relative; max-width: 64rem; margin-inline: auto; padding: 16px; border-radius: 24px; border-color: var(--line-2); overflow: hidden; }
.screen {
  position: relative; min-height: 340px; padding: 16px; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  background:
    linear-gradient(to top, #000 0%, rgba(2, 6, 23, 0.8) 50%, transparent 100%),
    radial-gradient(ellipse at center, rgba(30, 58, 138, 0.2), rgba(2, 6, 23, 0.9) 60%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.screen-top { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.vid-title {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; direction: ltr;
  background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.75rem; font-weight: 500; color: #e2e8f0;
}
.vid-title i { width: 14px; height: 14px; border-radius: 50%; background: #dc2626; display: grid; place-items: center; }
.vid-title i::after { content: ""; margin-inline-start: 2px; border-style: solid; border-width: 3px 0 3px 5px; border-color: transparent transparent transparent #fff; }
.hud { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; direction: ltr; background: rgba(15, 17, 26, 0.9); border: 1px solid rgba(249, 115, 22, 0.4); font-size: 0.75rem; font-weight: 700; color: #fff; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); }
.hud small { font-size: 10px; font-weight: 600; color: var(--orange-400); background: rgba(249, 115, 22, 0.1); padding: 1px 6px; border-radius: 4px; }
.hud .ping { width: 8px; height: 8px; }
.screen-mid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-block: 8px; }
.speaker {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(to top right, #ea580c, #f59e0b); color: #fff;
  box-shadow: 0 0 50px -10px rgba(255, 85, 0, 0.45); transition: filter 0.4s ease, transform 0.3s ease;
}
.speaker:hover { transform: scale(1.1); }
.speaker svg { width: 32px; height: 32px; }
.bars { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; max-width: 28rem; height: 64px; transition: opacity 0.4s ease; }
.bars i { width: 6px; border-radius: 999px; animation: eq 1s ease-in-out infinite alternate; transition: background-color 0.4s ease; }
.bars i:nth-child(1) { height: 40%; animation-duration: 0.8s; background: #f97316; }
.bars i:nth-child(2) { height: 70%; animation-duration: 1.1s; background: #fb923c; }
.bars i:nth-child(3) { height: 90%; animation-duration: 0.7s; background: #fbbf24; }
.bars i:nth-child(4) { height: 55%; animation-duration: 1.3s; background: #f97316; }
.bars i:nth-child(5) { height: 100%; animation-duration: 0.9s; background: #fff; }
.bars i:nth-child(6) { height: 80%; animation-duration: 1.2s; background: #fb923c; }
.bars i:nth-child(7) { height: 45%; animation-duration: 0.6s; background: #ea580c; }
.bars i:nth-child(8) { height: 95%; animation-duration: 1s; background: #fcd34d; }
.bars i:nth-child(9) { height: 60%; animation-duration: 1.4s; background: #f97316; }
.bars i:nth-child(10) { height: 85%; animation-duration: 0.75s; background: #fff; }
.bars i:nth-child(11) { height: 50%; animation-duration: 1.1s; background: #fb923c; }
.bars i:nth-child(12) { height: 75%; animation-duration: 0.95s; background: #f59e0b; }
.sub { position: relative; display: flex; justify-content: center; min-height: 3.6em; text-align: center; }
.sub p {
  align-self: flex-end; max-width: 42rem; padding: 10px 24px; border-radius: 16px;
  background: rgba(67, 20, 7, 0.7); border: 1px solid rgba(249, 115, 22, 0.4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fed7aa; font-weight: 700; font-size: clamp(0.875rem, 0.8rem + 0.45vw, 1.125rem); line-height: 1.8;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3); transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.demo[data-view="original"] .bars { opacity: calc(0.25 + var(--vol, 0.25) * 0.75); }
.demo[data-view="original"] .bars i { background: #94a3b8; }
.demo[data-view="original"] .speaker { filter: grayscale(1) brightness(0.7); }
.demo[data-view="original"] .sub p { background: rgba(15, 23, 42, 0.75); border-color: rgba(255, 255, 255, 0.15); color: #e2e8f0; font-weight: 500; }
.controls { display: grid; gap: 16px; align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.75rem; }
.seg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.seg button {
  padding: 8px 16px; border-radius: 12px; cursor: pointer; font-size: 0.75rem; font-weight: 500;
  color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg button:hover { background: rgba(255, 255, 255, 0.1); }
.seg button[aria-pressed="true"] { background: #c2410c; color: #fff; font-weight: 700; border-color: transparent; box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.25); }
.seg-sm button { padding: 4px 12px; border-radius: 8px; }
.dialect { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.vol { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.vol input { width: 112px; accent-color: #f97316; cursor: pointer; }
.vol output { min-width: 3.2em; color: var(--orange-400); font-weight: 700; }
.demo-note { margin-top: 16px; text-align: center; font-size: 0.75rem; color: var(--faint); }
@media (min-width: 640px) {
  .demo { padding: 32px; }
  .screen { aspect-ratio: 16 / 9; min-height: 0; padding: 32px; }
  .speaker { width: 80px; height: 80px; }
  .speaker svg { width: 40px; height: 40px; }
}
@media (min-width: 768px) {
  .controls { grid-template-columns: repeat(3, 1fr); }
  .controls .seg:first-child { justify-content: flex-start; }
  .vol { justify-content: flex-end; }
}

/* ---------- Features ---------- */
.features { display: grid; gap: 24px; }
.feature { display: flex; flex-direction: column; justify-content: space-between; padding: 32px; border-radius: 24px; }
.ficon {
  width: 56px; height: 56px; margin-bottom: 24px; border-radius: 16px; display: grid; place-items: center;
  color: var(--orange-400); background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.3); transition: transform 0.3s ease;
}
.ficon svg { width: 28px; height: 28px; }
.ficon.amber { color: var(--amber); background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
.ficon.emerald { color: var(--emerald); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); }
.feature:hover .ficon { transform: scale(1.1); }
.feature h3 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; color: #fff; line-height: 1.5; }
.feature p { margin-bottom: 16px; font-size: 0.875rem; line-height: 1.85; color: var(--muted); }
.ffoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.75rem; font-weight: 600; color: var(--orange-400); }
.ffoot.amber { color: var(--amber); }
.ffoot.emerald { color: var(--emerald); }
.ffoot a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Works-on strip ---------- */
.strip { padding-block: 64px; border-block: 1px solid rgba(255, 255, 255, 0.1); }
.strip-title { margin-bottom: 40px; text-align: center; font-size: 0.8125rem; font-weight: 700; color: var(--orange-400); }
:lang(en) .strip-title, :lang(kmr) .strip-title { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.strip-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 64px; margin: 0; padding: 0; list-style: none; opacity: 0.8; }
.strip-list li { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: #fff; }
.strip-list svg { width: 26px; height: 26px; }
.strip-note { margin-top: 32px; text-align: center; font-size: 0.8125rem; color: var(--faint); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 32px; }
.step { padding: 32px; border-radius: 24px; }
.step-n {
  width: 48px; height: 48px; margin-bottom: 24px; border-radius: 12px; display: grid; place-items: center;
  background: #ea580c; color: #fff; font-size: 1.25rem; font-weight: 900; box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.3);
}
.step:last-child .step-n { background: linear-gradient(to right, #f97316, #fbbf24); box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4); }
.step h3 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.step p { font-size: 0.875rem; line-height: 1.85; color: var(--muted); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 24px; max-width: 64rem; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 24px; }
.plan.featured {
  border-color: rgba(255, 102, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 50px -10px rgba(255, 85, 0, 0.35);
}
.plan-badge { position: absolute; top: -13px; inset-inline-start: 24px; padding: 3px 12px; border-radius: 999px; background: var(--btn-grad); color: #fff; font-size: 0.75rem; font-weight: 800; }
.plan h3 { font-size: 1.125rem; font-weight: 700; color: var(--text-2); }
.plan-desc { font-size: 0.8125rem; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; }
.amount { font-size: 2.75rem; font-weight: 900; line-height: 1; color: #fff; direction: ltr; unicode-bidi: isolate; }
.per { font-size: 0.875rem; color: var(--muted); }
.plan ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--text-2); }
.plan li { display: flex; align-items: flex-start; gap: 10px; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--emerald); }
.plan-soon {
  margin-top: auto; padding: 12px; border-radius: 14px; text-align: center; font-size: 0.875rem; font-weight: 700;
  color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.15);
}
.featured .plan-soon { color: var(--orange-400); border-color: rgba(249, 115, 22, 0.35); background: rgba(249, 115, 22, 0.06); }
.plans-note { max-width: 48rem; margin: 40px auto 0; text-align: center; font-size: 0.875rem; line-height: 1.9; color: var(--muted); }
.plans-note strong { color: var(--text-2); }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Final call to action ---------- */
.cta { position: relative; max-width: 64rem; margin-inline: auto; padding: 40px 24px; border-radius: 24px; text-align: center; overflow: hidden; border-color: rgba(249, 115, 22, 0.3); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(234, 88, 12, 0.1), transparent 60%); }
.cta::after { content: ""; position: absolute; top: -96px; left: 50%; z-index: -1; width: 384px; height: 384px; transform: translateX(-50%); border-radius: 50%; background: rgba(249, 115, 22, 0.2); filter: blur(100px); }
.logo-lg { width: 80px; height: 80px; margin: 0 auto 32px; border-radius: 24px; font-size: 40px; box-shadow: 0 0 50px -10px rgba(255, 85, 0, 0.6); }
.cta h2 { margin-bottom: 16px; font-size: clamp(1.875rem, 1.1rem + 2.8vw, 3rem); font-weight: 900; line-height: 1.3; color: #fff; }
.cta > p { max-width: 42rem; margin: 0 auto 40px; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); line-height: 1.9; color: var(--text-2); }
.cta-btns { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; margin-bottom: 32px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin: 0; padding: 0; list-style: none; font-size: 0.75rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--emerald); }
@media (max-width: 639px) { .cta-btns .btn { width: 100%; } }
@media (min-width: 640px) {
  .cta { padding: 56px; }
  .cta-btns { flex-direction: row; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 16px; max-width: 56rem; margin-inline: auto; }
.faq details { padding: 20px; border-radius: 16px; }
.faq details:hover { transform: none; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-weight: 700; color: #e2e8f0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--orange-400); border-bottom: 2px solid var(--orange-400);
  transform: rotate(45deg); transition: transform 0.3s ease, margin 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin-top: 12px; font-size: 0.875rem; line-height: 1.9; color: var(--muted); }
.faq a { color: var(--orange-400); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { padding: 64px 16px 48px; background: #06070a; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-top { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 32px; max-width: 1280px; margin: 0 auto 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { font-size: 0.75rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-size: 0.875rem; color: var(--muted); }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: color 0.2s; }
.socials a:hover { color: var(--orange-400); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; max-width: 1280px; margin: 0 auto; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.75rem; color: var(--faint); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
@media (min-width: 768px) { .footer-top { flex-direction: row; } }

/* ---------- Small helpers ---------- */
.brand-text { display: flex; flex-direction: column; }
.mtitle, .msub, .mock-tag, .acct-plan, .footer-tag { display: block; }
.footer-tag { font-size: 0.75rem; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; }
.c-red { color: #ef4444; }
.c-blue { color: #60a5fa; }
.c-purple { color: #c084fc; }
.c-orange { color: #f97316; }
