/* ==========================================================================
   Kodaya | كوداية — Design System
   Dark-first · RTL/LTR via logical properties · Red as accent only
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-adjusted fallbacks reduce layout shift while fonts load */
@font-face { font-family: "Cairo Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 95%; descent-override: 42%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 103%; ascent-override: 98%; descent-override: 26%; }

/* ---------- Tokens ---------- */
:root {
  --red: #E53935;
  --red-600: #D32F2F;
  --red-dark: #A91418;
  --black: #0B0B0D;
  --ink-2: #151518;
  --white: #FFFFFF;
  --gray-100: #F4F4F5;

  --font-ar: "Cairo", "Manrope", "Cairo Fallback", system-ui, sans-serif;
  --font-en: "Manrope", "Cairo", "Manrope Fallback", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .28s;

  --grad-red: linear-gradient(135deg, #F0524E 0%, #E53935 45%, #A91418 100%);
}

/* Dark tokens (default) — also used for .t-dark islands and inverted sections in light mode */
:root, .t-dark, html[data-theme="light"] .section--invert {
  color-scheme: dark;
  --bg: #0B0B0D;
  --bg-2: #151518;
  --bg-3: #1B1B1F;
  --surface: #121215;
  --surface-2: #18181C;
  --surface-glass: rgba(21, 21, 24, .62);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #FFFFFF;
  --text-2: #A8A8B3;
  --text-3: #8B8B96;
  --accent-text: #FF5A55;
  --accent-soft: rgba(229, 57, 53, .12);
  --accent-line: rgba(229, 57, 53, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .75);
  --glow: 0 0 0 1px rgba(229, 57, 53, .25), 0 12px 40px -8px rgba(229, 57, 53, .45);
  --grid-line: rgba(255, 255, 255, .045);
  --header-bg: rgba(11, 11, 13, .72);
  --input-bg: #141417;
  --mock-bg: #0F0F12;
  --mock-line: rgba(255, 255, 255, .07);
  --mock-fill: rgba(255, 255, 255, .06);
  --mock-fill-2: rgba(255, 255, 255, .11);
}

html[data-theme="light"], .t-light, html:not([data-theme="light"]) .section--invert {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-2: #F4F4F5;
  --bg-3: #EBEBED;
  --surface: #FFFFFF;
  --surface-2: #F8F8F9;
  --surface-glass: rgba(255, 255, 255, .72);
  --border: rgba(11, 11, 13, .09);
  --border-2: rgba(11, 11, 13, .16);
  --text: #0B0B0D;
  --text-2: #52525B;
  --text-3: #63636D;
  --accent-text: #C62828;
  --accent-soft: rgba(229, 57, 53, .08);
  --accent-line: rgba(229, 57, 53, .3);
  --shadow-sm: 0 1px 2px rgba(11, 11, 13, .06);
  --shadow: 0 10px 30px -14px rgba(11, 11, 13, .18);
  --shadow-lg: 0 30px 70px -28px rgba(11, 11, 13, .28);
  --glow: 0 0 0 1px rgba(229, 57, 53, .2), 0 12px 36px -10px rgba(229, 57, 53, .35);
  --grid-line: rgba(11, 11, 13, .05);
  --header-bg: rgba(255, 255, 255, .78);
  --input-bg: #FFFFFF;
  --mock-bg: #FFFFFF;
  --mock-line: rgba(11, 11, 13, .08);
  --mock-fill: rgba(11, 11, 13, .06);
  --mock-fill-2: rgba(11, 11, 13, .1);
}

.t-dark, .t-light, .section--invert { background: var(--bg); color: var(--text); }

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -.025em; line-height: 1.12; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
[dir="rtl"] .icon-arrow, [dir="rtl"] .icon-chevron, [dir="rtl"] .icon-arrow-up-right, [dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.tech-logo { width: 1.5em; height: 1.5em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 1000; background: var(--red-600); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--bg-2); }
.section:not(.section--alt):not(.section--invert):not(.t-dark) + .section:not(.section--alt):not(.section--invert):not(.t-dark) { padding-top: 0; }
.section--alt + .section--alt { padding-top: 0; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: var(--stack, 1rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Typography ---------- */
.display { font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.6rem); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
html[lang="en"] .display { line-height: 1.04; letter-spacing: -.04em; }
.h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
.h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.85rem); }
.h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.text-accent { color: var(--accent-text); }
.text-gradient { background: linear-gradient(120deg, #FF6B66 0%, #E53935 50%, #C62828 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .text-gradient { background: linear-gradient(120deg, #E53935 0%, #C62828 60%, #A91418 100%); -webkit-background-clip: text; background-clip: text; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .8125rem; font-weight: 700; color: var(--accent-text); letter-spacing: .02em; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--red); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); flex-wrap: wrap; }
.section-head__text { max-width: 640px; }
.section-head__text > * + * { margin-top: 14px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }
.prose { font-size: 1.0625rem; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--text); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { color: var(--text); font-size: 1.25rem; margin-top: 1.6em; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--red); }
.prose blockquote { border-inline-start: 3px solid var(--red); padding: 16px 22px; background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font-weight: 600; }
[dir="rtl"] .prose blockquote { border-radius: var(--radius) 0 0 var(--radius); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--btn-h); padding: 0 1.5em; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .975rem; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; isolation: isolate; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur), border-color var(--dur), color var(--dur);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: 0 8px 24px -10px rgba(229, 57, 53, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #EF4B47, #C62828); opacity: 0; transition: opacity var(--dur); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(229, 57, 53, .85), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover::before { opacity: 1; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--text-3); transform: translateY(-2px); }
.btn-ghost { color: var(--text); padding-inline: .6em; }
.btn-ghost:hover { color: var(--accent-text); }
.btn-outline { border-color: var(--border-2); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--red); color: var(--accent-text); }
.btn-white { background: #fff; color: var(--black); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255, 255, 255, .45); }
.btn-sm { --btn-h: 40px; font-size: .875rem; padding: 0 1.1em; }
.btn-lg { --btn-h: 58px; font-size: 1.05rem; padding: 0 1.9em; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--text); transition: color var(--dur), gap var(--dur) var(--ease); }
.link-arrow .icon { width: 1.05em; height: 1.05em; color: var(--accent-text); }
.link-arrow:hover { color: var(--accent-text); gap: .7em; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--text); transition: border-color var(--dur), background-color var(--dur), color var(--dur); }
.icon-btn:hover { border-color: var(--border-2); background: var(--surface-2); }
.icon-btn .icon { width: 19px; height: 19px; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .45em; padding: .3em .8em; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); line-height: 1.5; }
.badge--neutral { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip { display: inline-flex; align-items: center; gap: .5em; min-height: 42px; padding: 0 1.1em; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .9rem; transition: all var(--dur) var(--ease); white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip[aria-pressed="true"], .chip.is-active, .chip[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip__count { font-size: .75rem; opacity: .65; }
.tag { display: inline-flex; padding: .25em .75em; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; color: var(--text-2); font-weight: 600; transition: color var(--dur), border-color var(--dur); }
a.tag:hover { color: var(--accent-text); border-color: var(--accent-line); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; max-width: 100%; }
@media (max-width: 720px) { .chips--scroll { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); max-width: none; } }
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--scroll > * { scroll-snap-align: start; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 32px); transition: transform .4s var(--ease-out), border-color var(--dur), box-shadow .4s var(--ease-out), background-color var(--dur); }
.card--hover:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-lg); }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.card__icon .icon { width: 24px; height: 24px; }
.card__title { font-size: 1.2rem; font-weight: 800; margin-top: 20px; }
.card__text { color: var(--text-2); margin-top: 8px; font-size: .975rem; }
.glass { background: var(--surface-glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--border); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h); transition: background-color .3s, border-color .3s, backdrop-filter .3s, transform .35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--border); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.logo__mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo__text { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-en); letter-spacing: -.02em; }
.logo__sep { width: 1px; height: 16px; background: var(--border-2); align-self: center; }
.logo__ar { font-family: var(--font-ar); font-weight: 800; letter-spacing: 0; }
.main-nav { margin-inline-start: auto; }
.main-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.main-nav__link { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 600; color: var(--text-2); transition: color var(--dur), background-color var(--dur); white-space: nowrap; }
.main-nav__link:hover { color: var(--text); background: var(--mock-fill); }
.main-nav__link[aria-current="page"] { color: var(--text); }
.main-nav__link[aria-current="page"]::after { content: ""; position: absolute; bottom: 3px; inset-inline: 50%; transform: translateX(50%); width: 16px; height: 2px; border-radius: 2px; background: var(--red); }
[dir="ltr"] .main-nav__link[aria-current="page"]::after { transform: translateX(-50%); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: .85rem; font-weight: 700; color: var(--text-2); transition: color var(--dur), border-color var(--dur); }
.lang-switch:hover { color: var(--text); border-color: var(--border-2); }
.lang-switch .icon { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.nav-toggle { display: none; }
@media (max-width: 1180px) { .main-nav__link { padding: 0 9px; font-size: .86rem; } }
@media (max-width: 1200px) {
  .main-nav, .header-actions .btn-cta, .header-actions .lang-switch--desktop { display: none; }
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
}

/* Mobile drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; overflow: hidden; }
.mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; }
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--bg); border-inline-start: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease-out); overflow-y: auto; overscroll-behavior: contain; }
[dir="rtl"] .mobile-nav__panel { transform: translateX(-100%); }
.mobile-nav.is-open .mobile-nav__panel { transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.mobile-nav__list { list-style: none; padding: 12px var(--gutter); }
.mobile-nav__link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 1.15rem; font-weight: 700; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-nav__link .icon { width: 18px; height: 18px; color: var(--text-3); }
.mobile-nav__link[aria-current="page"] { color: var(--accent-text); }
.mobile-nav__link[aria-current="page"] .icon { color: var(--red); }
.mobile-nav__foot { margin-top: auto; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 12px; border-top: 1px solid var(--border); background: var(--bg-2); }
.mobile-nav__row { display: flex; gap: 10px; }
.mobile-nav__row > * { flex: 1; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(56px, 8vw, 112px); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.bg-glow { position: absolute; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 57, 53, .28) 0%, rgba(229, 57, 53, .08) 35%, transparent 65%); filter: blur(10px); }
html[data-theme="light"] .bg-glow { background: radial-gradient(circle, rgba(229, 57, 53, .16) 0%, rgba(229, 57, 53, .05) 35%, transparent 65%); }
.hero .bg-glow { top: -220px; inset-inline-start: -120px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero__content > * + * { margin-top: 24px; }
.hero__title { max-width: 14ch; }
html[lang="en"] .hero__title { max-width: 13ch; }
.hero__lead { max-width: 52ch; }
.hero__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: .9rem; padding-top: 8px; }
.hero__meta-icons { display: flex; }
.hero__meta-icons span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--bg); color: var(--text-2); }
.hero__meta-icons span + span { margin-inline-start: -10px; }
.hero__meta-icons .icon { width: 16px; height: 16px; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__title, html[lang="en"] .hero__title { max-width: 18ch; }
}

/* Hero composition */
.hero-visual { position: relative; aspect-ratio: 1 / .92; width: 100%; max-width: 620px; margin-inline: auto; }
.hero-visual__glow { position: absolute; inset: 12% 8%; background: radial-gradient(closest-side, rgba(229, 57, 53, .42), transparent); filter: blur(40px); z-index: 0; }
html[data-theme="light"] .hero-visual__glow { background: radial-gradient(closest-side, rgba(229, 57, 53, .22), transparent); }
.hv-window { position: absolute; inset-block: 6% 14%; inset-inline: 10% 4%; z-index: 1; border-radius: var(--radius-lg); background: var(--mock-bg); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.hv-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--mock-line); direction: ltr; }
.hv-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--mock-fill-2); }
.hv-bar i:first-child { background: #E53935; }
.hv-url { margin-inline-start: 12px; flex: 1; height: 20px; border-radius: 6px; background: var(--mock-fill); display: flex; align-items: center; padding-inline: 10px; font: 600 10px/1 var(--font-en); color: var(--text-3); letter-spacing: .02em; }
.hv-body { flex: 1; display: grid; grid-template-columns: 22% 1fr; min-height: 0; }
.hv-side { border-inline-end: 1px solid var(--mock-line); padding: 14px 10px; display: flex; flex-direction: column; gap: 9px; }
.hv-side span { height: 8px; border-radius: 4px; background: var(--mock-fill); }
.hv-side span.is-on { background: var(--red); width: 80%; }
.hv-side span:nth-child(3) { width: 70%; } .hv-side span:nth-child(5) { width: 60%; }
.hv-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hv-kpi { border: 1px solid var(--mock-line); border-radius: 10px; padding: 9px; }
.hv-kpi b { display: block; font: 800 15px/1.1 var(--font-en); color: var(--text); direction: ltr; text-align: start; }
.hv-kpi small { display: block; margin-top: 6px; height: 5px; width: 60%; border-radius: 3px; background: var(--mock-fill-2); }
.hv-kpi em { font-style: normal; font: 700 9px/1 var(--font-en); color: #22C55E; }
.hv-chart { flex: 1; border: 1px solid var(--mock-line); border-radius: 12px; padding: 12px; display: flex; align-items: flex-end; gap: 6%; min-height: 0; position: relative; direction: ltr; }
.hv-chart span { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--mock-fill-2); height: var(--h); transform-origin: bottom; animation: grow 1.2s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + .3s); }
.hv-chart span.is-hot { background: linear-gradient(180deg, #F0524E, #A91418); box-shadow: 0 0 20px rgba(229, 57, 53, .45); }
.hv-card { position: absolute; z-index: 2; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hv-code { inset-inline-start: 0; bottom: 4%; width: 54%; padding: 14px 16px; background: #111114; border: 1px solid rgba(255, 255, 255, .1); font: 500 11.5px/1.75 var(--font-mono); color: #C9C9D1; animation: float 7s ease-in-out infinite; }
.hv-code .k { color: #FF6B66; } .hv-code .s { color: #F5C07A; } .hv-code .c { color: #6B6B76; } .hv-code .f { color: #8AB4F8; }
.hv-code__head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 10px; color: #6B6B76; }
.hv-phone { inset-inline-end: 2%; bottom: 0; width: 25%; aspect-ratio: 9 / 18.5; border-radius: 22px; background: var(--mock-bg); border: 1px solid var(--border-2); padding: 7px; animation: float 8s ease-in-out infinite reverse; }
.hv-phone__screen { height: 100%; border-radius: 16px; background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 16px 8px 8px; }
.hv-phone__screen span { height: 6px; border-radius: 3px; background: var(--mock-fill-2); }
.hv-phone__screen .img { height: 38%; border-radius: 10px; background: linear-gradient(140deg, rgba(229, 57, 53, .85), #A91418); }
.hv-phone__screen .btn-m { height: 16px; border-radius: 8px; background: var(--red); margin-top: auto; }
.hv-score { top: 0; inset-inline-end: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; animation: float 9s ease-in-out infinite; }
.hv-ring { width: 46px; height: 46px; position: relative; flex-shrink: 0; }
.hv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hv-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px/1 var(--font-en); color: #22C55E; }
.hv-score strong { display: block; font-size: .85rem; font-weight: 800; }
.hv-score small { display: block; font-size: .72rem; color: var(--text-3); }
.hv-toast { top: 42%; inset-inline-start: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .78rem; font-weight: 700; animation: float 6s ease-in-out infinite; animation-delay: -2s; }
.hv-toast .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(34, 197, 94, .14); color: #22C55E; }
.hv-toast .dot .icon { width: 15px; height: 15px; }
@media (max-width: 960px) { .hero-visual { max-width: 560px; margin-top: 8px; } }
@media (max-width: 520px) {
  .hero-visual { aspect-ratio: 1 / 1.02; }
  .hv-window { inset: 8% 0 18% 0; }
  .hv-code { width: 70%; font-size: 10px; padding: 10px 12px; bottom: 0; }
  .hv-phone { width: 30%; }
  .hv-score { transform: scale(.88); transform-origin: top; }
  .hv-toast { display: none; }
  .hv-body { grid-template-columns: 1fr; }
  .hv-side { display: none; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.stat { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 36px) clamp(18px, 2.4vw, 32px); position: relative; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat__value { font-family: var(--font-en); font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 2px; direction: ltr; justify-content: flex-end; }
[dir="ltr"] .stat__value { justify-content: flex-start; }
.stat__affix { color: var(--red); font-size: .7em; }
.stat__label { margin-top: 10px; color: var(--text-2); font-size: .95rem; font-weight: 600; }
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.services-grid > :nth-child(1), .services-grid > :nth-child(2) { grid-column: span 3; }
.services-grid > :nth-child(n+3) { grid-column: span 2; }
@media (max-width: 1024px) { .services-grid > * { grid-column: span 3 !important; } .services-grid > :last-child:nth-child(odd) { grid-column: span 6 !important; } }
@media (max-width: 680px) { .services-grid { grid-template-columns: minmax(0, 1fr); } .services-grid > *, .services-grid > :last-child:nth-child(odd) { grid-column: auto !important; } }
.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(229, 57, 53, .1), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.service-card:hover::before { opacity: 1; }
.service-card:hover { border-color: var(--accent-line); }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service-card__num { font: 700 .8rem/1 var(--font-en); color: var(--text-3); letter-spacing: .05em; }
.service-card .card__icon { transition: transform .4s var(--ease-out), background-color .3s, color .3s; }
.service-card:hover .card__icon { transform: rotate(-6deg) scale(1.05); background: var(--red); color: #fff; border-color: var(--red); }
.service-card__features { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.service-card__features li { font-size: .8rem; font-weight: 600; color: var(--text-2); padding: .3em .75em; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface-2); }
.service-card__foot { margin-top: auto; padding-top: 26px; }
.service-card--wide .card__title { font-size: 1.4rem; }

/* ---------- Why Kodaya (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: clamp(14px, 1.8vw, 20px); }
.bento__item { grid-column: span 4; overflow: hidden; display: flex; flex-direction: column; }
.bento__item--lg { grid-column: span 7; grid-row: span 2; }
.bento__item--md { grid-column: span 5; }
.bento__item--half { grid-column: span 6; }
.bento__item .card__title { margin-top: 16px; }
.bento__visual { margin-top: auto; padding-top: 24px; }
@media (max-width: 1024px) { .bento__item, .bento__item--lg, .bento__item--md, .bento__item--half { grid-column: span 6; grid-row: auto; } .bento__item--lg { grid-column: span 12; } }
@media (max-width: 680px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento > * { grid-column: auto !important; } }
.design-canvas { position: relative; border-radius: var(--radius); border: 1px dashed var(--border-2); padding: 18px; min-height: 230px; background-image: radial-gradient(var(--mock-fill-2) 1px, transparent 1px); background-size: 16px 16px; overflow: hidden; }
.dc-frame { position: absolute; border: 1.5px solid var(--red); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.dc-frame span { height: 7px; border-radius: 4px; background: var(--mock-fill-2); }
.dc-frame .h { height: 12px; width: 70%; background: var(--text); opacity: .85; }
.dc-frame .b { height: 22px; width: 45%; border-radius: 6px; background: var(--red); margin-top: 4px; }
.dc-frame--a { inset-inline-start: 8%; top: 14%; width: 52%; }
.dc-frame--b { inset-inline-end: 7%; top: 38%; width: 38%; border-color: var(--border-2); }
.dc-handle { position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid var(--red); border-radius: 2px; }
.dc-handle--tl { top: -4px; inset-inline-start: -4px; } .dc-handle--br { bottom: -4px; inset-inline-end: -4px; }
.dc-cursor { position: absolute; inset-inline-start: 55%; top: 58%; color: var(--text); animation: cursor 6s var(--ease) infinite; }
.dc-cursor .icon { width: 22px; height: 22px; fill: var(--text); }
.dc-cursor span { display: inline-block; margin-top: 2px; margin-inline-start: 14px; padding: 2px 8px; border-radius: 6px; background: var(--red); color: #fff; font: 700 11px/1.6 var(--font-en); }
.dc-swatches { position: absolute; bottom: 14px; inset-inline-start: 14px; display: flex; gap: 6px; }
.dc-swatches i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-2); }
.perf-meter { display: flex; gap: 14px; flex-wrap: wrap; }
.perf-meter__item { flex: 1; min-width: 80px; text-align: center; }
.perf-ring { width: 64px; height: 64px; margin-inline: auto; position: relative; }
.perf-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.perf-ring circle { fill: none; stroke-width: 5; }
.perf-ring .track { stroke: var(--mock-fill-2); }
.perf-ring .val { stroke: #22C55E; stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 176; transition: stroke-dashoffset 1.6s var(--ease-out); }
.is-visible .perf-ring .val { stroke-dashoffset: var(--off); }
.perf-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1rem/1 var(--font-en); color: #22C55E; }
.perf-meter__item small { display: block; margin-top: 8px; font-size: .78rem; color: var(--text-2); font-weight: 600; }
.devices-visual { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 96px; }
.devices-visual span { border: 1.5px solid var(--border-2); border-radius: 8px; background: var(--surface-2); position: relative; overflow: hidden; }
.devices-visual span::after { content: ""; position: absolute; inset: 22% 14% auto; height: 18%; border-radius: 3px; background: var(--accent-soft); box-shadow: 0 10px 0 -2px var(--mock-fill-2), 0 20px 0 -2px var(--mock-fill); }
.devices-visual .d1 { width: 120px; height: 80px; } .devices-visual .d2 { width: 60px; height: 78px; } .devices-visual .d3 { width: 34px; height: 64px; border-radius: 9px; border-color: var(--red); }
.scale-visual { display: flex; align-items: flex-end; gap: 6px; height: 80px; direction: ltr; }
.scale-visual span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--mock-fill-2); height: var(--h); }
.scale-visual span:last-child { background: var(--grad-red); }
.support-visual { display: flex; flex-direction: column; gap: 8px; }
.support-bubble { align-self: flex-start; max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; color: var(--text-2); }
.support-bubble--me { align-self: flex-end; background: var(--red-600); color: #fff; border-color: transparent; }
.ux-visual { display: flex; align-items: center; gap: 8px; direction: ltr; }
.ux-visual span { flex: 1; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; font: 700 .7rem/1 var(--font-en); color: var(--text-3); }
.ux-visual span.on { border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
.ux-visual i { width: 14px; height: 1.5px; background: var(--border-2); flex-shrink: 0; }

/* ---------- Portfolio ---------- */
.portfolio-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.portfolio-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .portfolio-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .portfolio-grid, .portfolio-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .portfolio-grid--swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; }
  .portfolio-grid--swipe::-webkit-scrollbar { display: none; }
  .portfolio-grid--swipe > * { flex: 0 0 86%; scroll-snap-align: center; }
}
.project-card { display: flex; flex-direction: column; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.project-card__media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 26%, var(--bg-2)) 0%, var(--bg-2) 70%); border-bottom: 1px solid var(--border); }
.project-card__media .mock-stage { transition: transform .7s var(--ease-out); }
.project-card:hover .mock-stage { transform: scale(1.035) translateY(-4px); }
.project-card__body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-card__title { font-size: 1.3rem; font-weight: 800; }
.project-card__title a::after { content: ""; position: absolute; inset: 0; }
.project-card { position: relative; }
.project-card__text { color: var(--text-2); font-size: .95rem; }
.project-card__tech { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.project-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.project-card__foot .link-arrow { position: relative; z-index: 1; }
.project-card.is-hidden { display: none; }
.empty-state { text-align: center; padding: clamp(40px, 6vw, 72px) 20px; border: 1px dashed var(--border-2); border-radius: var(--radius-xl); color: var(--text-2); }
.empty-state__icon { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text-3); }
.empty-state__icon .icon { width: 24px; height: 24px; }
.empty-state strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 4px; }

/* Device mockups (pure CSS, themed by --accent) */
.mock-stage { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 8% 7% 0; }
.mock-browser { position: relative; width: 84%; height: 92%; border-radius: 12px 12px 0 0; background: var(--mock-bg); border: 1px solid var(--border-2); border-bottom: 0; box-shadow: 0 -10px 50px -20px color-mix(in srgb, var(--accent) 60%, transparent); overflow: hidden; display: flex; flex-direction: column; direction: ltr; }
.mock-browser__bar { display: flex; gap: 5px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--mock-line); flex-shrink: 0; }
.mock-browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--mock-fill-2); }
.mock-browser__bar b { margin-inline-start: 8px; height: 12px; flex: 1; max-width: 55%; border-radius: 4px; background: var(--mock-fill); }
.mock-browser__screen { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; }
.mock-phone { position: absolute; bottom: -6%; inset-inline-end: 5%; width: 22%; aspect-ratio: 9 / 18.5; border-radius: 16px; background: var(--mock-bg); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); padding: 5px; direction: ltr; }
.mock-phone__screen { height: 100%; border-radius: 12px; overflow: hidden; background: var(--bg-2); padding: 10px 6px; display: flex; flex-direction: column; gap: 5px; }
.m-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.m-logo { width: 26px; height: 8px; border-radius: 3px; background: var(--accent); }
.m-links { display: flex; gap: 4px; } .m-links i { width: 14px; height: 4px; border-radius: 2px; background: var(--mock-fill-2); }
.m-hero { border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 5px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 80%); border: 1px solid var(--mock-line); }
.m-h { height: 9px; width: 62%; border-radius: 3px; background: var(--text); opacity: .85; }
.m-h--sm { width: 40%; opacity: .6; }
.m-p { height: 5px; width: 80%; border-radius: 3px; background: var(--mock-fill-2); }
.m-p--s { width: 55%; }
.m-btn { width: 30%; height: 11px; border-radius: 6px; background: var(--accent); margin-top: 3px; }
.m-row { display: grid; gap: 6px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.m-card { border-radius: 6px; border: 1px solid var(--mock-line); padding: 5px; display: flex; flex-direction: column; gap: 4px; min-height: 30px; }
.m-img { border-radius: 4px; aspect-ratio: 4 / 3; background: var(--mock-fill); position: relative; overflow: hidden; }
.m-img--accent { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #000)); }
.m-img--video::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border-left: 7px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.m-price { width: 40%; height: 5px; border-radius: 3px; background: var(--accent); }
.m-bar { height: 5px; border-radius: 3px; background: var(--mock-fill-2); overflow: hidden; }
.m-bar i { display: block; height: 100%; width: var(--w, 60%); background: var(--accent); }
.m-list { display: flex; flex-direction: column; gap: 6px; }
.m-list-item { display: grid; grid-template-columns: 30% 1fr; gap: 6px; align-items: center; }
.m-dash { display: grid; grid-template-columns: 18% 1fr; gap: 8px; flex: 1; min-height: 0; }
.m-dash-side { border-radius: 6px; background: var(--mock-fill); display: flex; flex-direction: column; gap: 5px; padding: 6px 5px; }
.m-dash-side i { height: 4px; border-radius: 2px; background: var(--mock-fill-2); } .m-dash-side i:first-child { background: var(--accent); }
.m-chart { flex: 1; border-radius: 6px; border: 1px solid var(--mock-line); display: flex; align-items: flex-end; gap: 5%; padding: 6px; min-height: 40px; }
.m-chart span { flex: 1; border-radius: 3px 3px 0 0; background: var(--mock-fill-2); height: var(--h); }
.m-chart span:nth-child(3n) { background: var(--accent); }
.m-kpi { border-radius: 6px; border: 1px solid var(--mock-line); padding: 5px; display: flex; flex-direction: column; gap: 4px; }
.m-kpi b { height: 7px; width: 50%; border-radius: 3px; background: var(--text); opacity: .8; }
.m-ticker { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.m-ticker b { width: 22px; height: 6px; border-radius: 2px; background: var(--accent); }
.mock--large .mock-browser { width: 88%; }
.mock--large .mock-browser__screen { padding: 16px 18px; gap: 12px; }

/* ---------- Process timeline ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.process::before { content: ""; position: absolute; top: 27px; inset-inline: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2) 10%, var(--border-2) 90%, transparent); }
.process::after { content: ""; position: absolute; top: 27px; inset-inline-start: 28px; height: 2px; width: 0; background: var(--grad-red); transition: width 1.8s var(--ease-out); box-shadow: 0 0 12px rgba(229, 57, 53, .6); }
.process.is-visible::after { width: calc(100% - 56px); }
.process__step { position: relative; }
.process__num { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--border-2); font: 800 1rem/1 var(--font-en); color: var(--text); transition: all .5s var(--ease-out); }
.section--alt .process__num { background: var(--bg-2); }
.is-visible .process__step .process__num { border-color: var(--red); color: var(--accent-text); box-shadow: 0 0 0 6px var(--accent-soft); transition-delay: calc(var(--i) * 280ms); }
.process__title { font-size: 1.15rem; font-weight: 800; margin-top: 22px; }
.process__text { color: var(--text-2); font-size: .94rem; margin-top: 8px; }
@media (max-width: 960px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process::before { top: 28px; bottom: 28px; inset-inline: auto; inset-inline-start: 27px; width: 1px; height: auto; background: var(--border-2); }
  .process::after { top: 28px; inset-inline-start: 27px; width: 2px !important; height: 0; transition: height 1.8s var(--ease-out); }
  .process.is-visible::after { height: calc(100% - 56px); }
  .process__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .process__step:last-child { padding-bottom: 0; }
  .process__title { margin-top: 12px; }
  .process__text { grid-column: 2; }
  .process__step > div { grid-column: 2; }
}

/* ---------- About preview ---------- */
.about-visual { position: relative; aspect-ratio: 1 / .9; border-radius: var(--radius-xl); overflow: hidden; background: var(--bg); border: 1px solid var(--border); isolation: isolate; }
.about-visual .bg-grid { mask-image: none; -webkit-mask-image: none; background-size: 40px 40px; }
.about-visual__logo { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.about-visual__logo svg { width: 38%; filter: drop-shadow(0 20px 60px rgba(229, 57, 53, .45)); }
.orbit { position: absolute; inset: 50% auto auto 50%; border: 1px dashed var(--border-2); border-radius: 50%; translate: -50% -50%; animation: spin 60s linear infinite; }
.orbit--1 { width: 62%; aspect-ratio: 1; } .orbit--2 { width: 88%; aspect-ratio: 1; animation-duration: 90s; animation-direction: reverse; }
.orbit__node { position: absolute; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-2); color: var(--accent-text); box-shadow: var(--shadow); animation: spin 60s linear infinite reverse; }
.orbit--2 .orbit__node { animation-duration: 90s; animation-direction: normal; }
.orbit__node .icon { width: 20px; height: 20px; }
.orbit__node:nth-child(1) { top: -22px; left: calc(50% - 22px); } .orbit__node:nth-child(2) { bottom: -22px; left: calc(50% - 22px); } .orbit__node:nth-child(3) { left: -22px; top: calc(50% - 22px); } .orbit__node:nth-child(4) { right: -22px; top: calc(50% - 22px); }
.about-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.about-point { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.about-point .icon { color: var(--accent-text); margin-top: .3em; width: 20px; height: 20px; }
@media (max-width: 520px) { .about-points { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tech ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1024px) { .tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.tech-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 1.25; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text-3); transition: color .3s, border-color .3s, transform .4s var(--ease-out), background-color .3s; text-align: center; padding: 12px; }
.tech-item .tech-logo, .tech-item .icon { width: 32px; height: 32px; }
.tech-item span { font: 700 .82rem/1.2 var(--font-en); color: var(--text-2); }
.tech-item:hover { color: var(--brand, var(--accent-text)); border-color: var(--border-2); transform: translateY(-3px); background: var(--surface-2); }
@media (max-width: 560px) { .tech-item { aspect-ratio: 1; } .tech-item .tech-logo, .tech-item .icon { width: 26px; height: 26px; } .tech-item span { font-size: .72rem; } }
.tech-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); font: 700 .85rem/1 var(--font-en); color: var(--text-2); }
.tech-pill .tech-logo, .tech-pill .icon { width: 18px; height: 18px; color: var(--text); }

/* ---------- Testimonials ---------- */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (max-width: 1024px) { .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 680px) { .carousel__track { grid-auto-columns: 88%; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
.carousel__controls { display: flex; align-items: center; gap: 10px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 4px; background: var(--border-2); transition: width .3s var(--ease), background-color .3s; }
.carousel__dots button[aria-current="true"] { width: 24px; background: var(--red); }
.testimonial { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.testimonial__quote { color: var(--red); width: 32px; height: 32px; opacity: .9; }
.testimonial__body { font-size: 1.02rem; color: var(--text); line-height: 1.85; flex: 1; }
.testimonial__rating { display: flex; gap: 2px; color: #F5B301; }
.testimonial__rating .icon { width: 16px; height: 16px; }
.testimonial__rating .icon.is-off { color: var(--border-2); }
.testimonial__author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: #fff; background: var(--grad-red); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-weight: 800; font-size: .98rem; line-height: 1.3; }
.testimonial__role { font-size: .84rem; color: var(--text-2); line-height: 1.4; }

/* ---------- FAQ / Accordion ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout__aside { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-layout__aside { position: static; } }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .3s, background-color .3s; }
.acc-item[open] { border-color: var(--border-2); background: var(--surface-2); }
.acc-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 1.02rem; min-height: 60px; border-radius: inherit; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--accent-text); }
.acc-item__icon { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--border-2); transition: transform .35s var(--ease-out), background-color .3s, border-color .3s, color .3s; }
.acc-item__icon .icon { width: 15px; height: 15px; }
.acc-item[open] .acc-item__icon { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: #fff; }
.acc-item__body { padding: 0 22px 20px; color: var(--text-2); overflow: hidden; }
.acc-item__body p + p { margin-top: .8em; }
.faq-cats { display: flex; flex-direction: column; gap: 4px; }
.faq-cat-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; transition: background-color .25s, color .25s; }
.faq-cat-link:hover, .faq-cat-link.is-active { background: var(--surface-2); color: var(--text); }
.faq-cat-link .icon { width: 18px; height: 18px; color: var(--accent-text); }
.faq-cat-link small { margin-inline-start: auto; color: var(--text-3); font-family: var(--font-en); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group__title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 18px; }
.faq-group__title .icon { color: var(--accent-text); }
@media (max-width: 900px) { .faq-cats { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } .faq-cats::-webkit-scrollbar { display: none; } .faq-cat-link { white-space: nowrap; border: 1px solid var(--border); } .faq-cat-link small { display: none; } }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); position: relative; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.post-card__media > * { transition: transform .8s var(--ease-out); width: 100%; height: 100%; }
.post-card:hover .post-card__media > * { transform: scale(1.05); }
.post-card__media img { object-fit: cover; }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title { font-size: 1.15rem; font-weight: 800; line-height: 1.45; }
html[lang="en"] .post-card__title { line-height: 1.3; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:hover { color: var(--accent-text); }
.post-card__excerpt { color: var(--text-2); font-size: .94rem; }
.post-meta { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: .82rem; color: var(--text-3); font-weight: 600; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { width: 15px; height: 15px; }
.post-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post-card--featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 340px; }
.post-card--featured .post-card__body { padding: clamp(24px, 3.5vw, 44px); justify-content: center; gap: 14px; }
.post-card--featured .post-card__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
@media (max-width: 820px) { .post-card--featured { grid-template-columns: minmax(0, 1fr); } .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 9; } }
.cover-art { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; background: #0F0F12; color: #fff; }
.cover-art svg.cover-art__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art__icon { position: relative; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cover-art__icon .icon { width: 28px; height: 28px; }
.cover-art__label { position: absolute; bottom: 14px; inset-inline-start: 16px; font: 700 .7rem/1 var(--font-en); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 1024px) { .blog-layout { grid-template-columns: minmax(0, 1fr); } }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1024px) { .sidebar { position: static; } }
.widget { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); }
.widget__title { font-size: 1rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.widget__title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--red); }
.widget-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.widget-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; color: var(--text-2); font-weight: 600; font-size: .94rem; border-bottom: 1px dashed var(--border); transition: color .2s; }
.widget-list li:last-child a { border-bottom: 0; }
.widget-list a:hover, .widget-list a[aria-current="page"] { color: var(--accent-text); }
.widget-list small { font-family: var(--font-en); color: var(--text-3); }
.mini-post { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.mini-post:last-child { border-bottom: 0; }
.mini-post__num { font: 800 1.1rem/1.4 var(--font-en); color: var(--accent-text); }
.mini-post a { font-weight: 700; font-size: .92rem; line-height: 1.5; display: block; }
.mini-post a:hover { color: var(--accent-text); }
.mini-post small { color: var(--text-3); font-size: .78rem; }
.search-field { position: relative; }
.search-field .icon { position: absolute; top: 50%; inset-inline-start: 16px; translate: 0 -50%; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.search-field .input { padding-inline-start: 46px; border-radius: var(--radius-pill); }

/* Article */
.article-hero { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); padding-bottom: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.article-hero .bg-glow { top: -380px; inset-inline-end: -200px; }
.article-cover { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 21 / 9; border: 1px solid var(--border); }
@media (max-width: 680px) { .article-cover { aspect-ratio: 16 / 10; } }
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc__list { list-style: none; padding: 0; border-inline-start: 1px solid var(--border); }
.toc__list a { display: block; padding: 7px 16px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--text-2); font-size: .9rem; font-weight: 600; line-height: 1.5; transition: color .2s, border-color .2s; }
.toc__list a:hover { color: var(--text); }
.toc__list a.is-active { color: var(--accent-text); border-inline-start-color: var(--red); }
@media (max-width: 1024px) { .toc { position: static; } .toc details { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: var(--surface); } }
.toc summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc details[open] summary { margin-bottom: 12px; }
@media (min-width: 1025px) { .toc summary { pointer-events: none; margin-bottom: 14px; } .toc summary .icon { display: none; } }
.author-box { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share__label { font-weight: 700; color: var(--text-2); font-size: .9rem; margin-inline-end: 4px; }
.progress-bar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 150; pointer-events: none; }
.progress-bar span { display: block; height: 100%; width: 100%; background: var(--grad-red); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .progress-bar span { transform-origin: right; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--border); }
.page-hero .bg-glow { top: -420px; inset-inline-start: 50%; translate: -50% 0; width: 900px; height: 900px; }
[dir="rtl"] .page-hero .bg-glow { translate: 50% 0; }
.page-hero__inner > * + * { margin-top: 18px; }
.page-hero--center { text-align: center; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero--center .breadcrumbs ol { justify-content: center; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-3); font-weight: 600; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-2); }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs [aria-current="page"] { color: var(--text-2); }

/* ---------- Service detail ---------- */
.service-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .service-hero__grid { grid-template-columns: minmax(0, 1fr); } }
.service-hero__icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-red); color: #fff; box-shadow: var(--glow); }
.service-hero__icon .icon { width: 34px; height: 34px; }
.includes-card { padding: 28px; }
.includes-card ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 12px; }
.includes-card li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.includes-card li .icon { color: #22C55E; width: 20px; height: 20px; margin-top: .25em; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, transform .4s var(--ease-out); }
.feature-item:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.feature-item__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-text); }
.feature-item__icon .icon { width: 20px; height: 20px; }
.feature-item h3 { font-size: 1.05rem; font-weight: 800; }
.feature-item p { color: var(--text-2); font-size: .93rem; margin-top: 4px; }
.benefit { padding: 26px; border-inline-start: 2px solid var(--red); background: linear-gradient(90deg, var(--accent-soft), transparent 70%); border-radius: 0 var(--radius) var(--radius) 0; }
[dir="rtl"] .benefit { background: linear-gradient(-90deg, var(--accent-soft), transparent 70%); border-radius: var(--radius) 0 0 var(--radius); }
.benefit h3 { font-size: 1.1rem; }
.benefit p { color: var(--text-2); margin-top: 6px; font-size: .95rem; }
.steps-list { counter-reset: s; display: grid; gap: 14px; }
.steps-list__item { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.steps-list__item::before { content: counter(s, decimal-leading-zero); width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border-2); font: 800 1rem/1 var(--font-en); color: var(--accent-text); }
.steps-list__item h3 { font-size: 1.05rem; margin-top: 4px; }
.steps-list__item p { color: var(--text-2); font-size: .94rem; margin-top: 4px; }
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.subnav .chips { padding-block: 12px; }
.subnav .chip { min-height: 36px; font-size: .85rem; }

/* Services index rows */
.service-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--border); position: relative; }
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row__num { font: 800 2.2rem/1 var(--font-en); color: transparent; -webkit-text-stroke: 1px var(--text-3); transition: color .3s, -webkit-text-stroke-color .3s; }
.service-row:hover .service-row__num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.service-row__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); }
.service-row__title a::after { content: ""; position: absolute; inset: 0; }
.service-row__desc { color: var(--text-2); }
.service-row__go { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; transition: all .35s var(--ease-out); }
.service-row:hover .service-row__go { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
[dir="rtl"] .service-row:hover .service-row__go { transform: rotate(45deg); }
.service-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
@media (max-width: 900px) { .service-row { grid-template-columns: 56px minmax(0, 1fr) auto; } .service-row__desc { grid-column: 2 / -1; grid-row: 2; } .service-row__num { font-size: 1.6rem; } .service-row__go { width: 46px; height: 46px; } }

/* ---------- Project detail ---------- */
.project-hero__stage { position: relative; aspect-ratio: 16 / 8; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); background: radial-gradient(100% 90% at 50% 0%, color-mix(in srgb, var(--accent) 30%, var(--bg-2)) 0%, var(--bg-2) 75%); }
@media (max-width: 680px) { .project-hero__stage { aspect-ratio: 4 / 3.2; } }
.project-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.project-facts > div { padding: 20px 22px; }
.project-facts > div + div { border-inline-start: 1px solid var(--border); }
.project-facts dt { font-size: .8rem; color: var(--text-3); font-weight: 700; }
.project-facts dd { margin-top: 4px; font-weight: 700; }
@media (max-width: 760px) { .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-facts > div:nth-child(3) { border-inline-start: 0; } .project-facts > div:nth-child(n+3) { border-top: 1px solid var(--border); } }
.case-block { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 36px 0; border-top: 1px solid var(--border); }
.case-block h2 { font-size: 1.35rem; display: flex; gap: 10px; align-items: center; }
.case-block h2 .icon { color: var(--accent-text); }
@media (max-width: 760px) { .case-block { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 0; } }
.result-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.result-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.result-list .icon { color: #22C55E; width: 20px; height: 20px; margin-top: .25em; }
.preview-pair { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 20px; }
.preview-pair figure { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-2); padding: 20px; position: relative; overflow: hidden; }
.preview-pair figcaption { font-size: .82rem; font-weight: 700; color: var(--text-3); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.preview-pair figcaption .icon { width: 16px; height: 16px; }
.preview-pair .mock-browser { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; border-bottom: 1px solid var(--border-2); }
.preview-pair .mock-phone { position: relative; inset: auto; width: 62%; margin-inline: auto; bottom: 0; }
@media (max-width: 680px) { .preview-pair { grid-template-columns: minmax(0, 1fr); } .preview-pair .mock-phone { width: 46%; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s; }
.pager a:hover { border-color: var(--accent-line); }
.pager small { color: var(--text-3); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pager small .icon { width: 16px; height: 16px; }
.pager strong { display: block; margin-top: 6px; font-size: 1.05rem; }
.pager a:last-child { text-align: end; }
.pager a:last-child small { justify-content: flex-end; }

/* ---------- Why page ---------- */
.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--border); }
.pillar:nth-child(even) .pillar__visual { order: -1; }
@media (max-width: 900px) { .pillar { grid-template-columns: minmax(0, 1fr); } .pillar:nth-child(even) .pillar__visual { order: 0; } }
.pillar__num { font: 800 .85rem/1 var(--font-en); color: var(--accent-text); letter-spacing: .1em; }
.pillar h2 { margin-top: 12px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.pillar p { margin-top: 14px; color: var(--text-2); }
.pillar ul { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.pillar li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.pillar li .icon { color: var(--accent-text); width: 20px; height: 20px; margin-top: .25em; }
.pillar__visual { border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--bg-2); padding: clamp(20px, 3vw, 36px); min-height: 280px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.compare { border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); }
.compare__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
.compare__row > div { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.compare__row:first-child > div { border-top: 0; font-weight: 800; background: var(--bg-2); }
.compare__row > div:nth-child(3) { background: var(--accent-soft); font-weight: 700; }
.compare__row:first-child > div:nth-child(3) { background: var(--red-600); color: #fff; }
.compare__row > div:first-child { font-weight: 700; }
.compare .icon-check { color: #22C55E; } .compare .icon-x { color: var(--text-3); }
@media (max-width: 720px) {
  .compare__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .compare__row > div:first-child { grid-column: 1 / -1; background: var(--bg-2); padding-bottom: 8px; font-size: .85rem; color: var(--text-2); }
  .compare__row:first-child > div:first-child { display: none; }
  .compare__row > div { padding: 12px 14px; font-size: .88rem; }
}
.bars { display: grid; gap: 16px; }
.bars__row small { display: flex; justify-content: space-between; font-weight: 700; font-size: .85rem; color: var(--text-2); margin-bottom: 6px; }
.bars__track { height: 10px; border-radius: 5px; background: var(--mock-fill-2); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: inherit; width: 0; transition: width 1.4s var(--ease-out); background: var(--text-3); }
.bars__fill--hot { background: var(--grad-red); }
.is-visible .bars__fill { width: var(--w); }
.layers-visual { display: grid; gap: 10px; }
.layers-visual div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .9rem; }
.layers-visual div .icon { color: var(--accent-text); width: 18px; height: 18px; }
.layers-visual div:nth-child(2) { margin-inline: 14px; } .layers-visual div:nth-child(3) { margin-inline: 28px; }
.layers-visual div.is-new { border-style: dashed; border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }

/* ---------- About page ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .vm-grid { grid-template-columns: minmax(0, 1fr); } }
.vm-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.vm-card h2 { font-size: 1rem; color: var(--accent-text); display: flex; align-items: center; gap: 10px; }
.vm-card p { margin-top: 16px; font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); font-weight: 800; line-height: 1.6; }
html[lang="en"] .vm-card p { line-height: 1.4; }
.vm-card--dark { background: var(--black); color: #fff; border: 1px solid rgba(255, 255, 255, .08); }
.vm-card--dark::after { content: ""; position: absolute; width: 300px; height: 300px; inset-inline-end: -100px; bottom: -150px; background: radial-gradient(circle, rgba(229, 57, 53, .45), transparent 65%); }
.vm-card--light { background: var(--surface); border: 1px solid var(--border); }
.team-card { text-align: center; padding: 28px 20px; }
.team-card .avatar { width: 84px; height: 84px; margin-inline: auto; font-size: 1.5rem; }
.team-card h3 { font-size: 1.05rem; margin-top: 16px; }
.team-card p { color: var(--accent-text); font-weight: 700; font-size: .88rem; margin-top: 2px; }
.team-card small { display: block; color: var(--text-2); font-size: .88rem; margin-top: 10px; line-height: 1.6; }
.timeline { position: relative; display: grid; gap: 28px; padding-inline-start: 28px; }
.timeline::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 5px; width: 1px; background: var(--border-2); }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; inset-inline-start: -28px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline__item h3 { font-size: 1.05rem; }
.timeline__item p { color: var(--text-2); margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); background: #0B0B0D; color: #fff; border: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 520px; left: 50%; bottom: -300px; translate: -50% 0; background: radial-gradient(closest-side, rgba(229, 57, 53, .55), rgba(169, 20, 24, .2) 55%, transparent); filter: blur(10px); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000, transparent 70%); }
.cta-band h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); max-width: 18ch; margin-inline: auto; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .72); font-size: 1.1rem; max-width: 52ch; margin: 18px auto 0; }
.cta-band .btn-group { justify-content: center; margin-top: 34px; }
.cta-band .btn-secondary { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, .12); }
.cta-band--compact { text-align: start; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); }
.cta-band--compact h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); max-width: none; }
.cta-band--compact p { margin: 8px 0 0; font-size: 1rem; }
.cta-band--compact .btn-group { margin-top: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: .9rem; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.field__label small { color: var(--text-3); font-weight: 600; }
.field__label .req { color: var(--accent-text); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--input-bg); color: var(--text); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none; -webkit-appearance: none; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238B8B96' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; padding-inline-end: 44px; cursor: pointer; }
[dir="ltr"] .select { background-position: right 16px center; }
.select option { background: var(--bg); color: var(--text); }
input[type="tel"], input[type="email"], input[type="url"] { direction: ltr; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"] { text-align: right; }
[dir="rtl"] input[type="tel"]::placeholder, [dir="rtl"] input[type="email"]::placeholder { text-align: right; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #EF4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.field__error { font-size: .84rem; color: #F87171; font-weight: 600; display: none; align-items: center; gap: 6px; }
html[data-theme="light"] .field__error, .t-light .field__error { color: #B91C1C; }
.field.has-error .field__error { display: flex; }
.field__error .icon { width: 15px; height: 15px; }
.field__hint { font-size: .82rem; color: var(--text-3); }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form__note { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--text-3); }
.form__note .icon { width: 16px; height: 16px; }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.option-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px) { .option-grid, .option-grid--2 { grid-template-columns: minmax(0, 1fr); } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option__box { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--input-bg); transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--ease); }
.option__box--row { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.option__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); transition: all .25s; }
.option__icon .icon { width: 22px; height: 22px; }
.option__title { font-weight: 800; font-size: .98rem; line-height: 1.4; }
.option__desc { font-size: .82rem; color: var(--text-3); line-height: 1.5; }
.option__check { position: absolute; top: 12px; inset-inline-end: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-2); display: grid; place-items: center; color: transparent; transition: all .2s; }
.option__check .icon { width: 13px; height: 13px; }
.option__box--row .option__check { position: static; margin-inline-start: auto; flex-shrink: 0; }
.option input[type="checkbox"] + .option__box .option__check { border-radius: 6px; }
.option:hover .option__box { border-color: var(--text-3); }
.option input:checked + .option__box { border-color: var(--red); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--red) inset; }
.option input:checked + .option__box .option__icon { background: var(--red); color: #fff; }
.option input:checked + .option__box .option__check { background: var(--red); border-color: var(--red); color: #fff; }
.option input:focus-visible + .option__box { outline: 2px solid var(--red); outline-offset: 2px; }

/* Alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 1px solid; font-size: .95rem; }
.alert .icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: .1em; }
.alert strong { display: block; font-weight: 800; }
.alert--success { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .35); color: var(--text); }
.alert--success .icon { color: #22C55E; }
.alert--error { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .35); color: var(--text); }
.alert--error .icon { color: #EF4444; }
.alert--info { background: var(--surface-2); border-color: var(--border-2); color: var(--text-2); }

/* Success panel */
.success-panel { text-align: center; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px); }
.success-panel__icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .12); color: #22C55E; position: relative; }
.success-panel__icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(34, 197, 94, .25); animation: pulse 2.4s var(--ease) infinite; }
.success-panel__icon .icon { width: 40px; height: 40px; stroke-width: 2.2; }
.success-panel h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.success-panel p { color: var(--text-2); max-width: 52ch; margin: 12px auto 0; }
.ref-code { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 24px; padding: 14px 26px; border-radius: var(--radius); border: 1px dashed var(--border-2); background: var(--surface-2); }
.ref-code small { color: var(--text-3); font-weight: 700; font-size: .8rem; }
.ref-code b { font: 800 1.35rem/1 var(--font-mono); letter-spacing: .06em; color: var(--accent-text); direction: ltr; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.contact-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-xl); }
.contact-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, transform .3s var(--ease-out); }
a.contact-item:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.contact-item__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-text); }
.contact-item__icon .icon { width: 20px; height: 20px; }
.contact-item__icon--wa { background: rgba(37, 211, 102, .12); color: #25D366; }
.contact-item small { display: block; color: var(--text-3); font-size: .8rem; font-weight: 700; }
.contact-item span { display: block; font-weight: 700; }
.contact-item .ltr { font-family: var(--font-en); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text-2); transition: all .25s var(--ease); }
.socials a:hover { color: #fff; background: var(--red-600); border-color: var(--red-600); transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }

/* Multi-step form */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 1024px) { .wizard { grid-template-columns: minmax(0, 1fr); } .wizard__aside { order: 2; } }
.wizard__card { padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-xl); }
.wizard__progress { display: flex; gap: 6px; margin-bottom: 14px; }
.wizard__progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--border-2); overflow: hidden; position: relative; }
.wizard__progress span::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: var(--origin, right); transition: transform .5s var(--ease-out); }
[dir="ltr"] .wizard__progress span::after { --origin: left; }
.wizard__progress span.is-done::after, .wizard__progress span.is-current::after { transform: scaleX(1); }
.wizard__steps-labels { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-3); font-weight: 700; margin-bottom: 28px; }
.wizard__step { display: none; }
.wizard__step.is-active { display: block; animation: stepIn .45s var(--ease-out); }
.no-js .wizard__step { display: block; margin-bottom: 40px; }
.wizard__q { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); margin-bottom: 24px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.wizard__nav .btn:only-child { margin-inline-start: auto; }
.no-js .wizard__nav [data-next], .no-js .wizard__nav [data-prev] { display: none; }
.review-list { display: grid; gap: 10px; }
.review-item { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.review-item dt { color: var(--text-3); font-weight: 700; font-size: .88rem; }
.review-item dd { font-weight: 700; word-break: break-word; white-space: pre-line; }
.review-item button { color: var(--accent-text); font-weight: 700; font-size: .85rem; }
@media (max-width: 600px) { .review-item { grid-template-columns: minmax(0, 1fr) auto; } .review-item dd { grid-column: 1 / -1; grid-row: 2; } }
.aside-card { padding: 28px; border-radius: var(--radius-xl); }
.aside-card ul { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 18px; }
.aside-card li { display: flex; gap: 10px; font-weight: 600; font-size: .95rem; }
.aside-card li .icon { color: #22C55E; width: 20px; height: 20px; margin-top: .2em; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); font-weight: 700; font-family: var(--font-en); color: var(--text-2); transition: all .2s; }
.pagination a:hover { border-color: var(--border-2); color: var(--text); }
.pagination [aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .is-disabled { opacity: .4; pointer-events: none; }
.pagination .icon { width: 18px; height: 18px; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(560px, calc(100% - 32px)); width: 100%; margin: auto; }
.modal::backdrop { background: rgba(5, 5, 7, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .35s var(--ease-out); }
.modal__card { position: relative; background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 20px; z-index: 300; padding: 12px 18px; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font-weight: 700; font-size: .9rem; opacity: 0; transition: opacity .3s, translate .3s var(--ease-out); pointer-events: none; display: flex; align-items: center; gap: 8px; }
.toast.is-show { opacity: 1; translate: -50% 0; }
.toast .icon { width: 18px; height: 18px; color: #22C55E; }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--mock-fill) 0%, var(--mock-fill-2) 50%, var(--mock-fill) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius-sm); }

/* ---------- Floating WhatsApp ---------- */
.fab-wa { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); inset-inline-start: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease-out); }
.fab-wa:hover { transform: scale(1.07); }
.fab-wa .icon { width: 28px; height: 28px; }
@media (max-width: 680px) { .fab-wa { width: 52px; height: 52px; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-start: 16px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--bg); border-top: 1px solid var(--border); padding-top: clamp(56px, 7vw, 88px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand p { color: var(--text-2); margin-top: 18px; max-width: 38ch; font-size: .95rem; }
.footer-brand .socials { margin-top: 22px; }
.footer-col h2 { font-size: .95rem; font-weight: 800; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: .94rem; font-weight: 500; transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--accent-text); }
.footer-col .icon { width: 16px; height: 16px; color: var(--text-3); }
.footer-bottom { margin-top: clamp(40px, 6vw, 72px); padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .87rem; color: var(--text-3); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--text); }
.footer-watermark { font: 800 clamp(4rem, 17vw, 15rem)/.8 var(--font-en); letter-spacing: -.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--border); user-select: none; margin-top: clamp(32px, 5vw, 56px); margin-bottom: -.12em; pointer-events: none; direction: ltr; }

/* ---------- Legal ---------- */
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

/* ---------- Error page ---------- */
.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.error-code { font: 800 clamp(6rem, 22vw, 12rem)/1 var(--font-en); letter-spacing: -.06em; background: linear-gradient(180deg, var(--text) 30%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes cursor { 0%, 100% { translate: 0 0; } 30% { translate: -40px -30px; } 60% { translate: 20px -60px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.text-center { text-align: center; }
.center { display: flex; justify-content: center; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border); border: 0; }
@media print { .site-header, .site-footer, .fab-wa, .mobile-nav, .share, .progress-bar { display: none !important; } body { background: #fff; color: #000; } }
[dir="ltr"] .flip-rtl-rev { transform: scaleX(-1); }
[dir="rtl"] .icon.flip-rtl-rev { transform: none; }
.team-card .avatar .icon { width: 34px; height: 34px; }
@media (max-width: 900px) { .hide-mobile { display: none; } }
.lang-switch__short { display: none; }
@media (max-width: 1320px) { .lang-switch__full { display: none; } .lang-switch__short { display: inline; } }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats--2 .stat:nth-child(3) { border-inline-start: 0; }
.stats--2 .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
.hv-code > div { direction: ltr; text-align: left; }
.hv-kpi em { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hero { padding-bottom: clamp(40px, 6vw, 80px); }
