/* HA Consulting Group — "Control Room" site styles.
   Tokens mirror the iOS/Android app colour sets (dark + light). */

/* ---------- Tokens ---------- */
:root {
  --bg: #0C0D0F; --card: #14161A; --card2: #101215; --line: #26292F; --grid: #16181B;
  --ink: #F2F2F3; --sub: #A9AEB6; --faint: #878C95;
  --brand: #E3263A; --brand-soft: rgba(227, 38, 58, .14); --glow: rgba(227, 38, 58, .18);
  --ok: #3DDC84; --ok-soft: #0F2A1B;
  --nav: rgba(14, 15, 18, .82);
  --paper: #F7F3EC; --paper-ink: #1B1B1F; --paper-line: #C9B98F;
  --radius: 22px;
  --font: "Space Grotesk", "Noto Kufi Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Noto Kufi Arabic", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3F4F6; --card: #FFFFFF; --card2: #F8F9FA; --line: #E1E3E8; --grid: #E7E9ED;
  --ink: #111216; --sub: #464B54; --faint: #5E636C;
  --brand: #D61F33; --brand-soft: #FDECEE; --glow: rgba(214, 31, 51, .10);
  --ok: #13914A; --ok-soft: #E2F5E9;
  --nav: rgba(255, 255, 255, .86);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: clip; }
/* height:auto keeps the width/height attributes from stretching images that are sized by width only. */
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 104px; }
.grid-bg {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.band { border-block: 1px solid var(--line); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
[dir="rtl"] .dir-icon { transform: scaleX(-1); }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Shared bits ---------- */
.kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; color: var(--brand); }
.kicker.on-dark { color: #FF6B7A; }
.kicker-bars { display: flex; gap: 4px; }
.kicker-bars span { width: 6px; height: 18px; background: var(--brand); transform: skewX(-24deg); }
.kicker-bars span + span { opacity: .5; }
.lead { font-size: 17px; line-height: 1.9; color: var(--sub); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head > div { display: flex; flex-direction: column; gap: 10px; max-width: 660px; }
.outline-num { font-weight: 900; font-size: 140px; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--line); user-select: none; }
.bar { position: absolute; background: var(--brand); transform: skewX(-24deg); pointer-events: none; }
.slant { clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  transition: filter .2s, transform .2s, border-color .2s, color .2s;
}
.btn-sm { height: 44px; }
.btn-lg { height: 54px; padding: 0 26px; border-radius: 14px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
.glow { box-shadow: 0 14px 34px var(--glow); }
.link-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; color: var(--brand); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); color: var(--ink); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chip { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; }
.pill { padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: var(--nav); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand-word { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--sub); line-height: 1.3; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; flex: 1; font-size: 15px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.when-dark, .when-light { display: inline-flex; }
:root[data-theme="light"] .when-dark { display: none; }
:root:not([data-theme="light"]) .when-light { display: none; }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; order: 3; }
  .header-actions .btn { display: none; }
  .site-nav {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .site-nav a { padding: 12px 4px; border-top: 1px solid var(--line); }
  .site-nav.open { max-height: 420px; }
  html:not(.js) .site-nav { max-height: none; }
  html:not(.js) .menu-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-watermark { position: absolute; width: 760px; max-width: 90%; inset-inline-start: -160px; bottom: -180px; opacity: .05; pointer-events: none; }
.hero-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: 80px 104px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-title { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
.accent { color: var(--brand); }
.hero-sub { font-size: 19px; line-height: 1.9; color: var(--sub); max-width: 580px; }
.hero-copy .btn-row { padding-top: 6px; }
.hero-art { position: relative; flex: 1 1 460px; min-width: 0; max-width: 620px; aspect-ratio: 1 / .92; }
.bar-a { width: 18%; height: 78%; top: 4%; inset-inline-end: 2%; opacity: .9; }
.bar-b { width: 6%; height: 52%; top: 0; inset-inline-end: 22%; opacity: .45; }
.hero-photo { position: absolute; inset: 6% 6% 14% 4%; overflow: hidden; border-radius: 6px; background: var(--card); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--brand); box-shadow: 0 0 18px 4px var(--glow); opacity: .85; animation: scan 5.5s cubic-bezier(.6, 0, .4, 1) infinite; }
.hmi-card {
  position: absolute; inset-inline-start: 0; bottom: 0; width: 62%; min-width: 250px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.hmi-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card2); font-size: 11px; color: var(--faint); }
.run { display: flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 700; }
.hmi-card svg { display: block; width: 100%; padding: 8px 6px 4px; }
.hmi-card .rail { stroke: var(--faint); stroke-width: 2; fill: none; }
.hmi-card .live { stroke: var(--ok); stroke-width: 2.5; fill: none; }
.hmi-card .thick { stroke-width: 3; }
.hmi-card .tags text { font-family: var(--mono); font-size: 9px; fill: var(--sub); text-anchor: middle; }
.chip-float {
  position: absolute; inset-inline-end: 0; top: 8%; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 14px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 18px 40px var(--glow);
}

/* ---------- Ribbon ---------- */
.ribbon { position: relative; height: 120px; overflow: hidden; }
.ribbon-band { position: absolute; inset-inline: -40px; top: 34px; transform: rotate(-2deg); background: var(--brand); color: #fff; padding: 14px 0; overflow: hidden; }
.marq { display: flex; width: max-content; font-weight: 700; font-size: 18px; letter-spacing: .14em; animation: marq 38s linear infinite; }
.marq-item { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; white-space: nowrap; }
.marq-dot { width: 10px; height: 10px; background: #fff; transform: skewX(-24deg); }

/* ---------- Services ---------- */
#services.section { padding-top: 72px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.service-card { overflow: hidden; display: flex; flex-direction: column; }
.service-media { position: relative; aspect-ratio: 16 / 10; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 14px; inset-inline-start: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(12, 13, 15, .78); color: #fff; font-size: 11px; font-weight: 700; }
.slash { position: absolute; bottom: -1px; inset-inline-end: 22px; width: 40px; height: 22px; background: var(--brand); transform: skewX(-24deg); }
.service-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.service-body h3 { font-size: 23px; font-weight: 900; }
.service-body p { font-size: 16px; line-height: 1.9; color: var(--sub); }
.more summary { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { border-color: var(--brand); }
.more[open] summary { display: none; }
.more p { animation: rise .5s var(--ease) both; }

/* ---------- Lab ---------- */
.lab { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; }
.lab-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lab-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 11, .92) 0%, rgba(8, 9, 11, .55) 45%, rgba(8, 9, 11, .15) 100%); }
.lab-row { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 120px 64px; color: #fff; }
.lab-copy { flex: 1 1 520px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 14px; }
.lab-copy h2 { font-size: clamp(32px, 4.4vw, 58px); }
.lab-copy p { font-size: 18px; line-height: 1.9; color: rgba(255, 255, 255, .82); }
.glass-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.glass-tags span { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; }

/* ---------- Lab gallery (bento grid) ---------- */
.gallery-section { padding-bottom: 40px; }
.gallery-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin-bottom: 32px; }
/* Even 4 × 2 grid at the photos' own 4:3 ratio, so nothing gets cropped awkwardly. */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-item { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--card); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; transition: box-shadow .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { box-shadow: inset 0 0 0 2px var(--brand); }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- Courses ---------- */
.course-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.course-tab {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; text-align: start; cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.course-tab:hover { transform: translateY(-3px); }
.course-tab.on { border-color: var(--brand); background: var(--brand-soft); }
.course-tab img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.course-tab > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.code { font-size: 11px; color: var(--faint); font-weight: 700; }
.tab-title { font-weight: 800; font-size: 16px; line-height: 1.35; }
.tab-meta { font-size: 12.5px; color: var(--sub); font-weight: 600; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.course-meta > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; }
.outcomes { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: var(--brand-soft); }
.outcomes ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; }
.outcomes li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; }
.outcomes li svg { color: var(--brand); flex-shrink: 0; margin-top: 4px; }
.prereq { font-size: 14px; color: var(--sub); }
.prereq strong { color: var(--ink); }
.course-panel { overflow: hidden; display: flex; flex-wrap: wrap; margin-bottom: 22px; }
.js .course-panel[data-hidden-by-js] { display: none; }
.course-panel.show { animation: rise .5s var(--ease) both; }
.course-hero { position: relative; flex: 1 1 340px; min-width: 0; min-height: 340px; display: flex; align-items: flex-end; }
.course-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 11, .9), rgba(8, 9, 11, .05) 65%); }
.course-hero-copy { position: relative; z-index: 1; width: 100%; padding: 120px 28px 28px; display: flex; flex-direction: column; gap: 10px; color: #fff; }
.code-on-dark { font-size: 12px; font-weight: 700; color: #FF6B7A; }
.course-hero-copy h3 { font-size: 30px; font-weight: 900; line-height: 1.25; }
/* English titles inside the Arabic page keep LTR shaping but align with the RTL layout. */
[dir="rtl"] .course-hero-copy h3, [dir="rtl"] .tab-title { text-align: right; }
.course-hero-copy p { font-size: 16px; line-height: 1.8; color: rgba(255, 255, 255, .86); }
.course-hero-copy .btn-row { padding-top: 8px; }
.course-content { flex: 1.4 1 480px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.content-title { font-weight: 900; font-size: 20px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.module { border-radius: 18px; border: 1px solid var(--line); background: var(--card2); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.module-head { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; }
.num { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.module ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.module li { position: relative; padding-inline-start: 18px; font-size: 14.5px; line-height: 1.6; color: var(--sub); }
.module li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }
.no-modules { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 24px; border-radius: 18px; border: 1px dashed var(--line); background: var(--card2); color: var(--brand); }
.no-modules p { font-size: 16px; line-height: 1.85; color: var(--sub); }
.no-modules .content-title { color: var(--ink); }
.programs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.programs-label { font-size: 15px; font-weight: 800; color: var(--sub); margin-inline-end: 6px; }

/* ---------- Certificate ---------- */
.cert { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: clamp(28px, 5vw, 64px); border-radius: 30px; }
.bar-cert { width: 120px; height: 140%; top: -20%; inset-inline-end: 34%; opacity: .07; }
.cert-art { position: relative; flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.paper { width: 100%; max-width: 460px; aspect-ratio: 1.414 / 1; padding: 14px; border-radius: 10px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .28); rotate: -2.5deg; }
.paper-inner { position: relative; height: 100%; border: 2px solid var(--paper-line); outline: 1px solid var(--paper-line); outline-offset: -8px; border-radius: 4px; padding: 22px 26px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.paper-inner > img { height: 34px; width: auto; }
.paper-mid { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.paper-kicker { font-size: 10px; letter-spacing: .32em; color: #6B6455; }
.paper-name { font-size: 22px; font-weight: 900; }
.paper-line { width: 70%; height: 1px; background: var(--paper-line); }
.paper-course { font-size: 12px; color: #4A4538; }
.paper-foot { width: 100%; display: flex; justify-content: space-between; font-size: 9px; color: #6B6455; }
.seal { position: absolute; right: -18px; bottom: 26px; width: 78px; height: 78px; color: #fff; display: flex; align-items: center; justify-content: center; }
.seal svg.spin { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal circle { fill: var(--brand); }
.seal text { font-family: var(--mono); font-size: 10px; font-weight: 700; fill: #fff; letter-spacing: 2.4px; }
.seal > svg:last-child { position: relative; }
.cert-copy { position: relative; flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cert-copy h2 { font-size: clamp(28px, 3.2vw, 42px); }
.cert-form { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.cert-form label { font-size: 14px; font-weight: 800; color: var(--sub); }
.input-shell { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); transition: border-color .2s; }
.input-shell:focus-within { border-color: var(--brand); }
.input-shell input { flex: 1 1 180px; min-width: 0; height: 50px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: 18px; }
.input-shell input:focus-visible { outline: none; }
.input-shell input::placeholder { color: var(--faint); }
.input-shell .btn { height: 50px; }
.cert-status { min-height: 1.6em; font-size: 14px; font-weight: 700; color: var(--sub); }
.cert-status.is-error { color: var(--brand); }
.cert-result { padding: 16px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); animation: rise .5s var(--ease) both; }
.cert-result img { max-width: 100%; height: auto; border-radius: 10px; margin-top: 8px; }
.cert-result a { color: var(--ok); font-weight: 800; text-decoration: underline; }

/* ---------- App ---------- */
.app-band { position: relative; overflow: hidden; background: #0C0D0F; color: #F2F2F3; }
.app-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(#16181B 1px, transparent 1px), linear-gradient(90deg, #16181B 1px, transparent 1px); background-size: 32px 32px; }
.bar-app-a { width: 46%; height: 160%; top: -30%; inset-inline-end: 6%; background: #E3263A; opacity: .95; }
.bar-app-b { width: 7%; height: 160%; top: -30%; inset-inline-end: 56%; background: #E3263A; opacity: .35; }
.app-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 112px; }
.app-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.app-copy h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.15; }
.app-copy > p { font-size: 18px; line-height: 1.9; color: #B8BCC4; max-width: 520px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.feature { display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 14px 16px; border-radius: 16px; border: 1px solid #26292F; background: rgba(20, 22, 26, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 16px; font-weight: 700; }
.feature .num { width: 34px; height: 34px; background: #E3263A; font-size: 12px; }
.store-row { padding-top: 10px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px; border-radius: 16px; background: #fff; color: #111216; transition: transform .2s; }
.store-btn:hover { color: #111216; transform: translateY(-2px); }
.store-btn > span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 11px; }
.store-btn strong { font-weight: 900; font-size: 17px; }
.phones { position: relative; flex: 1 1 440px; min-width: 0; max-width: 560px; height: 640px; }
.phone { position: absolute; padding: 9px; border-radius: 46px; background: #1D1F24; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 1px #3A3D44; }
.phone img { width: 100%; border-radius: 38px; }
.phone-back { left: 4%; top: 40px; width: 270px; max-width: 52%; rotate: -6deg; }
.phone-front { right: 2%; top: 0; width: 290px; max-width: 56%; rotate: 4deg; }
.platform-chip { position: absolute; left: 30%; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #fff; color: #111216; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); font-size: 12px; font-weight: 700; }
.led-green { width: 10px; height: 10px; background: #13914A; }

/* ---------- Reviews ---------- */
#reviews .section-head { margin-bottom: 40px; }
.reviews { display: flex; flex-wrap: wrap; gap: 22px; }
.review-main {
  position: relative; overflow: hidden; flex: 1.2 1 380px; min-width: 0; min-height: 340px; margin: 0; padding: clamp(28px, 4vw, 48px);
  border-radius: 26px; background: var(--brand); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.review-main > svg { fill: rgba(255, 255, 255, .28); }
.review-main blockquote { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.8; font-weight: 700; }
.review-main figcaption, .review-small figcaption { display: flex; align-items: center; gap: 14px; }
.review-main figcaption > span:last-child, .review-small figcaption > span:last-child { display: flex; flex-direction: column; }
.review-main figcaption .mono { font-size: 12px; opacity: .85; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .5); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
.avatar.soft { width: 40px; height: 40px; border: 0; background: var(--brand-soft); color: var(--brand); }
.review-watermark { position: absolute; width: 260px; inset-inline-end: -40px; bottom: -50px; opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
.review-source { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.review-source svg { color: var(--brand); flex-shrink: 0; }
.review-main { align-self: flex-start; position: sticky; top: 100px; }
.review-wall { flex: 2 1 520px; min-width: 0; columns: 2 280px; column-gap: 22px; }
.review-small { break-inside: avoid; margin: 0 0 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.stars { display: inline-flex; gap: 2px; color: #F5A524; margin-top: 2px; }
.review-main .stars { color: #fff; }
.recommends { font-size: 12px; font-weight: 700; color: var(--brand); }
.review-small blockquote { margin: 0; font-size: 16px; line-height: 1.9; color: var(--sub); }
.review-small .mono { font-size: 12px; color: var(--faint); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--card2); }
.footer-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 56px; padding-block: 88px 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-copy h2 { font-size: clamp(28px, 3.2vw, 42px); }
.contact-grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.contact-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.contact-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-label { font-size: 13px; color: var(--faint); }
.contact-value { font-weight: 800; font-size: 15px; line-height: 1.6; }
a.contact-value:hover { color: var(--brand); }
.contact-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--brand); }
.about-line { font-size: 15px; color: var(--faint); }
.kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.since-badge { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-weight: 700; color: var(--sub); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.copyright { display: flex; align-items: center; gap: 12px; }
.copyright img { height: 26px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-links > a { color: var(--sub); }
.footer-links > a:hover { color: var(--brand); }
.credit { margin: -32px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--faint); }
.heart { display: inline-block; vertical-align: -2px; color: var(--brand); transition: transform .3s var(--ease); }
.credit:hover .heart { animation: beat 1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
.credit a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 4px; }
.footer-mark { position: absolute; inset-inline-end: -20px; bottom: -40px; font-size: 260px; opacity: .6; pointer-events: none; }

/* ---------- Hover motion ---------- */
.lift { transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 24px 60px var(--glow); border-color: var(--brand); }
.zoom { overflow: hidden; }
.zoom img { transition: transform 1s var(--ease); }
.lift:hover .zoom img { transform: scale(1.07); }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes kb { from { transform: scale(1.05); } to { transform: scale(1.16) translate(-2%, -1%); } }
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 50% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes marq-rtl { to { transform: translateX(50%); } }
@keyframes float { 50% { translate: 0 -14px; } }
@keyframes float2 { 50% { translate: 0 10px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0% { top: -4%; } 100% { top: 104%; } }
@keyframes drift { 50% { transform: translate(-20px, 14px) rotate(-2deg); } }

.in { animation: rise .9s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; }
.kb { animation: kb 20s ease-in-out infinite alternate; }
.flow { stroke-dasharray: 8 12; animation: flow 1.1s linear infinite; }
.led { animation: pulse 1.8s ease-in-out infinite; }
[dir="rtl"] .marq { animation-name: marq-rtl; }
.float { animation: float 6s ease-in-out infinite; }
.float2 { animation: float2 7s ease-in-out infinite; }
.spin { animation: spin 26s linear infinite; }
.drift { animation: drift 16s ease-in-out infinite; }

/* Scroll reveal: hidden only when JS is running, so content never disappears without it. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .header-row { column-gap: 8px; }
  .brand { margin-inline-end: auto; }
}
@media (max-width: 420px) {
  .brand-word { display: none; }
}
@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .hero-row { padding-block: 48px 72px; gap: 48px; }
  .outline-num { font-size: 96px; }
  .hmi-card { width: 78%; }
  .phones { height: 470px; }
  .platform-chip { left: 20%; }
  .course-content { padding: 22px; }
  .review-main { position: relative; top: auto; }
  .footer-mark { font-size: 180px; }
}
