/* ============================================================
   MOKO SE — Style
   Redesign of mokose.pro · strict corporate · vanilla CSS
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'CenturyGothicRegular';
  font-display: swap;
  src: url('../assets/fonts/CenturyGothicRegular/font.ttf') format('truetype');
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --surface: #ffffff;
  --ink: #17191d;
  --ink-2: #3a3f45;
  --muted: #6b7177;
  --line: #e7e9ec;
  --line-strong: #d8dbdf;

  --accent: #d64545;
  --accent-dark: #b93636;
  --accent-soft: #ff9191;
  --accent-tint: #fdf1f1;

  --radius: 6px;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 130px);

  --font-brand: 'CenturyGothicRegular', 'Century Gothic', 'CenturyGothic', Georgia, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, sans-serif;

  --shadow-1: 0 1px 2px rgba(23,25,29,.05);
  --shadow-2: 0 12px 40px rgba(23,25,29,.09);
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5,h6 { margin: 0 0 .5em; font-family: var(--font-brand); font-weight: 700; line-height: 1.15; color: var(--ink); letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

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

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

/* ---------- Micro label & section header ---------- */
.micro {
  font-family: var(--font-brand);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .8em;
}
.micro::before { content: ""; width: 26px; height: 1px; background: currentColor; display: inline-block; }

.section-head { max-width: 760px; margin-bottom: clamp(32px,5vw,56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .micro { justify-content: center; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 14px 0 0;
  letter-spacing: .005em;
}
.section-head p.lead { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); margin-top: 14px; max-width: 640px; }
.section-head.center p.lead { margin-inline: auto; }

/* Section tag / outline number */
.num {
  font-family: var(--font-brand);
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 1px var(--line-strong);
  paint-order: stroke fill;
  margin-right: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-brand); font-weight: 700; font-size: 15px; letter-spacing: .03em;
  padding: 13px 24px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; position: relative;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(214,69,69,.22); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(214,69,69,.30); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-soft); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-line:hover { background: var(--accent-tint); transform: translateY(-2px); }
.btn-panel { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.btn-panel:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand .wordmark { font-family: var(--font-brand); font-weight: 700; font-size: 24px; letter-spacing: .01em; line-height: 1; }
.brand .wordmark small { display: block; font-size: 10px; letter-spacing: .26em; color: var(--muted); font-weight: 700; margin-top: 3px; text-transform: uppercase; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; align-items: center; }
.nav a {
  font-family: var(--font-brand); font-weight: 700; font-size: 14px; letter-spacing: .05em;
  color: var(--ink-2); padding: 10px 14px; border-radius: 6px; text-transform: uppercase;
}
.nav a:hover, .nav a.is-active { color: var(--accent); background: var(--accent-tint); }
.nav .cta { margin-left: 8px; }

/* ---------- Language switcher ---------- */
.lang { position: relative; margin-left: 4px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-brand); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  color: var(--ink-2); padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn .globe { color: var(--accent); }
.lang-btn .caret { color: var(--muted); transition: transform .2s var(--ease); }
.lang.open .lang-btn .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 6px; display: none; z-index: 300;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border-radius: 5px; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.lang-menu button:hover { background: var(--bg-soft); }
.lang-menu button.is-active { background: var(--accent-tint); color: var(--accent); }
.lang-menu .flag { width: 20px; height: 14px; border-radius: 2px; overflow: hidden; flex: none; display: grid; }
.lang-menu .flag svg { display: block; }
@media (max-width: 860px) {
  .lang-menu { right: auto; left: 0; }
}

/* Burger */
.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.menu-btn span { width: 24px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2){ opacity: 0; }
.menu-btn.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px,8vw,110px) 0; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23,25,29,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
}
.hero .wave { position: absolute; right: -8%; bottom: 0; width: 46%; opacity: .5; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px,4vw,64px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; margin: 18px 0 20px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: var(--ink-2); margin-bottom: 16px; }
.hero p { color: var(--muted); max-width: 620px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-visual { position: relative; }
.hero-visual .frame {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  background: var(--surface); box-shadow: var(--shadow-2);
}
.hero-visual .frame img { border-radius: 4px; width: 100%; }
.hero-badge {
  position: absolute; left: -18px; bottom: -16px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 700;
}
.hero-badge svg { color: var(--accent-soft); }

/* trust strip under hero */
.trust { border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust .row { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
.trust .col { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.trust svg { color: var(--accent); flex: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; overflow: hidden; }
.section-soft { background: var(--bg-soft); }
.section-line { border-top: 1px solid var(--line); }

/* Subtle geometry accents on selected soft sections (HERO-style) */
.section-soft::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23,25,29,.038) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0; transition: opacity .4s ease;
}
#challenges.section-soft::before {
  opacity: 1;
  mask-image: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,0) 75%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,0) 75%);
}
#challenges.section-soft::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px;
  border-radius: 50%; border: 1px solid rgba(23,25,29,.055); pointer-events: none;
  box-shadow: 0 0 0 32px rgba(23,25,29,.02), 0 0 0 64px rgba(23,25,29,.012);
}
#features.section-soft::before {
  opacity: 1;
  mask-image: radial-gradient(ellipse at 30% 40%, rgba(0,0,0,.6), rgba(0,0,0,0) 65%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, rgba(0,0,0,.6), rgba(0,0,0,0) 65%);
}
#features.section-soft::after {
  content: ""; position: absolute; left: -60px; top: -60px; width: 260px; height: 260px;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(214,69,69,.045) 14px 15px),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(23,25,29,.035) 14px 15px);
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.55), rgba(0,0,0,0) 70%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,.55), rgba(0,0,0,0) 70%);
  border-radius: 50%;
}
#compatibility.section-soft::before {
  opacity: 1;
  mask-image: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,0) 80%);
}
#compatibility.section-soft::after {
  content: ""; position: absolute; right: 0; top: 0; width: 40%; height: 62%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23,25,29,.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(23,25,29,.045) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,.6), rgba(0,0,0,0) 72%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,.6), rgba(0,0,0,0) 72%);
}
/* --- Triangle cluster for #applications (SOFT) --- */
#applications.section-soft::before {
  opacity: 1;
  mask-image: linear-gradient(45deg, rgba(0,0,0,.5), rgba(0,0,0,0) 70%);
  -webkit-mask-image: linear-gradient(45deg, rgba(0,0,0,.5), rgba(0,0,0,0) 70%);
}
#applications.section-soft::after {
  content: ""; position: absolute; right: -40px; bottom: -20px; width: 520px; height: 380px;
  pointer-events: none;
}
#applications.section-soft .geo-tri {
  position: absolute; pointer-events: none; clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
#applications .geo-tri.t1 {
  right: 90px;  bottom: 40px;  width: 220px; height: 190px;
  background: linear-gradient(180deg, rgba(214,69,69,.07), rgba(214,69,69,.01));
  transform: rotate(-18deg);
}
#applications .geo-tri.t2 {
  right: -40px; bottom: 160px; width: 180px; height: 155px;
  background: linear-gradient(180deg, rgba(23,25,29,.055), rgba(23,25,29,.008));
  transform: rotate(24deg);
}
#applications .geo-tri.t3 {
  right: 260px; bottom: 10px; width: 120px; height: 104px;
  background: linear-gradient(180deg, rgba(23,25,29,.04), transparent);
  transform: rotate(8deg);
}

/* --- Hexagon accents for #innovation (WHITE) --- */
#innovation::before,
#innovation::after,
#integration::before,
#integration::after,
#portfolio::before,
#portfolio::after,
#demo::before,
#demo::after {
  position: absolute; pointer-events: none; content: "";
}
#innovation::before {
  left: -70px; top: 40px; width: 260px; height: 300px;
  background: linear-gradient(135deg, rgba(214,69,69,.055), rgba(23,25,29,.018) 60%, transparent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: .9;
}
#innovation::after {
  right: 80px; top: 52px; width: 90px; height: 104px;
  border: 1px dashed rgba(23,25,29,.09);
  background: transparent;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
#innovation {
  background-image:
    radial-gradient(ellipse at 92% 90%, rgba(214,69,69,.045), rgba(23,25,29,.015) 40%, transparent 65%),
    linear-gradient(135deg, rgba(214,69,69,.04), rgba(23,25,29,.015) 45%, transparent 70%);
  background-size: auto, 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
}

/* --- Diagonal triangle ribbon for #integration (WHITE) --- */
#integration::before {
  right: -10%; top: 0; width: 55%; height: 100%;
  background: linear-gradient(210deg,
    rgba(23,25,29,.035) 0%,
    rgba(23,25,29,.015) 40%,
    transparent 80%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}
#integration::after {
  left: -60px; top: 25%; width: 220px; height: 220px;
  border: 1px solid rgba(23,25,29,.07);
  transform: rotate(20deg);
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(214,69,69,.035) 18px 19px);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0% 100%);
}

/* --- Honeycomb hex grid + triangle for #portfolio (WHITE) --- */
#portfolio::before {
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 55%,
      rgba(23,25,29,.035), rgba(23,25,29,.01) 40%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 55%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 0%, transparent 75%);
}
#portfolio::after {
  left: 3%; top: 8%; width: 340px; height: 140px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, transparent 46%, rgba(23,25,29,.05) 47%, rgba(23,25,29,.05) 49%, transparent 50%) 0 0 / 60px 52px repeat-x,
    radial-gradient(circle at 0% 0%, transparent 46%, rgba(214,69,69,.045) 47%, rgba(214,69,69,.045) 49%, transparent 50%) 30px 26px / 60px 52px repeat-x;
  mask-image: linear-gradient(90deg, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 95%);
  opacity: .85;
}

/* --- Semicircle / arc + triangle for #demo (WHITE) --- */
#demo::before {
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(214,69,69,.035), transparent 55%),
    radial-gradient(ellipse 90% 100% at 0% 110%, rgba(23,25,29,.025), transparent 55%);
}
#demo::after {
  right: 6%; top: 12%; width: 170px; height: 145px;
  background: linear-gradient(135deg, rgba(23,25,29,.055), transparent 65%);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  transform: rotate(160deg);
}

/* --- Extra shape for #features: dashed triangle outline --- */
#features::before { background-image: none; /* disable original, layer new shapes */ }
#features {
  background-image:
    radial-gradient(rgba(23,25,29,.038) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 0 0;
}
#features::before {
  content: "" !important;
  left: 8%; top: -40px; width: 210px; height: 180px;
  border: 1px dashed rgba(23,25,29,.1);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  transform: rotate(-12deg);
  background: transparent;
}
/* restore ::after for features (criss-cross diamond) already defined above */

/* --- Extra arc for #compatibility --- */
#compatibility {
  background-color: var(--bg-soft);
  background-image:
    radial-gradient(rgba(23,25,29,.038) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(214,69,69,.045), transparent 42%);
  background-size: 26px 26px, auto;
  background-position: 0 0, 0 0;
  background-repeat: repeat, no-repeat;
}

/* ---------- Accordion (Challenges) ---------- */
.accordion { max-width: 860px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); overflow: hidden; transition: border-color .2s var(--ease); }
.acc-item.open { border-color: var(--accent-soft); }
.acc-header { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 20px 22px; }
.acc-header .idx { font-family: var(--font-brand); font-weight: 700; color: var(--accent); font-size: 18px; min-width: 34px; }
.acc-header .ttl { font-family: var(--font-brand); font-weight: 700; font-size: 19px; flex: 1; color: var(--ink); }
.acc-header .ic { width: 22px; height: 22px; color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.acc-item.open .ic { transform: rotate(180deg); color: var(--accent); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-body p { padding: 0 22px 22px; margin: 0; color: var(--muted); }

/* ---------- Split feature (Innovation) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,60px); align-items: center; }
.split .media { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.split .media img { border-radius: 4px; width: 100%; }
.split h3 { font-size: clamp(24px,3.2vw,34px); }
.split p { color: var(--muted); }

/* ---------- Feature grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fcard {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.fcard .ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.fcard h4 { font-size: 18px; margin-bottom: 10px; }
.fcard ul { color: var(--muted); font-size: 14.5px; display: grid; gap: 8px; }
.fcard li { display: flex; gap: 9px; }
.fcard li::before { content: "—"; color: var(--accent); flex: none; }

/* ---------- Plugin cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pcard .shot { position: relative; cursor: zoom-in; overflow: hidden; border-bottom: 1px solid var(--line); background: #101114; }
.pcard .shot img { width: 100%; transition: transform .4s var(--ease); }
.pcard:hover .shot img { transform: scale(1.04); }
.pcard .shot .zoom {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(16,17,20,.32); opacity: 0; transition: opacity .25s var(--ease);
}
.pcard .shot:hover .zoom { opacity: 1; }
.pcard .body { padding: 24px; }
.pcard .body h4 { font-size: 22px; }
.pcard .body p { color: var(--muted); margin-bottom: 0; }

/* ---------- Portfolio slider ---------- */
.slider { position: relative; }
.slider-track { display: flex; transition: transform .5s var(--ease); }
.slide { flex: 0 0 100%; min-width: 100%; padding: 0 6px; }
.slide-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: grid; grid-template-columns: 1.1fr 1fr; box-shadow: var(--shadow-1); }
.slide-card .thumb { background: #101114; position: relative; }
.slide-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.slide-card .info { padding: clamp(24px,4vw,44px); display: flex; flex-direction: column; justify-content: center; }
.slide-card .info .n { font-family: var(--font-brand); font-size: 14px; letter-spacing: .2em; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.slide-card .info h4 { font-size: clamp(22px,2.6vw,30px); margin-bottom: 14px; }
.slide-card .info p { color: var(--muted); margin: 0; }
.slider-ui { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; gap: 20px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 26px; height: 4px; background: var(--line-strong); border-radius: 2px; transition: background .2s var(--ease), width .2s var(--ease); }
.slider-dots button.is-active { background: var(--accent); width: 40px; }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button { width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius); display: grid; place-items: center; color: var(--ink); transition: all .2s var(--ease); }
.slider-arrows button:hover { border-color: var(--ink); background: var(--bg-soft); }

/* ---------- Client logos ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.logos .lg { flex: 1 1 108px; max-width: 168px; min-width: 96px; height: 74px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.logos .lg:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.logos .lg img { max-width: 100%; max-height: 42px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: filter .2s var(--ease), opacity .2s var(--ease); }
.logos .lg:hover img { filter: grayscale(0) contrast(1); opacity: 1; }

/* ---------- Downloads ---------- */
.dlist { display: grid; gap: 14px; }
.ditem { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.ditem:hover { border-color: var(--accent-soft); transform: translateX(3px); }
.ditem .drop { width: 44px; height: 44px; border-radius: var(--radius); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.ditem h4 { font-size: 17px; margin-bottom: 3px; }
.ditem p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ditem .btn { padding: 9px 16px; font-size: 13px; }

/* ---------- Contact form ---------- */
.form-wrap { max-width: 720px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-brand); font-weight: 700; font-size: 13px; letter-spacing: .04em; margin-bottom: 8px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,69,69,.12); outline: none; }
.field input.invalid, .field textarea.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,69,69,.12); }
.field .err { display: none; color: var(--accent); font-size: 13px; margin-top: 6px; }
.field.invalid .err { display: block; }
.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); }
.form-success { display: none; align-items: center; gap: 12px; border: 1px solid #d9e8dc; background: #f1f8f2; color: #1e6b37; border-radius: var(--radius); padding: 16px 20px; font-weight: 600; animation: popIn .35s cubic-bezier(.2,.8,.2,1) both; }
.form-success.show { display: flex; }
.form-error { display: none; align-items: flex-start; gap: 14px; border: 1px solid #ead5d5; background: #fdf0f0; color: #8a2626; border-radius: var(--radius); padding: 16px 20px; animation: popIn .35s cubic-bezier(.2,.8,.2,1) both; }
.form-error.show { display: flex; }
.form-error .err-icon { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; }
.form-error .err-body { display: flex; flex-direction: column; gap: 8px; }
.form-error .err-title { font-weight: 700; font-size: 15px; }
.form-error .err-detail { font-size: 13.5px; line-height: 1.5; color: #7a2525; }
.form-error .err-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.form-error .err-actions a { color: #8a2626; text-decoration: underline; font-weight: 600; }
.form-error .err-retry { border: 1px solid #8a2626; color: #8a2626; background: transparent; border-radius: var(--radius); padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .18s var(--ease); }
.form-error .err-retry:hover { background: #8a2626; color: #fff; }

.contact-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 220px; }
.contact-submit.is-loading { pointer-events: none; opacity: .82; }
.contact-submit.is-loading .btn-spinner { display: inline-block; }
.contact-submit.is-loading .btn-label { opacity: 0; }
.contact-submit .btn-spinner {
  display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.contact-submit.is-success {
  background: #2f8c4f !important; border-color: #2f8c4f !important; color: #fff !important; pointer-events: none;
  animation: successPulse .65s cubic-bezier(.2,.8,.2,1) both;
}
.contact-submit.is-error { animation: shake .45s cubic-bezier(.36,.07,.19,.97) both; }

/* ---- Mobile-friendly form tweaks ---- */
.btn,
.contact-submit,
.form-error .err-retry {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #c23a3a !important;
  box-shadow: 0 0 0 3px rgba(194, 58, 58, .14) !important;
  background-color: #fff7f7;
}
.field.invalid label {
  color: #8a2626;
  font-weight: 600;
}
.form-success,
.form-error {
  position: relative;
  z-index: 25;
  margin-bottom: 18px;
}
@media (max-width: 620px) {
  .form-success,
  .form-error {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.45;
    gap: 10px;
    word-break: break-word;
  }
  .form-success svg,
  .form-error .err-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .contact-submit {
    width: 100%;
    min-width: 0;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .form-note {
    text-align: center;
  }
}

@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes popIn {
  0%   { opacity: 0; transform: translateY(8px) scale(.98); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes successPulse {
  0%   { transform: scale(1);   }
  45%  { transform: scale(1.04); }
  100% { transform: scale(1);   }
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px);  }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60%      { transform: translateX(6px);  }
}

/* ---------- Footer ---------- */
.footer { background: #14161a; color: #c6cace; padding: clamp(48px,6vw,72px) 0 0; }
.footer a { color: #c6cace; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer .flogo { font-family: var(--font-brand); font-weight: 700; font-size: 26px; color: #fff; display: flex; align-items: center; gap: 12px; }
.footer .flogo img { width: 42px; height: auto; }
.footer h5 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer p { margin: 0 0 10px; }
.footer .social { display: flex; gap: 12px; margin-top: 16px; }
.footer .social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); display: grid; place-items: center; transition: all .2s var(--ease); }
.footer .social a:hover { border-color: var(--accent); background: var(--accent-tint); }
.footer .social a:hover svg { color: var(--accent); }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer .bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: var(--radius); background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 150; box-shadow: var(--shadow-2); }
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10,11,13,.9); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; animation: fade .2s ease; }
.lightbox figure { max-width: 1000px; width: 100%; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-weight: 700; }
.lightbox .close { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; display: grid; place-items: center; transition: all .2s var(--ease); }
.lightbox .close:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .center { text-align: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero .wave { display: none; }
}
@media (max-width: 860px) {
  .nav ul { display: none; }
  .menu-btn { display: flex; }
  .nav.open ul { display: flex; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px var(--pad) 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .nav.open a { display: block; padding: 14px 16px; }
  .split { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .slide-card { grid-template-columns: 1fr; }
  .slide-card .thumb { max-height: 320px; }
}
@media (max-width: 620px) {
  .fgrid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ditem { grid-template-columns: auto 1fr; }
  .ditem .btn { grid-column: 1 / -1; justify-self: start; }
  .footer .bottom { flex-direction: column; }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .micro::before { order: 2; }
[dir="rtl"] .acc-header .idx { min-width: 34px; }
[dir="rtl"] .hero .wave { right: auto; left: -8%; transform: scaleX(-1); }
[dir="rtl"] .to-top { right: auto; left: 22px; }
[dir="rtl"] .fcard li { flex-direction: row; }
[dir="rtl"] .form-grid { direction: rtl; }
[dir="rtl"] .footer .social { direction: rtl; }
[dir="rtl"] .slider-track { direction: ltr; }
[dir="rtl"] .slide-card .info { text-align: right; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu button { text-align: right; }

/* Small tweaks: header compact on very small screens */
@media (max-width: 1200px) { .nav a { padding: 10px 9px; font-size: 13px; } }
@media (max-width: 620px) {
  .brand .wordmark small { display: none; }
  .brand .wordmark { font-size: 20px; }
  .lang-btn { padding: 8px 10px; }
  .header-inner { gap: 12px; }
}

/* ---------- Tabs (Features) ---------- */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.tabs-nav { border-right: 1px solid var(--line); background: var(--bg-soft); padding: 14px; display: grid; gap: 6px; align-content: start; }
.tab { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 16px; border-radius: var(--radius); color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.tab .tn { font-family: var(--font-brand); font-weight: 700; color: var(--line-strong); font-size: 18px; transition: color .2s var(--ease); }
.tab .tt { font-family: var(--font-brand); font-weight: 700; font-size: 15px; }
.tab:hover { background: #fff; }
.tab.is-active { background: #fff; color: var(--accent); box-shadow: var(--shadow-1); }
.tab.is-active .tn { color: var(--accent); }
.tabs-panels { padding: clamp(26px,4vw,44px); }
.tpanel { display: none; }
.tpanel.is-active { display: block; animation: fade .35s ease; }
.tpanel-icon { width: 54px; height: 54px; border-radius: var(--radius); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.tpanel h3 { font-size: clamp(20px,2.4vw,26px); margin-bottom: 12px; }
.tpanel > p { color: var(--muted); max-width: 620px; }
.ticks { margin-top: 18px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; color: var(--ink-2); font-weight: 500; align-items: flex-start; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* ---------- Integration ---------- */
.webhighlight { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; border: 1px solid var(--accent-soft); background: var(--accent-tint); border-radius: var(--radius); padding: clamp(22px,3vw,32px); margin-bottom: 26px; }
.webhighlight .wh-icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--accent); color: #fff; display: grid; place-items: center; }
.webhighlight h3 { font-size: clamp(20px,2.4vw,26px); color: var(--ink); }
.webhighlight p { color: var(--ink-2); margin: 0; }
.igrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.icard { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.icard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.icard .ic { width: 44px; height: 44px; border-radius: var(--radius); background: var(--bg-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.icard h4 { font-size: 16px; margin-bottom: 8px; }
.icard p { color: var(--muted); font-size: 13.5px; margin: 0; }
.integration-hint { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); max-width: 760px; }

/* responsive for new components */
@media (max-width: 1024px) {
  .tabs { grid-template-columns: 1fr; }
  .tabs-nav { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); }
  .igrid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .igrid { grid-template-columns: 1fr 1fr; }
  .tabs-nav { grid-template-columns: 1fr; }
}

/* ---------- Integration list + module cards ---------- */
.ilist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.imod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.imod { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.imod:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.imod .imod-img { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.imod .imod-img img { width: 100%; aspect-ratio: 8/5; object-fit: cover; display: block; }
.imod .imod-body { padding: 20px 22px; }
.imod .imod-body h4 { font-size: 18px; margin-bottom: 6px; }
.imod .imod-body p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Demo (single request form) ---------- */
.demo-form { max-width: 780px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(26px,4vw,44px); box-shadow: var(--shadow-1); }
.demo-form .demo-form-head { margin-bottom: 22px; }
.demo-form .demo-form-head h3 { font-size: 22px; }
.demo-form .demo-form-head p { color: var(--muted); margin: 0; }
.demo-email { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); text-align: center; }
.demo-email a { font-weight: 700; }

@media (max-width: 1024px) { .ilist-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .imod-grid { grid-template-columns: 1fr; } .ilist-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .ilist-grid { grid-template-columns: 1fr; } }

/* ---------- Application areas ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 6px; }
.app-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.app-card .ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--bg-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.app-card h4 { font-size: 17px; margin-bottom: 8px; }
.app-card p { color: var(--muted); font-size: 14px; margin: 0; }
.app-cta { margin-top: 30px; padding: 22px 26px; border: 1px solid var(--accent-soft); background: var(--accent-tint); border-radius: var(--radius); color: var(--ink); font-family: var(--font-brand); font-weight: 700; font-size: clamp(17px,2vw,21px); text-align: center; }

/* ---------- GitHub open-source badge ---------- */
.src-badge { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted); font-weight: 500; }
.src-badge svg { color: var(--ink-2); flex: none; margin-top: 1px; }

@media (max-width: 1024px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .app-grid { grid-template-columns: 1fr; } }

/* ---------- Platform points (Innovation) ---------- */
.plist { display: grid; gap: 14px; margin: 22px 0; }
.pitem { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.pitem .ic { width: 42px; height: 42px; border-radius: var(--radius); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.pitem h4 { font-size: 16px; margin-bottom: 4px; }
.pitem p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 860px) { .pitem { grid-template-columns: 1fr; } }

/* ---------- MOKO Graph small feature ticks ---------- */
.src-ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.src-ticks li { display: flex; gap: 9px; font-size: 13px; line-height: 1.5; color: var(--ink-2); font-weight: 500; }
.src-ticks li::before { content: "\2713"; color: var(--accent); font-weight: 700; flex: none; }

/* ---------- Applications example note ---------- */
.app-note { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- Compact form: select styling + tighter grid ---------- */
.field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-2); font-family: inherit; font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a828c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,69,69,.12); outline: none; }
.field select.is-placeholder { color: var(--muted); }

/* tighten the grid for a more compact feel */
.demo-form .form-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.demo-form .field label { font-size: 12px; margin-bottom: 6px; }
.demo-form .field input,
.demo-form .field select,
.demo-form .field textarea { padding: 11px 13px; font-size: 14.5px; }
.demo-form .form-actions { margin-top: 18px; }
.demo-form .demo-form-head { margin-bottom: 18px; }
@media (max-width: 860px) {
  .demo-form .form-grid { grid-template-columns: 1fr; gap: 13px; }
}
