:root {
  color-scheme: light;
  --ink: #0a0e0d;
  --ink-soft: #121816;
  --graphite: #1b211f;
  --paper: #f4f5f1;
  --paper-strong: #ffffff;
  --silver: #dfe3df;
  --silver-deep: #aeb7b1;
  --text: #111614;
  --muted: #66706b;
  --gold: #d7ac4e;
  --gold-bright: #f2d27d;
  --gold-deep: #8c6726;
  --green: #45d797;
  --cyan: #66d9e8;
  --danger: #fb6272;
  --line: rgba(10, 14, 13, 0.14);
  --line-dark: rgba(255, 255, 255, 0.13);
  --container: min(1240px, calc(100% - 48px));
  --heading: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-family: var(--body);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold-deep) var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  letter-spacing: 0;
}

body[data-lang="en"] {
  direction: ltr;
}

body[data-lang="en"] .ar,
body:not([data-lang="en"]) .en {
  display: none !important;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

::selection {
  color: var(--ink);
  background: var(--gold-bright);
}

.skip-link {
  position: fixed;
  top: -80px;
  inset-inline-start: 18px;
  z-index: 1000;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 3px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right center;
  box-shadow: 0 0 14px rgba(242, 210, 125, 0.6);
}

.site-header {
  position: fixed;
  top: 14px;
  inset-inline: 0;
  z-index: 200;
  width: var(--container);
  min-height: 58px;
  margin-inline: auto;
  padding: 7px 8px 7px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  color: #f9faf8;
  background: rgba(9, 13, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition:
    top 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.site-header.scrolled {
  top: 8px;
  background: rgba(9, 13, 12, 0.95);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 166px;
}

.brand-lockup img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(242, 210, 125, 0.36);
}

.brand-lockup span {
  display: grid;
  gap: 1px;
}

.brand-lockup b {
  font-family: var(--heading);
  font-size: 15px;
  line-height: 1.3;
}

.brand-lockup small {
  color: #bfc6c2;
  font-size: 11px;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.desktop-nav a {
  position: relative;
  padding: 9px 12px;
  color: #cbd2ce;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.22s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.desktop-nav a:hover {
  color: #fff;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.language-button,
.menu-button {
  border: 0;
  color: #f8faf8;
  background: transparent;
  cursor: pointer;
}

.language-button {
  min-width: 42px;
  height: 42px;
  font-size: 12px;
  font-weight: 800;
}

.header-download {
  height: 42px;
  padding-inline: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--gold-bright);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.header-download:hover {
  transform: translateY(-2px);
  background: #ffe39b;
}

.header-download svg {
  width: 17px;
  height: 17px;
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  place-content: center;
  gap: 6px;
}

.menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 850px;
  height: min(920px, 100svh);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}

.hero-backdrop,
.hero-shade,
.hero-pointer {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  z-index: -4;
  background-image: url("./al-miyar-hero-workbench-v2.png");
  background-size: cover;
  background-position: center 54%;
  transform: scale(1.035);
  animation: heroBreathe 18s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 8, 7, 0.94) 0%, rgba(5, 8, 7, 0.78) 38%, rgba(5, 8, 7, 0.22) 76%, rgba(5, 8, 7, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 8, 7, 0.44) 0%, rgba(5, 8, 7, 0.18) 58%, rgba(5, 8, 7, 0.9) 100%);
}

body[data-lang="en"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(5, 8, 7, 0.94) 0%, rgba(5, 8, 7, 0.78) 38%, rgba(5, 8, 7, 0.22) 76%, rgba(5, 8, 7, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 8, 7, 0.44) 0%, rgba(5, 8, 7, 0.18) 58%, rgba(5, 8, 7, 0.9) 100%);
}

.hero-pointer,
.download-pointer {
  pointer-events: none;
  z-index: -2;
  opacity: 0;
  background: radial-gradient(circle 240px at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(242, 210, 125, 0.12), transparent 72%);
  transition: opacity 0.25s ease;
}

[data-pointer-surface].pointer-active .hero-pointer,
[data-pointer-surface].pointer-active .download-pointer {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  height: 100%;
  margin-inline: auto;
  padding-top: 130px;
  padding-bottom: 68px;
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
}

.hero-copy {
  align-self: center;
  max-width: 560px;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dbe1dd;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(69, 215, 151, 0.12);
  animation: statusPulse 1.8s ease-out infinite;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--heading);
  font-size: clamp(64px, 7vw, 108px);
  line-height: 1.04;
  text-shadow: 0 8px 38px rgba(0, 0, 0, 0.48);
}

.hero h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  margin-top: 18px;
  background: var(--gold-bright);
}

.hero-lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: #d7ddda;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
  font-weight: 500;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.button svg {
  width: 19px;
  height: 19px;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--ink);
  background: var(--gold-bright);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 38px rgba(216, 172, 78, 0.24);
}

.button-primary:hover {
  background: #ffe49d;
}

.button-quiet {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.button-quiet svg,
.text-link svg {
  transform: rotate(180deg);
}

body[data-lang="en"] .button-quiet svg,
body[data-lang="en"] .text-link svg {
  transform: none;
}

.hero-proof {
  margin: 34px 0 0;
  display: flex;
  gap: 30px;
}

.hero-proof div {
  display: grid;
  gap: 2px;
}

.hero-proof dt {
  color: var(--gold-bright);
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 800;
}

.hero-proof dd {
  margin: 0;
  color: #aeb7b2;
  font-size: 12px;
  font-weight: 600;
}

.hero-device-wrap {
  position: relative;
  align-self: center;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.device-aura {
  position: absolute;
  z-index: -1;
  inset: 12% 5% 2%;
  background: rgba(216, 172, 78, 0.16);
  filter: blur(58px);
}

.device {
  --rx: 0deg;
  --ry: 0deg;
  --device-nudge-x: 0px;
  position: relative;
  width: 100%;
  transform: translateX(var(--device-nudge-x)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out;
  filter: drop-shadow(0 36px 36px rgba(0, 0, 0, 0.54));
}

.device-lid {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.3;
  padding: 12px;
  background: #080a0a;
  border: 1px solid #656a67;
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    inset 0 0 0 2px #151918,
    inset 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.device-camera {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #26332f;
  box-shadow: 0 0 0 2px #050606;
}

.device-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #111714;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.03));
  mix-blend-mode: screen;
}

.device-base {
  position: relative;
  width: 108%;
  height: 22px;
  margin-inline-start: -4%;
  background: linear-gradient(180deg, #bfc3c0, #6d7470 58%, #333836);
  border-radius: 2px 2px 13px 13px;
  clip-path: polygon(5% 0, 95% 0, 100% 62%, 95% 100%, 5% 100%, 0 62%);
}

.device-base span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  height: 5px;
  transform: translateX(-50%);
  background: #898f8b;
  border-radius: 0 0 5px 5px;
}

.miyar-app {
  height: 100%;
  display: grid;
  grid-template-rows: 46px 1fr 25px;
  direction: rtl;
  color: #eef2ef;
  background:
    linear-gradient(145deg, rgba(216, 172, 78, 0.05), transparent 42%),
    #0f1512;
  font-family: var(--body);
}

.miyar-app-bar {
  padding: 0 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #080c0a;
  border-bottom: 1px solid rgba(216, 172, 78, 0.24);
}

.miyar-app-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.miyar-app-brand img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 4px;
}

.miyar-app-brand span {
  color: var(--gold-bright);
  font-family: var(--heading);
  font-size: 10px;
}

.miyar-app-bar nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.miyar-app-bar nav span {
  padding: 6px 8px;
  color: #8f9a95;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
}

.miyar-app-bar nav .active {
  color: #111;
  background: var(--gold-bright);
}

.miyar-app-live {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--cyan);
  font-size: 9px;
}

.miyar-app-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(251, 98, 114, 0.1);
}

.miyar-app-content {
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.miyar-app-content.swapping {
  opacity: 0;
  transform: translateY(8px);
}

.screen-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.screen-heading div {
  display: grid;
}

.screen-heading small,
.screen-heading time {
  color: #89948f;
  font-size: 7px;
}

.screen-heading strong {
  color: #fff;
  font-family: var(--heading);
  font-size: 13px;
}

.screen-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.screen-stats article {
  min-width: 0;
  padding: 9px;
  display: grid;
  gap: 8px;
  background: #171e1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.screen-stats span {
  color: #aeb8b3;
  font-size: 7px;
  white-space: nowrap;
}

.screen-stats b {
  color: #f4f7f5;
  font-size: 14px;
}

.screen-stats em {
  font-style: normal;
}

.screen-stats .positive {
  color: var(--green);
}

.screen-workspace {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 7px;
}

.screen-chart,
.screen-ledger {
  min-height: 0;
  overflow: hidden;
  background: #171e1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.screen-chart {
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  color: #9fa9a4;
  font-size: 7px;
}

.chart-head b {
  color: var(--green);
}

.screen-chart svg {
  width: 100%;
  flex: 1;
  min-height: 65px;
}

.chart-area {
  fill: url("#chartFill");
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: chartDraw 2.2s ease 0.5s forwards;
}

.screen-ledger {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr 1fr 1fr 1.1fr;
  align-items: center;
  gap: 4px;
  padding-inline: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 6.8px;
}

.ledger-head {
  color: #838d88;
  background: #101613;
  font-weight: 700;
}

.ledger-row {
  color: #bbc4bf;
  animation: ledgerIn 0.6s both;
}

.ledger-row:nth-child(3) {
  animation-delay: 0.12s;
}

.ledger-row:nth-child(4) {
  animation-delay: 0.24s;
}

.ledger-row b {
  color: var(--gold-bright);
}

.ledger-row strong {
  color: #f4f6f5;
  text-align: left;
}

.miyar-app-footer {
  padding-inline: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #71807a;
  background: #080c0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 6px;
}

.miyar-app-footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.miyar-app-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.device-caption {
  width: 92%;
  margin: 12px auto 0;
  display: flex;
  justify-content: space-between;
  color: #c7cfcb;
  font-size: 11px;
  font-weight: 700;
}

.device-caption b {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}

.device-caption i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(69, 215, 151, 0.12);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  left: 50%;
  width: 30px;
  height: 44px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: var(--gold-bright);
  animation: scrollCue 1.7s ease-in-out infinite;
}

.application-strip {
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.strip-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 2.1fr);
  align-items: center;
}

.strip-inner > p {
  width: 100%;
  height: 100%;
  margin: 0;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  color: var(--ink);
  background: var(--gold-bright);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.strip-ticker {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.strip-ticker div {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #dce2df;
  animation: ticker 22s linear infinite;
}

.strip-ticker span {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.strip-ticker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
}

.section {
  width: var(--container);
  margin-inline: auto;
  padding-block: clamp(68px, 7vw, 94px);
}

.section-heading {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  align-items: end;
  gap: 34px;
}

.section-heading > div {
  align-self: start;
}

.section-index {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 800;
}

.kicker {
  margin: 0;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
}

.section-heading h2,
.precision-intro h2,
.story-copy h2,
.download-inner h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.45;
  letter-spacing: 0;
}

.section-heading > p,
.precision-intro > p:not(.kicker),
.story-copy > p:not(.kicker),
.download-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.75, 0.25, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

.feature-layout {
  min-height: 450px;
  display: grid;
  grid-template-columns: 0.78fr 1.42fr;
  gap: 12px;
}

.feature-tabs {
  display: grid;
  gap: 8px;
}

.feature-tabs button {
  width: 100%;
  min-height: 100px;
  padding: 18px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 15px;
  color: var(--text);
  text-align: start;
  background: #eaede9;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 0.23s ease,
    background 0.23s ease,
    border-color 0.23s ease;
}

.feature-tabs button:hover {
  transform: translateX(-4px);
  border-color: var(--line);
}

body[data-lang="en"] .feature-tabs button:hover {
  transform: translateX(4px);
}

.feature-tabs button.active {
  color: #fff;
  background: var(--ink-soft);
  border-color: rgba(216, 172, 78, 0.55);
  box-shadow: inset 4px 0 0 var(--gold-bright);
}

body[data-lang="en"] .feature-tabs button.active {
  box-shadow: inset -4px 0 0 var(--gold-bright);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.active .feature-icon {
  color: var(--ink);
  background: var(--gold-bright);
  border-color: transparent;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-tabs button > span:last-child {
  display: grid;
  gap: 4px;
}

.feature-tabs b {
  font-family: var(--heading);
  font-size: 15px;
}

.feature-tabs small {
  color: var(--muted);
  font-size: 12px;
}

.feature-tabs .active small {
  color: #aeb8b3;
}

.feature-stage {
  min-width: 0;
  padding: 26px;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.feature-stage-top {
  display: flex;
  justify-content: space-between;
  color: #8d9993;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.feature-stage-top span {
  color: var(--gold-bright);
}

.feature-stage-body {
  height: calc(100% - 26px);
  padding-top: 32px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
}

.feature-copy h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.5;
}

.feature-copy p {
  margin: 16px 0 0;
  color: #aeb8b3;
  line-height: 1.8;
}

.feature-copy ul {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.feature-copy li {
  position: relative;
  padding-inline-start: 20px;
  color: #e2e7e4;
  font-size: 13px;
}

.feature-copy li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  inset-inline-start: 0;
  width: 8px;
  height: 2px;
  background: var(--gold-bright);
}

.feature-visual {
  position: relative;
  padding: 12px;
  color: var(--text);
  background: #e9ece8;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.feature-visual.swapping {
  opacity: 0;
  transform: translateY(8px);
}

.visual-toolbar {
  height: 34px;
  padding-inline: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6b756f;
  background: #d9ddd8;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
}

.visual-toolbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca49f;
}

.visual-toolbar i:first-child {
  background: var(--danger);
}

.visual-toolbar span {
  margin-inline-start: auto;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #c5cbc7;
  border: 1px solid #c5cbc7;
}

.visual-grid div {
  min-width: 0;
  padding: 12px 10px;
  display: grid;
  gap: 5px;
  background: #fff;
}

.visual-grid small {
  color: #7a847e;
  font-size: 9px;
}

.visual-grid b {
  color: #17201c;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-balance {
  padding-top: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.visual-balance span {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  color: #d3dad6;
  background: var(--graphite);
  border-radius: 4px;
  font-size: 9px;
}

.visual-balance b {
  color: var(--gold-bright);
}

.precision {
  width: 100%;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(216, 172, 78, 0.06), transparent 35%),
    var(--ink);
}

.precision-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 58px;
  align-items: center;
}

.precision-intro .section-index,
.precision-intro .kicker {
  color: var(--gold-bright);
}

.precision-intro > p:not(.kicker) {
  margin-top: 20px;
  color: #aeb8b3;
}

.precision-lab {
  padding: 22px;
  background: #171d1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.lab-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.lab-tabs button {
  min-height: 48px;
  color: #9ba59f;
  background: #0c100e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lab-tabs button small {
  display: block;
  color: inherit;
  font-size: 9px;
}

.lab-tabs button.active {
  color: var(--ink);
  background: var(--gold-bright);
  border-color: transparent;
}

.lab-result {
  min-height: 164px;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 12px;
}

.lab-result div {
  display: grid;
  gap: 9px;
}

.lab-result small {
  color: #99a49e;
  font-size: 11px;
}

.lab-result strong {
  color: #fff;
  font-family: var(--heading);
  font-size: clamp(22px, 3vw, 34px);
}

.lab-result strong em {
  color: var(--gold-bright);
  font-family: var(--body);
  font-size: 11px;
  font-style: normal;
}

.lab-result svg {
  width: 100%;
  color: var(--gold-bright);
}

.lab-result svg path {
  stroke-dasharray: 8 7;
  animation: dashMove 5s linear infinite;
}

.lab-control {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-control label {
  display: flex;
  justify-content: space-between;
  color: #b5beb9;
  font-size: 11px;
  font-weight: 700;
}

.lab-control label b {
  color: var(--gold-bright);
}

.lab-control input {
  width: 100%;
  height: 4px;
  margin-top: 15px;
  accent-color: var(--gold-bright);
  cursor: ew-resize;
}

.precision-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.precision-facts article {
  min-height: 96px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 7px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.precision-facts article:last-child {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
}

.precision-facts b {
  color: var(--gold-bright);
  font-family: var(--heading);
  font-size: 15px;
}

.precision-facts span {
  color: #9ba59f;
  font-size: 11px;
}

.section-heading.compact {
  grid-template-columns: 0.65fr 1.6fr;
}

.section-heading.compact h2 {
  max-width: 720px;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #cbd0cc;
  border: 1px solid #cbd0cc;
}

.capabilities article {
  position: relative;
  min-height: 142px;
  padding: 20px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: 38px 1fr;
  gap: 8px 12px;
  background: #fff;
  overflow: hidden;
  transition:
    background 0.23s ease,
    color 0.23s ease,
    transform 0.23s ease;
}

.capabilities article::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.23s ease;
}

.capabilities article:hover {
  z-index: 2;
  color: #fff;
  background: var(--ink-soft);
  transform: translateY(-4px);
}

.capabilities article:hover::after {
  transform: scaleX(1);
}

.capabilities article > span {
  color: var(--gold-deep);
  font-family: var(--heading);
  font-size: 10px;
}

.capabilities svg {
  width: 26px;
  height: 26px;
  justify-self: end;
  color: var(--gold-deep);
}

.capabilities b {
  grid-column: 1 / -1;
  align-self: end;
  font-size: 13px;
  line-height: 1.6;
}

.brand-story {
  width: 100%;
  padding-block: 0;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: #e3e6e2;
}

.story-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.story-media:hover img {
  transform: scale(1.035);
}

.story-seal {
  position: absolute;
  bottom: 18px;
  inset-inline-end: 18px;
  min-width: 112px;
  padding: 13px;
  display: grid;
  color: #fff;
  background: rgba(9, 13, 12, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.story-seal span {
  font-size: 9px;
  font-weight: 800;
}

.story-seal b {
  color: var(--gold-bright);
  font-family: var(--heading);
  font-size: 20px;
}

.story-copy {
  padding: clamp(42px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-strong);
}

.story-copy h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 50px);
}

.story-copy > p:not(.kicker) {
  margin-top: 22px;
}

.story-facts {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.story-facts div {
  min-height: 50px;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.story-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.story-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.text-link {
  width: fit-content;
  margin-top: 26px;
  padding-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-deep);
  border-bottom: 2px solid currentColor;
  font-size: 13px;
  font-weight: 800;
}

.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.text-link:hover svg {
  transform: rotate(180deg) translateX(-5px);
}

body[data-lang="en"] .text-link:hover svg {
  transform: translateX(5px);
}

.download-section {
  position: relative;
  width: 100%;
  padding: 76px max(24px, calc((100vw - 1240px) / 2)) 0;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(216, 172, 78, 0.07), transparent 45%),
    var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.download-pointer {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.download-inner {
  max-width: 880px;
}

.download-kicker {
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 800;
}

.download-inner h2 {
  max-width: 840px;
  margin-top: 14px;
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: 1.45;
}

.download-inner > p {
  max-width: 620px;
  margin-top: 18px;
  color: #aeb8b3;
}

.download-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.download-meta {
  min-height: 62px;
  margin-top: 50px;
  padding-inline: 2px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #89948e;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 800;
}

.download-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
}

.site-footer {
  min-height: 132px;
  padding: 28px max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
  color: #c2cbc6;
  background: #070a09;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
}

.footer-brand span {
  display: grid;
}

.footer-brand b {
  color: #fff;
  font-family: var(--heading);
}

.footer-brand small,
.site-footer > small {
  color: #7f8b85;
  font-size: 10px;
}

.footer-contact {
  display: flex;
  gap: 18px;
  font-size: 11px;
  font-weight: 700;
}

.footer-contact a:hover {
  color: var(--gold-bright);
}

@keyframes heroBreathe {
  from { transform: scale(1.035); }
  to { transform: scale(1.075); }
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(69, 215, 151, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(69, 215, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 215, 151, 0); }
}

@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes ledgerIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes scrollCue {
  0%, 100% { opacity: 0.2; transform: translate(-50%, 0); }
  45% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 16px); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

body[data-lang="en"] .strip-ticker div {
  animation-direction: reverse;
}

@keyframes dashMove {
  to { stroke-dashoffset: -60; }
}

@media (max-width: 1100px) {
  :root {
    --container: min(100% - 32px, 1040px);
  }

  .desktop-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .menu-button {
    display: grid;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    padding: 8px;
    display: grid;
    gap: 4px;
    color: #fff;
    background: rgba(9, 13, 12, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.23s ease,
      opacity 0.23s ease,
      visibility 0.23s ease;
  }

  .mobile-menu.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu a {
    padding: 14px;
    color: #d9dfdc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
  }

  .hero {
    min-height: 900px;
    height: auto;
  }

  .hero-inner {
    padding-top: 130px;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(56px, 7vw, 82px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-proof {
    gap: 18px;
  }

  .section-heading {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .section-heading > p {
    grid-column: 2;
  }

  .feature-stage-body {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .feature-copy p,
  .feature-copy ul {
    display: none;
  }

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

@media (max-width: 820px) {
  :root {
    --container: min(100% - 24px, 760px);
  }

  .site-header {
    top: 8px;
    padding-inline: 7px 9px;
    gap: 8px;
  }

  .brand-lockup {
    min-width: 0;
  }

  .brand-lockup small {
    display: none !important;
  }

  .header-download span {
    display: none !important;
  }

  .header-download {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    min-height: 960px;
  }

  .hero-backdrop {
    background-position: 68% center;
  }

  .hero-shade,
  body[data-lang="en"] .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 8, 7, 0.86) 0%, rgba(5, 8, 7, 0.69) 47%, rgba(5, 8, 7, 0.93) 100%);
  }

  .hero-inner {
    min-height: 960px;
    padding-top: 100px;
    padding-bottom: 70px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 38px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(58px, 15vw, 90px);
  }

  .hero-device-wrap {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .device-caption,
  .scroll-cue {
    display: none;
  }

  .strip-inner {
    grid-template-columns: 1fr;
  }

  .strip-inner > p {
    min-height: 48px;
    justify-content: center;
  }

  .strip-ticker {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .section {
    padding-block: 70px;
  }

  .brand-story {
    padding-block: 0;
  }

  .section-heading,
  .section-heading.compact {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading > p {
    grid-column: auto;
  }

  .feature-layout {
    grid-template-columns: 1fr;
  }

  .feature-tabs {
    grid-template-columns: repeat(4, minmax(164px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .feature-tabs button {
    min-height: 90px;
    scroll-snap-align: start;
  }

  .feature-tabs small {
    display: none;
  }

  .feature-stage {
    min-height: 470px;
  }

  .feature-stage-body {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .feature-copy p {
    display: block;
  }

  .precision-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .precision-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-story {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .story-media {
    min-height: 500px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --container: calc(100% - 20px);
  }

  .site-header {
    min-height: 54px;
  }

  .brand-lockup img {
    width: 36px;
    height: 36px;
  }

  .brand-lockup b {
    font-size: 13px;
  }

  .language-button,
  .menu-button,
  .header-download {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 900px;
  }

  .hero-inner {
    min-height: 900px;
    padding-top: 92px;
    gap: 30px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(50px, 16vw, 68px);
  }

  .hero h1::after {
    width: 58px;
    height: 4px;
    margin-top: 12px;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-proof {
    margin-top: 24px;
    justify-content: space-between;
  }

  .hero-proof dt {
    font-size: 15px;
  }

  .hero-proof dd {
    font-size: 9px;
  }

  .device-lid {
    padding: 7px;
  }

  .miyar-app {
    grid-template-rows: 34px 1fr 18px;
  }

  .miyar-app-bar {
    grid-template-columns: 1fr auto;
    padding-inline: 6px;
  }

  .miyar-app-bar nav {
    display: none;
  }

  .miyar-app-brand img {
    width: 20px;
    height: 20px;
  }

  .miyar-app-content {
    padding: 7px;
    gap: 6px;
  }

  .screen-stats {
    gap: 4px;
  }

  .screen-stats article {
    padding: 6px;
    gap: 4px;
  }

  .screen-stats span {
    font-size: 5.5px;
  }

  .screen-stats b {
    font-size: 9px;
  }

  .screen-chart {
    display: none;
  }

  .screen-workspace {
    grid-template-columns: 1fr;
  }

  .ledger-head,
  .ledger-row {
    font-size: 5.5px;
  }

  .strip-inner > p {
    padding-inline: 18px;
    font-size: 11px;
  }

  .section {
    padding-block: 58px;
  }

  .brand-story {
    padding-block: 0;
  }

  .section-heading h2,
  .precision-intro h2,
  .story-copy h2 {
    font-size: 28px;
  }

  .section-heading > p,
  .precision-intro > p:not(.kicker),
  .story-copy > p:not(.kicker) {
    font-size: 14px;
  }

  .feature-tabs {
    grid-template-columns: repeat(4, 145px);
  }

  .feature-tabs button {
    min-height: 78px;
    padding: 12px;
    grid-template-columns: 38px 1fr;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-tabs b {
    font-size: 11px;
  }

  .feature-stage {
    min-height: 520px;
    padding: 18px;
  }

  .feature-stage-body {
    padding-top: 20px;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .feature-copy h3 {
    font-size: 24px;
  }

  .feature-copy p {
    font-size: 13px;
  }

  .feature-visual {
    margin-top: 8px;
  }

  .visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .precision {
    padding-inline: 16px;
  }

  .precision-lab {
    padding: 14px;
  }

  .lab-result {
    min-height: 138px;
    grid-template-columns: 1fr 42px 1fr;
    gap: 6px;
  }

  .lab-result strong {
    font-size: 18px;
  }

  .precision-facts article {
    min-height: 86px;
    padding: 14px;
  }

  .capabilities {
    grid-template-columns: none;
    grid-template-rows: repeat(3, 112px);
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .capabilities article {
    min-height: 112px;
    padding: 14px;
    scroll-snap-align: start;
  }

  .capabilities b {
    font-size: 11px;
  }

  .story-media {
    min-height: 360px;
  }

  .story-copy {
    padding: 38px 22px;
  }

  .download-section {
    padding-top: 64px;
  }

  .download-inner h2 {
    font-size: 34px;
  }

  .download-actions .button {
    flex: 1 1 100%;
  }

  .download-meta {
    margin-top: 42px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-contact {
    grid-column: auto;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* MIYAR_COMPACT_LANDING_V2 */
.miyar-dashboard-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  filter: saturate(1.02) contrast(1.03);
  transition: transform 0.75s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.75s ease;
}

.device:hover .miyar-dashboard-shot {
  transform: scale(1.012);
  filter: saturate(1.08) contrast(1.06);
}

.device-screen-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.11), transparent 24%, transparent 74%, rgba(255, 255, 255, 0.025));
  mix-blend-mode: screen;
}

.device-screen-badge {
  position: absolute;
  inset-inline-start: 10px;
  bottom: 10px;
  z-index: 3;
  min-height: 28px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f8edcc;
  background: rgba(9, 13, 11, 0.88);
  border: 1px solid rgba(234, 192, 94, 0.62);
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 800;
}

.device-screen-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d58b;
  box-shadow: 0 0 0 3px rgba(53, 213, 139, 0.14);
}

.section {
  padding-block: clamp(52px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 28px;
}

.feature-layout {
  min-height: 400px;
  gap: 10px;
}

.feature-tabs button {
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 8px;
}

.feature-stage,
.precision-lab,
.capabilities article,
.story-media,
.story-copy {
  border-radius: 8px;
}

.capabilities {
  gap: 10px;
}

.capabilities article {
  min-height: 122px;
  padding: 16px;
}

.story-media {
  min-height: 420px;
}

.story-copy {
  padding: clamp(36px, 4vw, 58px);
}

.story-copy > p:not(.kicker) {
  margin-top: 16px;
}

.story-facts {
  margin-top: 20px;
}

.download-section {
  padding-top: 58px;
}

.download-meta {
  min-height: 54px;
  margin-top: 32px;
}

.site-footer {
  min-height: 108px;
  padding-block: 20px;
}

@media (max-width: 820px) {
  .hero {
    min-height: 840px;
  }

  .section {
    padding-block: 52px;
  }

  .feature-layout {
    min-height: 0;
  }

  .feature-stage {
    min-height: 410px;
  }

  .story-media {
    min-height: 390px;
  }

  .download-section {
    padding-top: 54px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 810px;
  }

  .section {
    padding-block: 46px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .feature-tabs button {
    min-height: 78px;
  }

  .feature-stage {
    min-height: 390px;
  }

  .story-media {
    min-height: 350px;
  }

  .story-copy {
    padding: 32px 22px;
  }

  .download-section {
    padding-top: 48px;
  }

  .download-meta {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .miyar-dashboard-shot {
    transition: none;
  }
}/* MIYAR_LANDING_DENSITY_V3 */
.hero-actions .button,
.download-actions .button {
  min-width: 214px;
  min-height: 54px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-width: 1px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.button-primary {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 38px rgba(216, 172, 78, 0.32), inset 0 1px rgba(255, 255, 255, 0.5);
}

.button-primary::after,
.button-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.26) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.button-primary:hover::after,
.button-contact:hover::after {
  transform: translateX(130%);
}

.button-contact {
  color: #fff;
  background: #176f50;
  border-color: rgba(115, 235, 181, 0.56);
  box-shadow: 0 16px 38px rgba(16, 92, 65, 0.34), inset 0 1px rgba(255, 255, 255, 0.16);
}

.button-contact:hover {
  color: #fff;
  background: #1d825f;
  border-color: rgba(156, 245, 205, 0.8);
}

.button-contact svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (min-width: 1201px) {
  .hero {
    min-height: 700px;
    height: min(760px, 100svh);
  }

  .hero-inner {
    padding-top: 96px;
    padding-bottom: 40px;
    grid-template-columns: minmax(350px, 0.78fr) minmax(520px, 1.22fr);
    gap: clamp(24px, 3vw, 46px);
  }

  .hero-copy {
    max-width: 520px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(56px, 6vw, 84px);
  }

  .hero h1::after {
    width: 70px;
    height: 4px;
    margin-top: 12px;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: clamp(16px, 1.55vw, 19px);
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-proof {
    margin-top: 22px;
  }

  .hero-device-wrap {
    width: min(100%, 680px);
    justify-self: center;
  }

  .section {
    padding-block: 42px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .feature-layout {
    min-height: 360px;
  }

  .feature-tabs button {
    min-height: 72px;
    padding: 12px 14px;
  }

  .precision-shell {
    gap: 36px;
  }

  .precision-lab {
    padding: 18px;
  }

  .capabilities article {
    min-height: 104px;
    padding: 14px;
  }

  .story-media {
    min-height: 360px;
  }

  .story-copy {
    padding: 34px 38px;
  }

  .story-copy > p:not(.kicker) {
    margin-top: 14px;
  }

  .story-facts {
    margin-top: 18px;
  }

  .story-facts div {
    min-height: 44px;
  }

  .download-section {
    padding-top: 42px;
  }

  .download-inner h2 {
    margin-top: 10px;
    font-size: clamp(32px, 4.4vw, 54px);
  }

  .download-inner > p {
    margin-top: 12px;
  }

  .download-actions {
    margin-top: 20px;
  }

  .download-meta {
    min-height: 48px;
    margin-top: 22px;
  }

  .site-footer {
    min-height: 86px;
    padding-block: 14px;
  }
}

@media (min-width: 821px) and (max-width: 1200px) {
  .hero {
    min-height: 780px;
    height: auto;
  }

  .hero-inner {
    padding-top: 104px;
    padding-bottom: 46px;
  }

  .section {
    padding-block: 46px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 810px;
  }

  .hero-inner {
    min-height: 810px;
    padding-top: 74px;
    padding-bottom: 40px;
    gap: 22px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(46px, 14vw, 58px);
  }

  .hero-lead {
    margin-top: 14px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-actions .button,
  .download-actions .button {
    width: 100%;
    min-width: 0;
  }

  .hero-proof {
    margin-top: 18px;
  }
}/* MIYAR_LANDING_DENSITY_V4 */
.device-keyboard {
  position: relative;
  z-index: -1;
  width: 96%;
  height: 62px;
  margin: -1px auto -18px;
  transform: perspective(420px) rotateX(58deg);
  transform-origin: 50% 0;
  background: linear-gradient(180deg, #9ca29e 0%, #5c625f 55%, #353a38 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px 2px 10px 10px;
  clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.34), 0 9px 16px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.device-keyboard::before {
  content: "";
  position: absolute;
  inset: 7px 9% 19px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(111, 119, 114, 0.95) 12px 14px),
    repeating-linear-gradient(180deg, #171b19 0 7px, #6d7470 7px 10px);
  box-shadow: 0 0 0 1px rgba(8, 10, 9, 0.72), inset 0 1px rgba(255, 255, 255, 0.08);
}

.device-keyboard span {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 27%;
  height: 13px;
  transform: translateX(-50%);
  background: rgba(105, 112, 108, 0.68);
  border: 1px solid rgba(27, 31, 29, 0.74);
  border-radius: 3px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.lab-conversion-arrow {
  width: 76px;
  justify-self: center;
  align-self: center;
  transform: scaleX(-1) translateY(-1px);
  transform-origin: center;
}

body[data-lang="en"] .lab-conversion-arrow {
  transform: translateY(-1px);
}

.footer-contact a[dir="ltr"] {
  unicode-bidi: isolate;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (min-width: 821px) {
  .hero {
    min-height: 620px;
    height: min(680px, 100svh);
  }

  .hero-inner {
    padding-top: 78px;
    padding-bottom: 24px;
    grid-template-columns: minmax(330px, 0.75fr) minmax(500px, 1.25fr);
    gap: clamp(22px, 2.6vw, 40px);
  }

  .hero-copy {
    max-width: 500px;
  }

  .eyebrow {
    margin-bottom: 10px;
    padding: 6px 9px;
  }

  .hero h1 {
    font-size: clamp(52px, 5.5vw, 76px);
  }

  .hero h1::after {
    width: 62px;
    height: 3px;
    margin-top: 10px;
  }

  .hero-lead {
    max-width: 490px;
    margin-top: 13px;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 17px;
  }

  .hero-actions .button {
    min-height: 50px;
  }

  .hero-proof {
    margin-top: 17px;
    gap: 24px;
  }

  .hero-device-wrap {
    width: min(100%, 620px);
    justify-self: center;
  }

  .device-caption {
    margin-top: 7px;
  }

  .strip-inner {
    min-height: 48px;
  }

  .strip-inner > p,
  .strip-ticker span {
    font-size: 12px;
  }

  .section {
    padding-block: 32px;
  }

  .section-heading {
    margin-bottom: 16px;
    grid-template-columns: 0.5fr 1.45fr 0.9fr;
    gap: 22px;
  }

  .section-index {
    margin-bottom: 6px;
  }

  .section-heading h2,
  .precision-intro h2,
  .story-copy h2 {
    font-size: clamp(27px, 3.1vw, 40px);
    line-height: 1.35;
  }

  .section-heading > p,
  .precision-intro > p:not(.kicker),
  .story-copy > p:not(.kicker),
  .download-inner > p {
    font-size: 14px;
    line-height: 1.65;
  }

  .feature-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .feature-tabs button {
    min-height: 66px;
    padding: 10px 12px;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    background: #f1f2ef;
    border-color: #d6dad6;
  }

  .feature-icon {
    width: 34px;
    height: 34px;
  }

  .feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-tabs b {
    font-size: 13px;
  }

  .feature-tabs small {
    font-size: 10px;
  }

  .feature-stage {
    min-height: 248px;
    padding: 17px 19px;
    background: linear-gradient(145deg, #211a0e 0%, #0b0a07 72%);
    border-color: rgba(224, 181, 73, 0.36);
  }

  .feature-stage-body {
    height: auto;
    min-height: 205px;
    padding-top: 14px;
    grid-template-columns: 0.68fr 1.32fr;
    gap: 22px;
  }

  .feature-copy h3 {
    font-size: clamp(23px, 2.5vw, 32px);
  }

  .feature-copy p {
    margin-top: 8px;
    font-size: 13px;
  }

  .feature-copy ul {
    margin-top: 12px;
    gap: 7px;
  }

  .feature-visual {
    padding: 9px;
    background: #ede9de;
    border-color: rgba(227, 187, 91, 0.4);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  }

  .visual-grid div {
    padding: 9px 8px;
  }

  .precision-shell {
    gap: 28px;
  }

  .precision-intro > p:not(.kicker) {
    margin-top: 12px;
  }

  .precision-lab {
    padding: 15px;
    background: linear-gradient(145deg, #211a0f, #11100c);
    border-color: rgba(224, 181, 73, 0.34);
  }

  .lab-tabs button {
    min-height: 40px;
  }

  .lab-result {
    min-height: 118px;
    grid-template-columns: 1fr 76px 1fr;
  }

  .lab-control {
    padding-top: 12px;
  }

  .lab-control input {
    margin-top: 10px;
  }

  .precision-facts article {
    min-height: 72px;
    padding: 13px 16px;
  }

  .section-heading.compact {
    grid-template-columns: 0.48fr 1.52fr;
  }

  .capabilities {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    background: transparent;
    border: 0;
  }

  .capabilities article {
    min-height: 82px;
    padding: 11px 12px;
    grid-template-columns: 26px 1fr;
    grid-template-rows: 26px 1fr;
    gap: 5px 8px;
    color: #f6efd9;
    background: linear-gradient(145deg, #221a0e, #0e0c08);
    border: 1px solid rgba(218, 174, 69, 0.24);
    border-radius: 7px;
  }

  .capabilities article:hover {
    color: #fff;
    background: linear-gradient(145deg, #2a2112, #15110b);
    border-color: rgba(239, 196, 91, 0.7);
    transform: translateY(-3px);
  }

  .capabilities article > span {
    color: #dcb34f;
    font-size: 9px;
  }

  .capabilities svg {
    width: 21px;
    height: 21px;
  }

  .capabilities b {
    font-size: 11px;
    line-height: 1.45;
  }

  .capabilities article:nth-child(4n + 1) svg { color: #28d88f; }
  .capabilities article:nth-child(4n + 2) svg { color: #4dcdf1; }
  .capabilities article:nth-child(4n + 3) svg { color: #d8ac4e; }
  .capabilities article:nth-child(4n + 4) svg { color: #b39af9; }

  .brand-story {
    padding-inline: max(24px, calc((100vw - 1240px) / 2));
  }

  .story-media {
    min-height: 310px;
  }

  .story-copy {
    padding: 26px 32px;
  }

  .story-copy h2 {
    margin-top: 5px;
  }

  .story-copy > p:not(.kicker) {
    margin-top: 10px;
  }

  .story-facts {
    margin-top: 13px;
  }

  .story-facts div {
    min-height: 38px;
  }

  .text-link {
    margin-top: 15px;
  }

  .download-section {
    padding-top: 32px;
  }

  .download-inner h2 {
    margin-top: 7px;
    font-size: clamp(30px, 3.7vw, 46px);
    line-height: 1.35;
  }

  .download-inner > p {
    margin-top: 8px;
  }

  .download-actions {
    margin-top: 15px;
  }

  .download-meta {
    min-height: 42px;
    margin-top: 17px;
  }

  .site-footer {
    min-height: 72px;
    padding-block: 10px;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .hero {
    min-height: 690px;
    height: auto;
  }

  .hero-inner {
    padding-top: 88px;
    grid-template-columns: minmax(300px, 0.78fr) minmax(430px, 1.22fr);
  }

  .capabilities {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .device-keyboard {
    height: 48px;
    margin-bottom: -15px;
  }

  .device-keyboard::before {
    inset: 6px 9% 16px;
  }

  .device-keyboard span {
    height: 10px;
  }

  .section {
    padding-block: 36px;
  }

  .feature-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tabs button {
    min-height: 64px;
  }

  .feature-stage {
    min-height: 0;
  }

  .feature-stage-body {
    min-height: 0;
  }

  .lab-result {
    grid-template-columns: 1fr 52px 1fr;
  }

  .lab-conversion-arrow {
    width: 48px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 760px;
  }

  .hero-inner {
    min-height: 760px;
    padding-top: 68px;
    padding-bottom: 28px;
  }

  .device-keyboard {
    height: 40px;
    margin-bottom: -13px;
  }

  .feature-tabs button {
    padding: 9px;
    grid-template-columns: 30px 1fr;
  }

  .feature-icon {
    width: 30px;
    height: 30px;
  }

  .section {
    padding-block: 30px;
  }

  .precision-facts article {
    min-height: 72px;
  }

  .site-footer {
    padding-block: 14px;
  }
}

/* MIYAR_FEATURE_SYSTEM_V5 */
.feature-explorer.section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  background:
    linear-gradient(115deg, rgba(255, 246, 197, 0.9), rgba(225, 173, 45, 0.18) 42%, rgba(255, 255, 255, 0.88)),
    #f5d36c;
  border-block: 1px solid rgba(146, 101, 11, 0.18);
}

.feature-explorer .section-heading {
  color: #17130a;
}

.feature-explorer .section-heading > p {
  color: #5e5133;
}

.feature-explorer .section-index,
.feature-explorer .kicker {
  color: #8b6108;
}

.feature-layout {
  padding: 8px;
  background: rgba(34, 26, 11, 0.95);
  border: 1px solid rgba(241, 199, 91, 0.48);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(75, 49, 4, 0.22);
}

.feature-tabs {
  padding: 0;
}

.feature-tabs button {
  min-height: 64px;
  color: #f6edcf;
  background: #18140c;
  border: 1px solid rgba(241, 202, 101, 0.16);
  border-radius: 6px;
  box-shadow: none;
}

.feature-tabs button:hover {
  transform: translateY(-2px);
  color: #fff7db;
  background: #272012;
  border-color: rgba(241, 202, 101, 0.5);
}

body[data-lang="en"] .feature-tabs button:hover {
  transform: translateY(-2px);
}

.feature-tabs button.active,
body[data-lang="en"] .feature-tabs button.active {
  color: #fff8dc;
  background: linear-gradient(180deg, #322710, #17130b);
  border-color: #e7b934;
  box-shadow: inset 0 -3px 0 #e7b934, 0 8px 22px rgba(0, 0, 0, 0.24);
}

.feature-tabs small,
.feature-tabs .active small {
  color: #a99e7f;
}

.feature-icon,
.active .feature-icon {
  color: #f4cc58;
  background: #35270e;
  border-color: rgba(242, 201, 86, 0.34);
}

.feature-tabs button:nth-child(1) .feature-icon {
  color: #42dfa2;
  background: #0b382b;
  border-color: rgba(66, 223, 162, 0.28);
}

.feature-tabs button:nth-child(2) .feature-icon {
  color: #42c8e8;
  background: #0d3038;
  border-color: rgba(66, 200, 232, 0.28);
}

.feature-tabs button:nth-child(3) .feature-icon {
  color: #b595ff;
  background: #2b2140;
  border-color: rgba(181, 149, 255, 0.28);
}

.feature-tabs button:nth-child(4) .feature-icon {
  color: #ffb85a;
  background: #3e2910;
  border-color: rgba(255, 184, 90, 0.28);
}

.feature-stage {
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(232, 184, 54, 0.11), transparent 42%),
    #0c0a06;
  border-color: rgba(236, 190, 67, 0.3);
}

.feature-stage-top {
  color: #91876b;
}

.feature-stage-body {
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: 20px;
}

.feature-copy h3 {
  color: #fff5d2;
}

.feature-copy p {
  color: #aaa18b;
}

.feature-copy li {
  color: #e9dfc4;
}

.feature-visual {
  min-width: 0;
  padding: 0;
  color: #f8edc8;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.miyar-mini {
  min-height: 206px;
  padding: 8px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  color: #f8edc8;
  background:
    linear-gradient(145deg, rgba(229, 180, 49, 0.1), transparent 35%),
    #121009;
  border: 1px solid rgba(232, 186, 66, 0.32);
  border-radius: 6px;
  overflow: hidden;
}

.mini-head {
  min-height: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f6d66f;
  background: #211a0c;
  border: 1px solid rgba(232, 186, 66, 0.18);
  border-radius: 4px;
  font-size: 10px;
}

.mini-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.mini-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42dfa2;
  box-shadow: 0 0 0 4px rgba(66, 223, 162, 0.1);
}

.mini-head > b {
  color: #b9ae90;
  font-size: 9px;
}

.mini-ledger {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  overflow-x: auto;
  border: 1px solid rgba(240, 201, 93, 0.18);
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: #a87c17 #18130a;
}

.mini-ledger-labels,
.mini-ledger-row {
  min-width: 530px;
  display: grid;
  grid-template-columns: 0.75fr 0.8fr 0.65fr 1fr 1fr 1.2fr;
  align-items: center;
  gap: 1px;
}

.mini-ledger-labels {
  color: #a99c7a;
  background: #0c0b08;
  border-bottom: 1px solid rgba(240, 201, 93, 0.18);
  font-size: 8px;
}

.mini-ledger-labels span,
.mini-ledger-row > * {
  height: 100%;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  border-inline-end: 1px solid rgba(240, 201, 93, 0.12);
}

.mini-ledger-row {
  color: #e6ddc5;
  background: #1b160c;
  border-bottom: 1px solid rgba(240, 201, 93, 0.1);
  font-size: 9px;
}

.mini-ledger-row.active {
  background: #29200e;
}

.mini-ledger-row b {
  color: #48dfa6;
}

.mini-ledger-row strong {
  color: #f6ce55;
}

.mini-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mini-balances span {
  min-width: 0;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #bcb294;
  background: #090805;
  border: 1px solid rgba(240, 201, 93, 0.14);
  border-radius: 4px;
  font-size: 9px;
}

.mini-balances b {
  color: #f5cf61;
  white-space: nowrap;
}

.mini-metals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-metals article {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 5px;
  background: #1c170d;
  border: 1px solid rgba(238, 194, 77, 0.2);
  border-radius: 5px;
}

.mini-metals article.gold {
  border-top: 2px solid #efc54c;
}

.mini-metals article.silver {
  border-top: 2px solid #87c6d0;
}

.mini-metals article.platinum {
  border-top: 2px solid #a58bdc;
}

.mini-metals small,
.mini-stock-row small,
.mini-finance-summary small {
  color: #9e9478;
  font-size: 8px;
}

.mini-metals strong {
  color: #fff0b2;
  font-size: 13px;
  white-space: nowrap;
}

.mini-metals em,
.mini-finance-summary em {
  color: #a69b7f;
  font-size: 8px;
  font-style: normal;
}

.mini-metals span {
  color: #716a57;
  font-size: 8px;
}

.mini-stock-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #090805;
  border: 1px solid rgba(240, 201, 93, 0.14);
  border-radius: 4px;
}

.mini-stock-row > span {
  padding: 7px 8px;
  display: grid;
  gap: 3px;
  border-inline-end: 1px solid rgba(240, 201, 93, 0.12);
}

.mini-stock-row b {
  color: #eee3c3;
  font-size: 9px;
}

.mini-workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-workflow section {
  min-width: 0;
  padding: 7px;
  background: #0a0906;
  border: 1px solid rgba(240, 201, 93, 0.14);
  border-radius: 5px;
}

.mini-workflow header {
  margin-bottom: 7px;
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
  color: #ada285;
  border-bottom: 1px solid rgba(240, 201, 93, 0.12);
  font-size: 8px;
}

.mini-workflow header b {
  color: #f4c84e;
}

.mini-workflow article {
  min-height: 72px;
  padding: 9px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: #211a0d;
  border-radius: 4px;
}

.mini-workflow section:nth-child(1) article {
  border-inline-start: 3px solid #e9b935;
}

.mini-workflow section:nth-child(2) article {
  border-inline-start: 3px solid #43c4e5;
}

.mini-workflow section:nth-child(3) article {
  border-inline-start: 3px solid #43d99c;
}

.mini-workflow article span {
  color: #7e745d;
  font-size: 8px;
}

.mini-workflow article strong {
  color: #f4ead0;
  font-size: 10px;
}

.mini-workflow article small {
  color: #aa9f83;
  font-size: 8px;
}

.mini-finance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-finance-summary article {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 5px;
  background: #1b160c;
  border: 1px solid rgba(240, 201, 93, 0.16);
  border-radius: 5px;
}

.mini-finance-summary article:nth-child(1) {
  border-top: 2px solid #46dda1;
}

.mini-finance-summary article:nth-child(2) {
  border-top: 2px solid #42c8e8;
}

.mini-finance-summary article:nth-child(3) {
  border-top: 2px solid #ffb85a;
}

.mini-finance-summary strong {
  color: #f7e9b7;
  font-size: 11px;
  white-space: nowrap;
}

.mini-movements {
  display: grid;
  gap: 4px;
}

.mini-movements > div {
  min-width: 0;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 0.9fr 0.55fr 1fr 0.85fr;
  align-items: center;
  gap: 8px;
  color: #d7ceb5;
  background: #090805;
  border: 1px solid rgba(240, 201, 93, 0.12);
  border-radius: 4px;
  font-size: 8px;
}

.mini-movements b {
  color: #f1d476;
}

.mini-movements small {
  color: #817861;
}

.mini-movements strong {
  direction: ltr;
  text-align: left;
}

.mini-movements .positive {
  color: #45dda1;
}

.mini-movements .negative {
  color: #ff6f78;
}

@keyframes miyarMiniIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-visual:not(.swapping) .miyar-mini > * {
  animation: miyarMiniIn 0.36s ease both;
}

.feature-visual:not(.swapping) .miyar-mini > *:nth-child(2) {
  animation-delay: 0.05s;
}

.feature-visual:not(.swapping) .miyar-mini > *:nth-child(3) {
  animation-delay: 0.1s;
}

.feature-visual:not(.swapping) .miyar-mini > *:nth-child(4) {
  animation-delay: 0.15s;
}

@media (max-width: 900px) {
  .feature-stage-body {
    grid-template-columns: 1fr;
  }

  .mini-metals,
  .mini-workflow,
  .mini-finance-summary {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .feature-explorer.section {
    padding-inline: 16px;
  }

  .feature-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tabs button {
    min-height: 62px;
  }

  .feature-stage {
    padding: 13px;
  }

  .miyar-mini {
    min-height: 222px;
  }

  .mini-balances {
    grid-template-columns: 1fr;
  }

  .mini-stock-row {
    min-width: 500px;
  }

  .miyar-mini-inventory {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-visual:not(.swapping) .miyar-mini > * {
    animation: none;
  }
}


/* MIYAR_LANDING_CONFIDENCE_V6 */
.hero-backdrop {
  background-image: url("./al-miyar-hero-craft-v3.jpg");
  background-position: center 58%;
  filter: saturate(0.9) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 7, 0.22) 0%, rgba(7, 8, 7, 0.7) 54%, rgba(7, 8, 7, 0.94) 100%),
    linear-gradient(180deg, rgba(8, 9, 8, 0.08), rgba(8, 9, 8, 0.72));
}

body[data-lang="en"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(7, 8, 7, 0.22) 0%, rgba(7, 8, 7, 0.7) 54%, rgba(7, 8, 7, 0.94) 100%),
    linear-gradient(180deg, rgba(8, 9, 8, 0.08), rgba(8, 9, 8, 0.72));
}

.miyar-dashboard-shot {
  transition: opacity 0.24s ease, transform 0.42s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.miyar-dashboard-shot.is-switching {
  opacity: 0.18;
  transform: scale(1.025);
}

.device-tour {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(238, 193, 72, 0.34);
  border-radius: 7px;
  background: rgba(8, 9, 8, 0.86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.device-tour-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.device-tour-tabs button,
.device-tour-toggle {
  min-width: 0;
  height: 24px;
  border: 0;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.device-tour-tabs button:hover,
.device-tour-tabs button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.device-tour-tabs button.active {
  color: #17130a;
  background: #e9bd43;
}

.device-tour-toggle {
  display: grid;
  place-items: center;
  color: #e9bd43;
  background: rgba(233, 189, 67, 0.1);
}

.device-tour-toggle:hover,
.device-tour-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(233, 189, 67, 0.2);
}

.device-tour-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.device-tour-progress {
  position: absolute;
  inset-inline: 5px;
  bottom: 2px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
}

.device-tour-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: right center;
  background: #e9bd43;
  animation: deviceTourProgress 8s linear infinite;
}

body[data-lang="en"] .device-tour-progress i {
  transform-origin: left center;
}

.device-tour.paused .device-tour-progress i {
  animation-play-state: paused;
}

@keyframes deviceTourProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.trust-section.section {
  padding-block: clamp(42px, 6vw, 78px);
  background: #0d0f0d;
  color: #f7f2e4;
}

.trust-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
}

.trust-copy .section-index,
.trust-copy .kicker {
  color: #dbae39;
}

.trust-copy h2 {
  max-width: 680px;
  margin: 12px 0 14px;
  color: #fff8e9;
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  line-height: 1.08;
}

.trust-copy > p:not(.kicker) {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 1rem;
  line-height: 1.85;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.trust-points article {
  min-height: 90px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(233, 189, 67, 0.2);
  border-radius: 8px;
  background: #151814;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.trust-points article:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 189, 67, 0.48);
  background: #191d18;
}

.trust-points i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #161208;
  background: #e9bd43;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
}

.trust-points span,
.trust-points b,
.trust-points small {
  display: block;
}

.trust-points b {
  color: #fff;
  font-size: 0.94rem;
}

.trust-points small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.78rem;
  line-height: 1.55;
}

.screen-continuity {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(233, 189, 67, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(233, 189, 67, 0.12), transparent 48%),
    #151814;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.continuity-desktop {
  position: absolute;
  top: 42px;
  inset-inline: 36px;
}

.continuity-screen {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: #050605;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
}

.continuity-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

.continuity-desktop > span {
  display: block;
  width: 32%;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #b8b7b2, #686b69);
}
.continuity-caption {
  position: absolute;
  inset-inline: 24px;
  bottom: 22px;
  padding-inline-end: 0;
}

.continuity-caption b,
.continuity-caption small {
  display: block;
}

.continuity-caption b {
  color: #fff;
  font-size: 1rem;
}

.continuity-caption small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
}

.sticky-contact {
  position: fixed;
  z-index: 80;
  inset-inline-start: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(72, 208, 125, 0.48);
  border-radius: 8px;
  color: #f5fff8;
  background: rgba(10, 23, 15, 0.94);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sticky-contact:hover,
.sticky-contact:focus-visible {
  transform: translateY(-2px);
  border-color: #48d07d;
  background: #102d1c;
}

.sticky-contact svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #48d07d;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.footer-contact {
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .trust-shell {
    grid-template-columns: 1fr;
  }

  .trust-copy h2,
  .trust-copy > p:not(.kicker) {
    max-width: none;
  }

  .screen-continuity {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .hero-backdrop {
    background-position: 36% center;
  }

  .hero-shade,
  body[data-lang="en"] .hero-shade {
    background: linear-gradient(180deg, rgba(7, 8, 7, 0.76), rgba(7, 8, 7, 0.94));
  }

  .device-tour {
    inset-inline: 5px;
    bottom: 5px;
    grid-template-columns: minmax(0, 1fr) 26px;
  }

  .device-tour-tabs button {
    font-size: 0.58rem;
  }

  .trust-section.section {
    padding-block: 38px;
  }

  .trust-shell {
    width: min(100% - 24px, 1180px);
    gap: 28px;
  }

  .trust-copy h2 {
    font-size: 2rem;
  }

  .trust-points {
    grid-template-columns: 1fr;
  }

  .trust-points article {
    min-height: 78px;
  }

  .screen-continuity {
    min-height: 360px;
  }

  .continuity-desktop {
    top: 32px;
    inset-inline: 16px;
  }
.continuity-caption {
    inset-inline: 16px;
    bottom: 18px;
    padding-inline-end: 0;
    max-width: 100%;
  }

  .continuity-caption b {
    font-size: 0.86rem;
  }

  .continuity-caption small {
    font-size: 0.72rem;
  }

  .sticky-contact {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }

  .sticky-contact > span {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-tour-progress i {
    animation: none;
    transform: scaleX(1);
  }

  .trust-points article,
  .sticky-contact,
  .miyar-dashboard-shot {
    transition: none;
  }
}

/* MIYAR_LANDING_TOUR_FIX_V7 */
.hero-backdrop {
  animation: heroBreatheMirrored 18s ease-in-out infinite alternate;
}

@keyframes heroBreatheMirrored {
  from { transform: scale(-1.035, 1.035); }
  to { transform: scale(-1.075, 1.075); }
}

.device-tour,
.device-tour button {
  pointer-events: auto;
}

.device-tour { z-index: 8; }

.scroll-cue {
  z-index: 12;
  bottom: 0;
  left: 50%;
  width: auto;
  min-width: 176px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translate(-50%, 50%);
  border: 1px solid rgba(234, 193, 76, 0.7);
  border-radius: 999px;
  color: #fff6d7;
  background: rgba(8, 10, 8, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 0 4px rgba(221, 176, 47, 0.08);
  backdrop-filter: blur(12px);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  transform: translate(-50%, calc(50% - 2px));
  border-color: #f0c84d;
  background: #11140f;
}

.scroll-cue > span {
  position: static;
  width: auto;
  height: auto;
  transform: none;
  border-radius: 0;
  color: inherit;
  background: none;
  animation: none;
  white-space: nowrap;
}

.scroll-cue svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: #f0c84d;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: siteContinuationArrow 1.35s ease-in-out infinite;
}

@keyframes siteContinuationArrow {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(3px); }
}

@media (max-width: 680px) {
  .scroll-cue {
    min-width: 162px;
    height: 32px;
    padding-inline: 12px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop { animation: none; transform: scale(-1.035, 1.035); }
  .scroll-cue svg { animation: none; }
}
/* MIYAR_LANDING_CONTINUATION_V8 */
.scroll-cue {
  position: fixed;
  bottom: 18px;
  opacity: 1;
  visibility: visible;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.24s ease, visibility 0.24s ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(50% + 12px));
}

@media (max-width: 680px) {
  .scroll-cue { bottom: 14px; }
}
/* MIYAR_LANDING_INLINE_CONTINUATION_V9 */
.hero-copy .hero-discover {
  position: static;
  width: max-content;
  min-width: 0;
  height: 34px;
  margin-top: 13px;
  padding: 0 12px;
  display: inline-flex !important;
  opacity: 1;
  visibility: visible;
  transform: none;
  color: rgba(255, 247, 216, 0.9);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(232, 193, 80, 0.36);
  box-shadow: none;
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
}

.hero-copy .hero-discover:hover,
.hero-copy .hero-discover:focus-visible {
  transform: translateY(-2px);
  color: #fff8dd;
  border-color: rgba(240, 200, 77, 0.72);
  background: rgba(240, 200, 77, 0.1);
}

.hero-copy .hero-discover.is-hidden {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 680px) {
  .hero-copy .hero-discover {
    width: max-content;
    height: 32px;
    margin-top: 10px;
  }
}
/* MIYAR_LANDING_TOUR_INTERACTION_V10 */
.device-screen {
  isolation: isolate;
}

.miyar-dashboard-shot {
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transform: scale(1);
  filter: saturate(1) contrast(1);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.36s ease;
  will-change: opacity, transform, filter;
}

.miyar-dashboard-shot.is-switching {
  opacity: 0.08;
  transform: scale(1.018);
  filter: saturate(0.78) contrast(0.94) blur(1px);
}

.device-screen-sheen,
.device-screen-badge {
  pointer-events: none;
}

.device-tour {
  z-index: 20;
  pointer-events: auto;
  isolation: isolate;
}

.device-tour-tabs,
.device-tour-tabs button,
.device-tour-toggle {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
}

.device-tour-tabs button:active,
.device-tour-toggle:active {
  transform: scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .miyar-dashboard-shot {
    transition: opacity 0.18s ease !important;
  }
}

/* MIYAR_LANDING_TOUR_CROSSFADE_V12 */
.miyar-dashboard-shot-buffer {
  z-index: 3;
  opacity: 0;
  transform: scale(1.008);
  filter: saturate(0.96) contrast(1.01);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.miyar-dashboard-shot-buffer.is-visible,
.device:hover .miyar-dashboard-shot-buffer.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1.02) contrast(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .miyar-dashboard-shot-buffer {
    transition: opacity 0.22s ease !important;
  }
}

/* MIYAR_HERO_DEVICE_FIT_20260830 */
.hero-device-wrap {
  padding-inline-start: clamp(28px, 4vw, 76px);
  box-sizing: border-box;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: minmax(500px, 0.95fr) minmax(340px, 1.05fr);
    gap: clamp(18px, 2.6vw, 34px);
  }

  .hero-device-wrap {
    width: min(100%, 560px);
    justify-self: end;
    padding-inline-start: clamp(34px, 5vw, 70px);
  }

  .hero-device-wrap .device {
    --device-nudge-x: 42px;
  }

  .hero-copy {
    max-width: 420px;
  }
}

@media (max-width: 920px) and (min-width: 821px) {
  .hero-inner {
    grid-template-columns: minmax(470px, 0.92fr) minmax(300px, 1.08fr);
  }

  .hero-device-wrap {
    width: min(100%, 540px);
    padding-inline-start: 46px;
  }

  .hero-device-wrap .device {
    --device-nudge-x: 34px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    height: auto;
    padding-block: 96px 58px;
    overflow: hidden;
  }

  .hero-inner {
    width: min(100%, calc(100vw - 32px));
    min-height: 0;
    grid-template-columns: 1fr !important;
    justify-items: center;
    align-content: center;
    gap: 32px;
    padding-inline: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: min(680px, calc(100vw - 32px)) !important;
    justify-self: center;
    text-align: center;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(46px, 13vw, 84px) !important;
    line-height: 0.98;
    overflow: visible;
  }

  .hero-device-wrap {
    width: min(100%, 640px) !important;
    justify-self: center;
    margin-inline: auto;
    padding-inline: 0 !important;
  }

  .hero-device-wrap .device {
    --device-nudge-x: 0px;
  }
}

