/* ==========================================================================
   قفيشه للمكيفات — Qafeshah for AC
   Design system: "Thermal" — the page has a temperature.
   --t (0 = cold .. 1 = warm) is driven by the hero dial and recolors the site.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* thermal state: set by JS, 0 = full cooling, 1 = full heating */
  --t: 0;
  /* colour ramp: stays pure cool through the cooling range, then swings to ember */
  --ct: 0;

  /* base palette — glacial night, not pure black */
  --ink: #04101a;
  --ink-2: #071a26;
  --ink-3: #0b2431;
  --frost: #e9f6fb;
  --steel: #8ba7b7;
  --steel-dim: #5f7b8b;

  /* thermal poles */
  --cool: #3fd7f0;
  --cool-deep: #0e93b8;
  --ember: #ff7a38;
  --ember-deep: #d94a12;

  /* live accent. oklab, not oklch: hue interpolation would swing cyan→orange
     through green, which reads as neither cold nor warm. oklab passes through a
     neutral instead — exactly how a real thermostat reads at room temperature. */
  --accent: color-mix(in oklab, var(--cool), var(--ember) calc(var(--ct) * 100%));
  --accent-deep: color-mix(in oklab, var(--cool-deep), var(--ember-deep) calc(var(--ct) * 100%));
  --glow: color-mix(in srgb, var(--accent) 26%, transparent);

  /* surfaces */
  --surface: rgba(233, 246, 251, 0.035);
  --surface-2: rgba(233, 246, 251, 0.06);
  --line: rgba(139, 167, 183, 0.16);
  --line-strong: rgba(139, 167, 183, 0.32);

  /* type */
  --display: "Alexandria", "Tajawal", system-ui, sans-serif;
  --body: "Readex Pro", "Tajawal", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* spacing scale (8px base) */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 7rem;

  --radius: 20px;
  --radius-lg: 30px;
  --maxw: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* physical direction helper (range track fill only) */
  --dir-end: right;
}
[dir="rtl"] { --dir-end: left; }

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--frost);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.85;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ambient thermal wash — the whole page breathes with --t */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--glow), transparent 62%),
    radial-gradient(90% 60% at 100% 100%, color-mix(in oklab, var(--accent-deep) 16%, transparent), transparent 70%);
  transition: background 700ms var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* --- 3. Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }

.h-xl { font-size: clamp(2.2rem, 1.35rem + 3.6vw, 4.15rem); font-weight: 900; }
.h-lg { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.9rem); }
.h-md { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; }

.lead {
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem);
  color: var(--steel);
  max-width: 56ch;
}

/* utility voice: technical readouts, labels, numbers */
.mono {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: "";
  inline-size: 34px;
  block-size: 1px;
  background: currentColor;
  opacity: 0.6;
}

.accent { color: var(--accent); }

/* --- 4. Layout ----------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.section {
  padding-block: clamp(4rem, 2rem + 9vw, 8.5rem);
}

.section-head { max-width: 62ch; margin-bottom: var(--s6); }

/* --- 5. Scroll reveal ----------------------------------------------------
   Gated behind .js: if the script never runs, every section is simply visible
   instead of permanently hidden at opacity 0.                               */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* overflow:hidden would clip Arabic tashkeel/ascenders — pad the box back out */
.reveal-mask {
  display: block;
  overflow: hidden;
  padding-block-start: 0.2em;
  margin-block-start: -0.2em;
}
.js .reveal-mask > * {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1s var(--ease) var(--d, 0ms);
}
.js .reveal-mask.in > * { transform: none; }

/* --- 6. Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.9rem;
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--btn-bg);
  color: #04121a;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 10px 34px -12px var(--accent);
  will-change: transform;
}
.btn svg { inline-size: 20px; block-size: 20px; flex: none; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.5), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { box-shadow: 0 16px 44px -12px var(--accent); }
.btn:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--frost);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}
.btn-ghost::after { display: none; }

/* --- 7. Nav -------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s, padding 0.4s var(--ease);
  border-block-end: 1px solid transparent;
  padding-block: 1.1rem;
}
.nav.stuck {
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-block-end-color: var(--line);
  padding-block: 0.55rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }

.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-mark {
  inline-size: 40px;
  block-size: 40px;
  flex: none;
  color: var(--accent);
  animation: spin 14s linear infinite;
}
.logo-txt { line-height: 1.15; }
.logo-txt b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.08rem;
  display: block;
}
.logo-txt span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--steel-dim);
  text-transform: uppercase;
}

@keyframes spin { to { transform: rotate(360deg); } }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--steel);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-block-end: -6px;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--frost); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav .btn { padding: 0.7rem 1.35rem; font-size: 0.9rem; }

.lang-switch {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--steel);
  transition: color 0.3s, border-color 0.3s;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }

.nav-burger {
  display: none;
  inline-size: 42px;
  block-size: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  place-content: center;
  gap: 5px;
}
.nav-burger i {
  display: block;
  inline-size: 17px;
  block-size: 1.5px;
  background: var(--frost);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- 8. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-block-size: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(7rem, 12vh, 10rem) var(--s5);
  overflow: hidden;
}

#airflow {
  position: absolute;
  inset: 0;
  z-index: 0;
  inline-size: 100%;
  block-size: 100%;
  opacity: 0.85;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-block-end: var(--s3); }
.hero h1 .line { display: block; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  transition: color 0.6s var(--ease);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-block-start: var(--s4);
}

/* live readout under the headline */
.readout {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-block-end: var(--s3);
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--steel);
}
.readout .dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: #38e08a;
  box-shadow: 0 0 0 0 rgba(56, 224, 138, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(56, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 224, 138, 0); }
}

/* --- 8b. The dial (signature element) ------------------------------------ */
.dial-card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), rgba(4, 16, 26, 0.55));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 40px 90px -50px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dial-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--glow), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dial-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--steel-dim);
  text-transform: uppercase;
  margin-block-end: var(--s2);
}
.mode-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 700;
}

.dial {
  position: relative;
  inline-size: min(100%, 320px);
  margin-inline: auto;
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
}
.dial:active { cursor: grabbing; }
.dial svg { inline-size: 100%; block-size: 100%; transform: rotate(0deg); }

.dial-track { fill: none; stroke: var(--line); stroke-width: 8; stroke-linecap: round; }
.dial-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 12px var(--glow));
  transition: stroke 0.5s var(--ease);
}
.dial-ticks line { stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; }
.dial-knob {
  fill: var(--frost);
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px var(--glow));
}

.dial-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.dial-value b {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 2rem + 3vw, 3.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--frost);
}
.dial-value b sup { font-size: 0.4em; vertical-align: super; color: var(--accent); }
.dial-value small {
  display: block;
  margin-block-start: 0.5rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  color: var(--steel-dim);
  text-transform: uppercase;
}

.dial-hint {
  margin-block-start: var(--s2);
  text-align: center;
  font-size: 0.78rem;
  color: var(--steel-dim);
}

/* --- 9. Proof strip ------------------------------------------------------ */
.proof {
  border-block: 1px solid var(--line);
  background: rgba(4, 16, 26, 0.4);
  backdrop-filter: blur(10px);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.proof-item {
  background: var(--ink);
  padding: clamp(1.4rem, 3vw, 2.4rem) 1rem;
  text-align: center;
}
.proof-item b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 700;
  color: var(--frost);
  line-height: 1;
}
.proof-item span {
  display: block;
  margin-block-start: 0.6rem;
  font-size: 0.82rem;
  color: var(--steel-dim);
}

/* --- 10. Services -------------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s2);
}
.svc {
  position: relative;
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s, background 0.5s;
}
.svc::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 2px;
  background: linear-gradient(to inline-end, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.6s var(--ease);
}
.svc:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-2); }
.svc:hover::before { transform: scaleX(1); }

.svc-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-block-end: var(--s3);
  display: block;
}
.svc-ico {
  inline-size: 42px;
  block-size: 42px;
  color: var(--accent);
  margin-block-end: var(--s2);
  transition: transform 0.5s var(--ease);
}
.svc:hover .svc-ico { transform: scale(1.12) rotate(-6deg); }
.svc h3 { font-size: 1.22rem; margin-block-end: 0.6rem; }
.svc p { font-size: 0.94rem; color: var(--steel); line-height: 1.8; }

/* --- 11. Unit showcase --------------------------------------------------- */
.unit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.unit-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 50% 0%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  overflow: hidden;
}
/* wall grid behind the unit */
.unit-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
  opacity: 0.5;
}

/* the split unit, built in CSS */
.ac {
  position: relative;
  inline-size: min(78%, 380px);
  z-index: 2;
}
.ac-body {
  position: relative;
  block-size: clamp(74px, 12vw, 104px);
  border-radius: 14px 14px 20px 20px;
  background: linear-gradient(175deg, #f2f7fa 0%, #dfe9ef 46%, #c3d2da 100%);
  box-shadow:
    0 26px 50px -22px rgba(0, 0, 0, 0.85),
    inset 0 -2px 6px rgba(0, 0, 0, 0.12),
    inset 0 2px 0 #fff;
}
.ac-vents {
  position: absolute;
  inset-block-start: 14px;
  inset-inline: 16px;
  block-size: 34%;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0 2px, transparent 2px 7px);
  opacity: 0.7;
}
.ac-display {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 18px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ac-display::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
/* the louver swings open when the section enters view — the unit doing its job */
.ac-louver {
  position: absolute;
  inset-block-end: -14px;
  inset-inline: 10px;
  block-size: 26px;
  border-radius: 2px 2px 11px 11px;
  background: linear-gradient(180deg, #c6d4dd 0%, #93a7b4 55%, #5d7280 100%);
  transform-origin: top center;
  transform: perspective(500px) translateY(-12px) rotateX(0deg);
  transition: transform 1.1s var(--ease) 0.25s;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.85);
}
.unit-stage.in .ac-louver {
  transform: perspective(500px) translateY(6px) rotateX(56deg);
}

/* airflow ribbons out of the unit */
.ac-flow {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 4%;
  block-size: 190px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.9s;
}
.unit-stage.in .ac-flow { opacity: 1; }
.ac-flow i {
  position: absolute;
  inset-block-start: 0;
  inline-size: 2px;
  block-size: 46px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: blow 2.6s var(--ease-io) infinite;
  opacity: 0;
}
@keyframes blow {
  0% { transform: translateY(-10px) scaleY(0.4); opacity: 0; }
  22% { opacity: 0.9; }
  100% { transform: translateY(150px) scaleY(1.5); opacity: 0; }
}

.unit-spec { list-style: none; padding: 0; margin-block-start: var(--s4); }
.unit-spec li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--line);
}
.unit-spec li:first-child { border-block-start: 1px solid var(--line); }
.unit-spec .k { font-family: var(--mono); font-size: 0.68rem; color: var(--accent); letter-spacing: 0.14em; }
.unit-spec .v { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.unit-spec .n { font-size: 0.86rem; color: var(--steel-dim); }

/* --- 12. Why us ---------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.why {
  background: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  transition: background 0.5s;
}
.why:hover { background: var(--ink-2); }
.why svg { inline-size: 30px; block-size: 30px; color: var(--accent); margin-block-end: var(--s2); }
.why h3 { font-size: 1.05rem; margin-block-end: 0.4rem; }
.why p { font-size: 0.9rem; color: var(--steel); line-height: 1.75; }

/* --- 13. Process --------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  gap: 0;
  --dot: clamp(38px, 6vw, 62px);
}
.steps::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--dot) / 2);
  inline-size: 1px;
  translate: 0.5px 0;
  background: linear-gradient(180deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--dot) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
  align-items: start;
}
.step-dot {
  position: relative;
  z-index: 2;
  inline-size: var(--dot);
  block-size: var(--dot);
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--steel);
  transition: color 0.5s, border-color 0.5s, box-shadow 0.5s, background 0.5s;
}
.step.in .step-dot {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--glow);
}
.step h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); margin-block-end: 0.35rem; }
.step p { color: var(--steel); font-size: 0.96rem; max-width: 54ch; }

/* --- 14. Calculator ------------------------------------------------------ */
.calc {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.6rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), rgba(4, 16, 26, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.field { margin-block-end: var(--s3); }
.field > label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-block-end: 0.7rem;
}
.field output {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: none;
  direction: ltr;
  unicode-bidi: isolate;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  inline-size: 100%;
  block-size: 4px;
  border-radius: 4px;
  background: linear-gradient(to var(--dir-end, left), var(--accent) var(--p, 40%), var(--line-strong) 0);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  background: var(--frost);
  border: 3px solid var(--accent);
  box-shadow: 0 0 14px var(--glow);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  background: var(--frost);
  border: 3px solid var(--accent);
  box-shadow: 0 0 14px var(--glow);
  cursor: grab;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.86rem;
  color: var(--steel);
  transition: all 0.3s var(--ease);
}
.chip[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent);
  font-weight: 600;
}

.calc-out {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 0%, var(--glow), transparent 70%), var(--ink);
  text-align: center;
}
.calc-out .k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-dim);
}
.calc-out .big {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  line-height: 1.1;
  margin-block: 0.5rem 0.2rem;
  color: var(--frost);
}
.calc-out .hp {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  margin-block-end: var(--s3);
}
.calc-out .btn { justify-content: center; }
.calc-note { font-size: 0.78rem; color: var(--steel-dim); margin-block-start: var(--s2); line-height: 1.7; }

/* --- 15. FAQ ------------------------------------------------------------- */
.faq { border-block-start: 1px solid var(--line); }
.faq-q {
  inline-size: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-block: clamp(1.1rem, 2.4vw, 1.7rem);
  text-align: start;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  border-block-end: 1px solid var(--line);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .ind {
  flex: none;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-content: center;
  position: relative;
  transition: all 0.4s var(--ease);
}
.faq-q .ind::before,
.faq-q .ind::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: 50% -50%; /* inline-start:50% + RTL-safe recentre */
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
[dir="ltr"] .faq-q .ind::before,
[dir="ltr"] .faq-q .ind::after { translate: -50% -50%; }
.faq-q .ind::before { inline-size: 11px; block-size: 1.5px; }
.faq-q .ind::after { inline-size: 1.5px; block-size: 11px; }
.faq-q[aria-expanded="true"] { color: var(--accent); }
.faq-q[aria-expanded="true"] .ind { border-color: var(--accent); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .ind::after { transform: scaleY(0); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
  border-block-end: 1px solid var(--line);
}
.faq-a[data-open="true"] { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  color: var(--steel);
  font-size: 0.96rem;
  padding-block: 0 1.6rem;
  max-width: 72ch;
}

/* --- 16. Final CTA ------------------------------------------------------- */
.cta {
  position: relative;
  text-align: center;
  padding-block: clamp(4.5rem, 3rem + 8vw, 9rem);
  overflow: hidden;
  border-block-start: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-start: 50%;
  translate: -50% 0;
  inline-size: min(900px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  pointer-events: none;
}
.cta .lead { margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-block-start: var(--s4); }

/* --- 17. Footer ---------------------------------------------------------- */
.footer {
  border-block-start: 1px solid var(--line);
  padding-block: var(--s5) var(--s3);
  background: rgba(4, 16, 26, 0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--s4);
  padding-block-end: var(--s4);
  border-block-end: 1px solid var(--line);
}
.footer h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-dim);
  font-weight: 400;
  margin-block-end: var(--s2);
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: var(--steel); font-size: 0.94rem; transition: color 0.3s; }
.footer a:hover { color: var(--accent); }
.footer p { color: var(--steel); font-size: 0.94rem; max-width: 40ch; }
.footer-bottom {
  padding-block-start: var(--s3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--steel-dim);
}
.socials { display: flex; gap: 0.7rem; margin-block-start: var(--s3); }
.socials a {
  inline-size: 42px;
  block-size: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-content: center;
  transition: all 0.35s var(--ease);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.socials svg { inline-size: 18px; block-size: 18px; }

/* --- 18. Floating WhatsApp ----------------------------------------------- */
.fab {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 70;
  inline-size: 58px;
  block-size: 58px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: #25d366;
  color: #04121a;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.7);
  transform: scale(0);
  transition: transform 0.5s var(--ease), box-shadow 0.3s;
}
.fab.show { transform: scale(1); }
.fab:hover { box-shadow: 0 18px 44px -10px rgba(37, 211, 102, 0.9); }
.fab svg { inline-size: 28px; block-size: 28px; }
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ring 2.4s var(--ease-io) infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* --- 19. Thermal scroll rail --------------------------------------------- */
.rail {
  position: fixed;
  inset-inline-start: 14px;
  inset-block: 22vh;
  inline-size: 2px;
  z-index: 55;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.rail i {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: var(--sp, 0%);
  background: linear-gradient(180deg, var(--cool), var(--accent));
  border-radius: 2px;
}

/* --- 20. Responsive ------------------------------------------------------ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .dial-card { max-width: 460px; margin-inline: auto; }
  .unit-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail { display: none; }
}

.only-mobile { display: none; }

@media (max-width: 760px) {
  .nav-burger { display: grid; }
  .nav .btn span { display: none; }
  .nav .btn { padding: 0.7rem; }
  /* the bar can't hold everything at 375px — language moves into the menu */
  .nav-cta .lang-switch { display: none; }
  .nav-links .only-mobile { display: block; }
  .logo-mark { inline-size: 32px; block-size: 32px; }
  .logo-txt b { font-size: 0.95rem; }
  .logo-txt span { font-size: 0.52rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { justify-content: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }

  .nav-links {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1.25rem;
    background: color-mix(in oklab, var(--ink) 94%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-block-end: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.5s var(--ease), opacity 0.3s;
  }
  .nav.open .nav-links { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-links a {
    padding-block: 1.05rem;
    border-block-end: 1px solid var(--line);
    font-size: 1rem;
    color: var(--frost);
  }
  .nav-links a:last-child { border-block-end: 0; }
  .nav-links a::after { display: none; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-block-size: auto; padding-block: 8rem var(--s5); }
  body { line-height: 1.8; }
}

/* --- 21. Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal, .js .reveal-mask > * { opacity: 1 !important; transform: none !important; }
  #airflow { display: none; }
  .logo-mark { animation: none; }
  .ac-flow, .fab::after { display: none; }
}

/* --- 22. Print ----------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .nav, .fab, .rail, #airflow, .dial-card { display: none !important; }
}
