/* ============================================================
   GAYYAR PRO — Premium gaming-cooler landing
   Palette: navy · ice white · gold
   ============================================================ */

:root {
  --bg: #0a0f1e;
  --bg-2: #0c1426;
  --bg-3: #14110a;
  --card: rgba(228, 240, 246, 0.025);
  --ink: #e4f0f6;
  --ink-soft: #b9c8d4;
  --ink-dim: #6b7d8f;
  --line: rgba(228, 240, 246, 0.08);
  --line-strong: rgba(228, 240, 246, 0.16);

  --gold: #5ce1ff;
  --gold-light: #a3f0ff;
  --gold-deep: #1f8fb8;
  --gold-glow: rgba(92, 225, 255, 0.42);
  --gold-soft: rgba(92, 225, 255, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Tajawal", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  direction: rtl;
}

body { min-height: 100vh; font-weight: 400; background-color: #0a0f1e; }
::selection { background: var(--gold); color: #0a0f1e; }

/* faint grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(228,240,246,0.022) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* utility */
.mono { font-family: "JetBrains Mono", "SF Mono", monospace; letter-spacing: 0.05em; }
.latin { font-family: "Orbitron", sans-serif; letter-spacing: 0.02em; }
.display { font-family: "Rakkas", "Tajawal", serif; font-weight: 400; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,15,30,0.85), rgba(10,15,30,0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav .brand {
  display: flex; align-items: center; gap: 12px;
}
.nav .brand .logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
}
.nav .brand .logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.nav .brand .name {
  display: flex; flex-direction: column; line-height: 1;
  gap: 3px;
}
.nav .brand .name .b {
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--ink);
}
.nav .brand .name .s {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav .cta {
  border: 1px solid var(--gold);
  padding: 10px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Tajawal", sans-serif;
}
.nav .cta:hover {
  background: var(--gold);
  color: #0a0f1e;
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ============================================================
   PROGRESS + TRACKER (tracker switched to LEFT for RTL)
   ============================================================ */
.progress-rail {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200; pointer-events: none;
}
.progress-rail .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 14px var(--gold-glow);
}
.section-tracker {
  position: fixed; left: 28px; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; gap: 14px;
}
.section-tracker .tick {
  width: 24px; height: 1px;
  background: rgba(228,240,246,0.2);
  position: relative; cursor: pointer;
  transition: all 0.3s;
}
.section-tracker .tick.active {
  background: var(--gold); width: 36px;
  box-shadow: 0 0 8px var(--gold);
}
.section-tracker .tick .lbl {
  position: absolute; left: 36px; top: -8px;
  font-family: "Tajawal", sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0; transition: opacity 0.3s;
}
.section-tracker .tick.active .lbl,
.section-tracker .tick:hover .lbl { opacity: 1; color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  height: 100vh;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.bg-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(228,240,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228,240,246,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 55%, rgba(92,225,255,0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 110%, rgba(92,225,255,0.10), transparent 60%);
  z-index: 0;
}
.hero-image {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 1;
}
.hero-image .ring-glow {
  position: absolute;
  width: min(80vmin, 700px); height: min(80vmin, 700px);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent, var(--gold) 30%, transparent 60%, var(--gold-light) 80%, transparent);
  filter: blur(45px);
  opacity: 0;
  animation: ring-rotate 24s linear infinite;
  animation-play-state: paused;
}
.hero-image.is-lit .ring-glow {
  animation-play-state: running;
}
@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}
.hero-image img {
  position: absolute;
  top: 50%; left: 50%;
  width: min(60vmin, 560px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 60px rgba(0,0,0,0.6));
  z-index: 2;
  transition: filter 1.2s ease;
}
.hero-image .cooler-off { opacity: 1; z-index: 2; }
.hero-image .cooler-on { opacity: 0; z-index: 3; }
/* ── دفاعي: قفل الصورتين على نفس الأبعاد والمحور بالضبط ──
   كلا الـ PNG مربعتا الشكل (800×800) ولهما نفس الـ bounding box
   البصري. نُكرّر القاعدة على المُحدِّدَين الأكثر تخصيصاً حتى لا
   تنحرف القيم بأي حال — سواء من GSAP أو من أي override. */
.hero-image .cooler-off,
.hero-image .cooler-on {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform-origin: 50% 50%;
}
.hero-image.is-lit .cooler-on {
  filter: drop-shadow(0 0 60px rgba(92,225,255,0.42));
}
.hero-inner {
  position: relative; z-index: 3;
  text-align: center;
  display: grid; gap: 22px; place-items: center;
  padding: 0 24px;
  pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }

.hero h1 {
  font-family: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(0,0,0,0.6);
}
.hero h1 .accent {
  display: block;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .english {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.55em;
  letter-spacing: 0.06em;
  display: inline-block;
  vertical-align: middle;
  margin: 0 12px;
}
.hero .slogan {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.65;
  font-weight: 400;
}
.hero .product-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.25em;
  color: var(--gold);
  background: var(--gold-soft);
}
.hero .product-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-corners {
  position: absolute; inset: 30px;
  pointer-events: none; z-index: 2;
}
.hero-corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--gold);
  opacity: 0.5;
}
.hero-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hero-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hero-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.25em;
  z-index: 3;
}
.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* hero floating metric labels */
.hero-metric {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 10px;
  z-index: 3;
}
.hero-metric.tl { top: 22%; left: 6%; }
.hero-metric.tr { top: 22%; right: 6%; }
.hero-metric.bl { bottom: 22%; left: 6%; }
.hero-metric.br { bottom: 22%; right: 6%; }
.hero-metric .v {
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-metric .bar {
  width: 40px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.hero-metric .ar {
  font-family: "Tajawal", sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0;
}

/* ============================================================
   NUMBERS BAND
   ============================================================ */
.numbers {
  padding: 140px 60px;
  border-top: 1px solid var(--line);
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(92,225,255,0.07), transparent 70%);
}
.numbers .head {
  text-align: center; max-width: 760px; margin: 0 auto 80px;
}
.numbers h2 {
  font-family: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 84px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-top: 20px;
}
.numbers h2 .accent {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.numbers-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.numbers-grid .cell {
  padding: 36px 24px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.numbers-grid .cell:last-child { border-left: none; }
.numbers-grid .cell .lbl {
  font-family: "Tajawal", sans-serif;
  font-size: 12px; font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.numbers-grid .cell .v {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
  display: flex; align-items: baseline; gap: 6px;
  direction: ltr;
}
.numbers-grid .cell .v .u {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.numbers-grid .cell .sub {
  font-size: 12px; color: var(--ink-dim);
  margin-top: 4px;
}

/* ============================================================
   EXPLODED ANATOMY (pinned scroll)
   ============================================================ */
.anatomy {
  position: relative;
}
.anatomy .scroll-block { height: 500vh; }
.anatomy .pinned {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  padding: 0 60px;
  gap: 40px;
  overflow: hidden;
}
.anatomy .visual {
  position: relative;
  height: 90vh;
  display: grid; place-items: center;
}
.anatomy .visual img {
  height: 100%;
  max-height: 88vh;
  filter: drop-shadow(0 0 50px rgba(92,225,255,0.12));
}
.anatomy .copy {
  display: flex; flex-direction: column;
  gap: 24px;
  max-width: 540px;
}
.anatomy h2 {
  font-family: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(44px, 5vw, 76px);
  letter-spacing: -0.01em;
  line-height: 1;
}
.anatomy h2 .accent {
  display: block;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.anatomy .step-tagline {
  font-size: 18px; color: var(--ink-soft);
  line-height: 1.65;
  min-height: 100px;
  font-weight: 400;
}
.anatomy .step-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.anatomy .step-meta .item .l {
  font-family: "Tajawal", sans-serif;
  font-size: 12px;
  color: var(--ink-dim);
}
.anatomy .step-meta .item .v {
  font-family: "Orbitron", sans-serif;
  font-size: 20px; font-weight: 700;
  margin-top: 4px;
  color: var(--gold);
  letter-spacing: 0;
}
.anatomy .step-meta .item .v.ar {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  color: var(--ink);
}
.anatomy .step-counter {
  display: flex; align-items: center; gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.25em;
  color: var(--gold);
}
.anatomy .step-counter .progress {
  flex: 1;
  height: 1px;
  background: rgba(228,240,246,0.1);
  position: relative;
  max-width: 240px;
}
.anatomy .step-counter .progress > span {
  position: absolute;
  top: 0; right: 0; height: 100%;
  background: var(--gold);
  transition: width 0.5s ease;
  box-shadow: 0 0 8px var(--gold);
}
.anatomy .step-content {
  position: relative;
  min-height: 210px;
}
.anatomy .step-content > div {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anatomy .step-content > div.active {
  opacity: 1; transform: translateY(0);
}

/* part label callouts overlaid on the image */
.anatomy .callouts {
  position: absolute; inset: 0;
  pointer-events: none;
}
.anatomy .callout {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  font-family: "Tajawal", sans-serif;
  font-size: 12px; font-weight: 500;
  color: var(--ink-dim);
  opacity: 0.3;
  transition: opacity 0.4s ease, color 0.4s ease;
  white-space: nowrap;
}
.anatomy .callout.active { opacity: 1; color: var(--gold); }
.anatomy .callout .ln {
  width: 40px; height: 1px;
  background: currentColor;
}
.anatomy .callout .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
/* positions on the exploded view — placed on the LEFT side of the visual
   so they don't get covered by the centered exploded image */
.callout-fan      { top: 8%;  left: 4%; }
.callout-body     { top: 28%; left: 4%; }
.callout-pcb      { top: 48%; left: 4%; }
.callout-heatsink { top: 65%; left: 4%; }
.callout-base     { bottom: 8%; left: 4%; }

/* ============================================================
   ENGINEERING DETAIL CARDS
   ============================================================ */
.engineering {
  padding: 140px 60px;
  position: relative;
  border: none;
  background: transparent;   /* inherit body's #0a0f1e cleanly */
}
.engineering .head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.engineering h2 {
  font-family: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 84px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-top: 20px;
}
.engineering h2 .accent {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eng-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 18px;
}
.eng-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(92,225,255,0.04), rgba(255,255,255,0));
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 240px;
  gap: 12px;
}
.eng-card .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}
.eng-card h3 {
  font-family: "Tajawal", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.eng-card .desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 4px;
}
.eng-card .big-num {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: auto;
  display: flex; align-items: baseline; gap: 10px;
  direction: ltr;
}
.eng-card .big-num .unit {
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
  -webkit-text-fill-color: var(--ink-soft);
}
.eng-card.feature { grid-column: span 2; min-height: 320px; }
.eng-card.feature .desc { max-width: 600px; font-size: 16px; }
.eng-card.with-bg {
  background:
    linear-gradient(180deg, rgba(92,225,255,0.07), rgba(255,255,255,0)),
    radial-gradient(ellipse at 80% 20%, rgba(92,225,255,0.10), transparent 60%);
}

/* wireframe bg using the cooler line art — restored from original style.zip */
.wire-bg {
  position: absolute;
  left: -10%; bottom: -20%;
  width: 70%;
  opacity: 0.10;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(92,225,255,0.5));
}
.eng-card.feature .desc, .eng-card.feature .big-num { position: relative; z-index: 2; }
.eng-card.feature h3, .eng-card.feature .tag { position: relative; z-index: 2; }

/* micro-channel grid bg */
.grid-bg {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 50%;
  background-image:
    linear-gradient(rgba(92,225,255,0.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,225,255,0.20) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(225deg, transparent 30%, black 70%);
  -webkit-mask-image: linear-gradient(225deg, transparent 30%, black 70%);
  opacity: 0.6;
  pointer-events: none;
}

/* ──────────────────────────────────────────────────────
   Weight card — "80g feather-light"
   Four separated PNG layers (80g text / hand / phone / cooler) stacked
   on the same canvas and floating at different tempos to create depth.
   Hand & phone use mix-blend-mode: screen so their black silhouette
   fill drops against the dark section background — only the white
   outline strokes remain. The cooler keeps its original colours
   (RGB ring intact) because it's the visual hero.
   Image lives on the LEFT, text on the RIGHT (RTL).
   ────────────────────────────────────────────────────── */
.weight-card { min-height: 380px; }

.weight-card .weight-art {
  position: absolute;
  left: 0; right: auto;
  top: 0; bottom: 0;
  width: 44%;
  pointer-events: none;
  z-index: 1;
  perspective: 900px;
}
.weight-card .weight-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.weight-card .weight-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

/* 80g text — faint backdrop, no blend (white text on transparent) */
.weight-card .weight-stage-text80 {
  z-index: 1;
  animation: floatText80 7.2s ease-in-out infinite;
}
.weight-card .weight-layer-text80 {
  opacity: 0.7;
}

/* Hand — back layer, slowest float; screen blend removes the black fill */
.weight-card .weight-stage-hand {
  z-index: 2;
  animation: floatHand 6.6s ease-in-out infinite;
}
.weight-card .weight-layer-hand {
  mix-blend-mode: screen;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

/* Phone — middle floating layer */
.weight-card .weight-stage-phone {
  z-index: 3;
  animation: floatPhone 4.4s ease-in-out infinite;
}
.weight-card .weight-layer-phone {
  mix-blend-mode: screen;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

/* Cooler — front layer with original colour (RGB ring intact) */
.weight-card .weight-stage-cooler {
  z-index: 4;
  animation: floatCooler 5.6s ease-in-out infinite;
}
.weight-card .weight-layer-cooler {
  filter:
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 20px rgba(92, 225, 255, 0.18));
}

/* Float keyframes — each layer breathes at its own tempo, the cooler
   sits highest above the phone, the phone above the hand. The
   pronounced offsets create the "floating cosmos" feeling: cooler
   detached from phone, phone detached from hand. */
@keyframes floatCooler {
  0%, 100% { transform: translateY(-22px); }
  50%      { transform: translateY(-34px); }
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(2px); }
  50%      { transform: translateY(-8px); }
}
@keyframes floatHand {
  0%, 100% { transform: translateY(22px); }
  50%      { transform: translateY(16px); }
}
@keyframes floatText80 {
  0%, 100% { transform: translateY(-2px) scale(1.00); }
  50%      { transform: translateY(-6px) scale(1.025); }
}



/* Push the card's text content onto the RIGHT half via padding —
   the image lives outside this padded area (it's absolutely
   positioned at left: 0), so text and image never overlap. */
.weight-card { padding-left: 46%; }

.weight-card .tag,
.weight-card h3,
.weight-card .desc,
.weight-card .eng-row {
  position: relative;
  z-index: 5;
  text-align: right;
}

@media (max-width: 900px) {
  .weight-card {
    min-height: 480px;
    padding-left: 28px;
    padding-bottom: 240px;        /* reserve space at bottom for the art */
  }
  .weight-card .weight-art {
    width: 130%;
    height: 220px;
    inset: auto 0 12px 0;          /* image moves to bottom on mobile */
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weight-card .weight-stage,
  .weight-card .weight-glow-80,
  .weight-card .weight-rgb-pulse { animation: none !important; }
}

/* ──────────────────────────────────────────────────────
   HEAT TRANSFER GAIN card — stationary cooler ring + spinning
   fan blades acting as a subtle watermark behind the text.
   Reuses the #cableTint SVG filter to recolour the black PNG
   outlines to cyan; low opacity keeps text fully readable.

   How to tweak (نفس مبدأ الكيبل):
     • left/bottom/width — موضع وحجم المروحة
     • opacity — شفافية المروحة (أعلى = أوضح، أقل = أخفى)
     • fanSpin duration — سرعة دوران الشفرات
   ────────────────────────────────────────────────────── */
.fan-card .fan-stage {
  position: absolute;
  left: -40px;        /*  ←  المسافة من اليسار (سالبة = خارج البطاقة) */
  bottom: -40px;      /*  ←  المسافة من الأسفل */
  width: 280px;       /*  ←  حجم المروحة الكلّي */
  height: 280px;
  pointer-events: none;
  z-index: 0;
}
.fan-card .fan-ring,
.fan-card .fan-blades {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: url(#cableTint);   /* نفس فلتر تلوين الـcyan المستخدم للكيبل */
  opacity: 0.18;             /*  ←  شفافية المروحة (لا تؤثر على وضوح النصوص) */
}
/* الحلقة ثابتة (هيكل الكولر) */
.fan-card .fan-ring {
  z-index: 0;
}
/* الشفرات تدور بسرعة كأن المروحة تعمل */
.fan-card .fan-blades {
  z-index: 1;
  animation: fanSpin 2.4s linear infinite;
  transform-origin: center center;
  will-change: transform;
}
@keyframes fanSpin {
  to { transform: rotate(360deg); }
}
/* Lift text content above the fan watermark */
.fan-card .tag,
.fan-card h3,
.fan-card .desc,
.fan-card .big-num { position: relative; z-index: 2; }
/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fan-card .fan-blades { animation: none !important; }
}

/* ──────────────────────────────────────────────────────
   FULL-LOAD POWER card — USB-C plug feeding an electric
   arc that strikes the 25W number. SVG sits beneath the
   text/big-num so the typography stays the hero.
   ────────────────────────────────────────────────────── */
.power-card .power-graphic {
  position: absolute;
  /* ── أبعاد الإشارة الكهربائية (الديسكتوب فقط) ────────────────── */
  top:    -56px;     /* ⬇ زد = ينزل أسفل  · اقلل (سالب) = يطلع فوق */
  left:   -2px;     /* ➡ زد = ينزاح يميناً · اقلل = ينزاح يساراً */
  width:  99%;       /* 📏 العرض  */
  height: 136%;      /* 📏 الارتفاع */
  /* ───────────────────────────────────────────────────────────── */
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

/* ─────────────────────────────────────────────────────────────
   USB-C cable PNG  (img/caple.png)
   ─────────────────────────────────────────────────────────────
   How to MOVE it:
     • right: ← زِدها لتحريك الكيبل يساراً / أنقصها لتحريكه يميناً
     • top:   ← زِدها لإنزاله / أنقصها لرفعه
     • width: ← غيّر الحجم (الارتفاع يحسب تلقائياً من الصورة)

   How to CHANGE its COLOUR:
     • افتح index.html وابحث عن `<filter id="cableTint">`
     • بدّل الأرقام الثلاثة (0.36 / 0.88 / 1.00) — وهي R/G/B بنسبة 0-1
       (مثلاً: للأحمر → 1 / 0.2 / 0.2 ، للأبيض → 1 / 1 / 1)

   How to CHANGE the GLOW colour:
     • عدّل قيم rgba داخل `drop-shadow(...)` أدناه

   لماذا هذا الأسلوب؟ ⟶  `<img>` + SVG filter يعمل على file:// أيضاً.
   ───────────────────────────────────────────────────────────── */
.power-card .usbc-cable-img {
  position: absolute;
  right: 10px;          /* ←  الموضع الأفقي من اليمين */
  top: 185px;           /* ←  الموضع العمودي من الأعلى */
  width: 170px;         /* ←  حجم الكيبل */
  height: auto;
  pointer-events: none;
  z-index: 1;
  filter: url(#cableTint) drop-shadow(0 0 8px rgba(92, 225, 255, 0.32));
  animation: powerPlugBreath 4.8s ease-in-out infinite;
}
/* Lift card content above the SVG */
.power-card .tag,
.power-card h3,
.power-card .desc,
.power-card .big-num { position: relative; z-index: 2; }

/* USB-C plug — calm, ever-present, gently breathing */
.power-card .power-graphic .usbc-plug,
.power-card .power-graphic .usbc-cable {
  opacity: 0.7;
  animation: powerPlugBreath 4.8s ease-in-out infinite;
  transform-origin: 60px 56px;
}
@keyframes powerPlugBreath {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.9;  }
}

/* The arc itself — soft pulsing glow */
.power-card .power-graphic .power-arc {
  filter: drop-shadow(0 0 6px rgba(255, 200, 80, 0.45));
  animation: powerArcPulse 4.2s ease-in-out infinite;
}
@keyframes powerArcPulse {
  0%, 100% {
    opacity: 0.55;
    filter: drop-shadow(0 0 4px rgba(255, 200, 80, 0.35));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(255, 200, 80, 0.95));
  }
}

/* Energy flow — dashes travel along the path, like current */
.power-card .power-graphic .arc-line {
  stroke-dasharray: 7 13;
  animation: powerArcFlow 1.6s linear infinite;
}
@keyframes powerArcFlow {
  to { stroke-dashoffset: -80; }
}

/* Terminus spark — pulsing dot where energy arrives near "25" */
.power-card .power-graphic .arc-spark {
  transform-origin: 75px 93px;
  animation: powerArcSpark 1.4s ease-in-out infinite;
}
/* Slightly faster flow on the middle (main) conductor */
.power-card .power-graphic .arc-line.mid {
  animation: powerArcFlow 1.1s linear infinite;
}
@keyframes powerArcSpark {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%      { transform: scale(1.7); opacity: 1;   }
}

@media (prefers-reduced-motion: reduce) {
  .power-card .power-graphic *,
  .power-card .power-graphic { animation: none !important; }
}

.eng-row {
  display: flex; gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}
.eng-pill {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--ink-soft);
}
.eng-pill.gold { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }

.waveform {
  width: 100%; height: 64px;
  margin-top: 12px;
  overflow: hidden;
}
.waveform .wave-flow {
  animation: wave-scroll 4s linear infinite;
  transform-origin: 0 0;
}
@keyframes wave-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(80px); }
}

/* ============================================================
   APP SECTION (image-based)
   ============================================================ */
.app-section {
  padding: 140px 60px 80px;
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(92,225,255,0.08), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(92,225,255,0.05), transparent 60%);
  overflow: hidden;
}
.app-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.app-copy { display: flex; flex-direction: column; gap: 26px; }
.app-copy h2 {
  font-family: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.app-copy h2 .accent {
  display: block;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.app-copy .desc {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 540px;
}
.app-features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.app-feature {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: rgba(228,240,246,0.02);
  transition: all 0.3s;
}
.app-feature:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.app-feature .icon {
  width: 28px; height: 28px;
  margin-bottom: 12px;
  color: var(--gold);
}
.app-feature .title {
  font-family: "Tajawal", sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--ink);
}
.app-feature .sub {
  font-size: 13px; color: var(--ink-dim);
  margin-top: 4px;
  line-height: 1.5;
}
.app-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.2em;
  padding: 7px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-soft);
  width: fit-content;
}
.app-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* phone image stage */
.phone-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 700px;
}
.phone-stage .phone-img {
  width: 100%;
  max-width: 640px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7))
          drop-shadow(0 0 60px rgba(92,225,255,0.18));
}
.phone-stage .glow-orb {
  position: absolute;
  width: 60%; height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,225,255,0.25), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

/* ============================================================
   RGB SECTION
   ============================================================ */
.rgb-section {
  position: relative;
  padding: 140px 60px;
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.rgb-section .inner {
  max-width: 880px;
  margin: 0 auto;
  display: grid; gap: 26px; place-items: center;
  position: relative;
  z-index: 2;
}

/* ── RGB hero stage: off-image cross-fades to on-image on scroll ── */
.rgb-stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 36px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}
.rgb-img {
  position: absolute; inset: 0;
  margin: auto;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 0.6s ease, filter 0.6s ease;
}
/* Off image starts visible, on image hidden — JS scrubs the cross-fade */
.rgb-img.rgb-off { opacity: 1; filter: brightness(0.85) saturate(0.7); }
.rgb-img.rgb-on  { opacity: 0; filter: brightness(1.12) saturate(1.18); }
.rgb-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 55%, rgba(255, 90, 180, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 50% 55%, rgba(92, 225, 255, 0.26) 0%, transparent 60%);
}
@media (max-width: 768px) {
  .rgb-stage { max-width: 100%; aspect-ratio: 4 / 3; margin-bottom: 20px; }
}
.rgb-section h2 {
  font-family: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.rgb-section h2 .accent {
  background: linear-gradient(90deg, #ff3b6b, #ffb13b, #b6ff3b, #6ee7ff, #b389ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rgb-section .sub {
  font-size: 17px; color: var(--ink-soft);
  max-width: 600px; line-height: 1.7;
}
.rgb-swatches {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.rgb-swatches .sw {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(228,240,246,0.18);
}
.rgb-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 60px auto 0;
}
.rgb-mode {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(228,240,246,0.025);
  display: flex; flex-direction: column; gap: 8px;
  text-align: right;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.rgb-mode > * { position: relative; z-index: 2; }

/* radiating glow layer — colored per mode, animated per pattern */
.rgb-mode::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  pointer-events: none;
  background: var(--mode-bg, transparent);
  filter: blur(28px);
  opacity: 0.55;
  animation: var(--mode-anim, none);
}
/* inner edge halo on top for "from the edges" feeling */
.rgb-mode::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: var(--mode-edge, none);
}

/* ---------- 1. FLOW: rainbow chasing around the edges ---------- */
.rgb-mode.mode-flow {
  --mode-bg: conic-gradient(from 0deg, #ff3b6b, #ffb13b, #b6ff3b, #6ee7ff, #b389ff, #ff3b6b);
  --mode-anim: flow-rotate 6s linear infinite;
}
.rgb-mode.mode-flow::after {
  box-shadow:
    inset 0 0 24px rgba(255,59,107,0.35),
    inset 0 0 60px rgba(110,231,255,0.25);
  animation: flow-edge-hue 6s linear infinite;
}
@keyframes flow-rotate {
  to { transform: rotate(360deg); }
}
@keyframes flow-edge-hue {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ---------- 2. BREATHING: gold, slow radial pulse ---------- */
.rgb-mode.mode-breathing {
  --mode-bg: radial-gradient(circle at 50% 50%, var(--gold) 0%, transparent 55%);
  --mode-anim: breath-pulse 3.6s ease-in-out infinite;
}
.rgb-mode.mode-breathing::after {
  animation: breath-edge 3.6s ease-in-out infinite;
}
@keyframes breath-pulse {
  0%, 100% { opacity: 0.15; transform: scale(0.85); }
  50%      { opacity: 0.7;  transform: scale(1.05); }
}
@keyframes breath-edge {
  0%, 100% { box-shadow: inset 0 0 10px rgba(92,225,255,0.15); }
  50%      { box-shadow: inset 0 0 50px rgba(92,225,255,0.55); }
}

/* ---------- 3. THERMAL: warm gradient shifting cool→hot from edges ---------- */
.rgb-mode.mode-thermal {
  --mode-bg: linear-gradient(135deg, #6ee7ff 0%, #b6ff3b 35%, #ffb13b 70%, #ff3b6b 100%);
  --mode-anim: thermal-shift 5s ease-in-out infinite alternate;
}
.rgb-mode.mode-thermal::after {
  animation: thermal-edge 5s ease-in-out infinite alternate;
}
@keyframes thermal-shift {
  0%   { transform: translate(-6%, -6%) scale(1); opacity: 0.5; }
  100% { transform: translate(6%, 6%) scale(1.1);  opacity: 0.75; }
}
@keyframes thermal-edge {
  0%   { box-shadow: inset 0 0 30px rgba(110,231,255,0.45); }
  50%  { box-shadow: inset 0 0 40px rgba(182,255,59,0.45); }
  100% { box-shadow: inset 0 0 40px rgba(255,59,107,0.5); }
}

/* ---------- 4. OFF: dead, just a very faint cooling pulse ---------- */
.rgb-mode.mode-off::after {
  box-shadow: inset 0 0 24px rgba(228,240,246,0.04);
}

.rgb-mode .name {
  font-family: "Tajawal", sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--ink);
}
.rgb-mode .desc { font-size: 13px; color: var(--ink-dim); }
.rgb-mode .preview {
  height: 4px; border-radius: 999px;
  margin-top: 10px;
}

/* ============================================================
   SPEC SHEET
   ============================================================ */
.specs {
  padding: 100px 60px 60px;       /* tightened bottom — flows into final */
  position: relative;
  border-top: none;               /* unified: no inconsistent dividing line */
}
.specs .head {
  max-width: 760px; margin: 0 auto 60px; text-align: center;
}
.specs h2 {
  font-family: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 80px);
  letter-spacing: -0.01em; line-height: 1;
  margin-top: 20px;
}
.specs h2 .accent {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spec-table {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12,20,38,0.4);
  backdrop-filter: blur(10px);
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: none; }
.spec-row .k {
  padding: 20px 28px;
  font-family: "Tajawal", sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--gold);
  background: rgba(92,225,255,0.04);
  border-left: 1px solid var(--line);
}
.spec-row .v {
  padding: 20px 28px;
  font-size: 15px;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  line-height: 1.5;
}
.spec-row .v .tag-mini {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.15em;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--gold);
  background: var(--gold-soft);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 50px 60px 60px;     /* tightened — sits naturally between specs & final */
  position: relative;
  border-top: none;
  overflow: hidden;
}
.testimonials .head {
  text-align: center; margin-bottom: 80px;
}
.testimonials h2 {
  font-family: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 80px);
  letter-spacing: -0.01em;
  line-height: 1; margin-top: 16px;
}
.t-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.t-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(92,225,255,0.04), rgba(255,255,255,0));
  display: flex; flex-direction: column; gap: 20px;
  min-height: 260px;
  transition: all 0.3s;
}
.t-card:hover {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-soft), rgba(255,255,255,0));
}
.t-quote {
  font-size: 17px; line-height: 1.7;
  color: var(--ink);
  font-weight: 400;
}
.t-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  display: grid; place-items: center;
  color: #0a0f1e; font-size: 14px; font-weight: 700;
}
.t-name {
  font-family: "Tajawal", sans-serif;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.t-handle {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-dim);
  letter-spacing: 0.05em;
}
.t-stars { display: flex; gap: 2px; color: var(--gold); font-size: 13px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  min-height: auto;                  /* was 100vh — removed huge empty space */
  position: relative;
  display: grid; place-items: center;
  padding: 60px 24px 100px;          /* tighter top, generous bottom for CTA weight */
  overflow: hidden;
}
.final-bg {
  position: absolute; inset: 0;
  background-color: #0a0f1e;
  /* A soft cyan halo entering FROM THE TOP smoothly bridges specs/testimonials
     into the final section — no hard line, no abrupt colour break. */
  background-image:
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(92,225,255,0.14), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(92,225,255,0.22), transparent 60%),
    radial-gradient(ellipse 50% 50% at 30% 80%, rgba(92,225,255,0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 20%, rgba(163,240,255,0.10), transparent 60%),
    url('../../img/black logo.png');
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center top, center, center, center, center;
  background-size: auto, auto, auto, auto, min(62vmin, 680px);
}
/* Legacy inline <img class="final-logo"> — no longer wanted here */
.final-logo { display: none; }

.final-content {
  text-align: center; z-index: 2; position: relative;
  display: grid; gap: 30px; place-items: center;
  max-width: 1000px;
}
.final h2 {
  font-family: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(64px, 11vw, 200px);
  letter-spacing: -0.01em;
  line-height: 0.85;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.final h2 .accent {
  display: block;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(92, 225, 255, 0.35));
}
.final .sub {
  font-size: 20px;
  color: #ffffff;
  opacity: 0.95;
  max-width: 620px;
  line-height: 1.75;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.final .eyebrow {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.final-actions { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-deep));
  color: #0a0f1e;
  padding: 18px 36px; border-radius: 999px;
  font-family: "Tajawal", sans-serif;
  font-weight: 700; font-size: 16px;
  border: none; cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -10px var(--gold-glow);
}
.btn-ghost {
  background: rgba(228,240,246,0.04);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 18px 36px; border-radius: 999px;
  font-family: "Tajawal", sans-serif;
  font-weight: 700; font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.final-price {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-top: 8px;
}
.final-price strong {
  color: var(--gold); font-weight: 700;
}

/* footer */
.footer {
  padding: 36px 60px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer .f-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 12px; letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.footer .f-brand img { width: 24px; height: 24px; }
.footer .f-meta {
  font-family: "Tajawal", sans-serif;
  font-size: 12px;
  color: var(--ink-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav .brand .name .s { display: none; }
  .hero-metric { display: none; }
  .numbers { padding: 80px 20px; }
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  }
  .numbers-grid .cell {
    border-bottom: 1px solid var(--line); padding: 24px 18px;
  }
  .numbers-grid .cell:nth-child(2n) { border-left: none; }
  .anatomy .pinned {
    grid-template-columns: 1fr;
    padding: 80px 20px 40px;
    gap: 20px;
  }
  .anatomy .visual { height: 50vh; }
  .anatomy .callouts { display: none; }
  .engineering { padding: 80px 20px; }
  .eng-grid { grid-template-columns: 1fr; }
  .eng-card.feature { grid-column: span 1; }
  .app-section { padding: 80px 20px; }
  .app-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-features { grid-template-columns: 1fr; }
  .phone-stage { min-height: auto; }
  .rgb-section { padding: 80px 20px; }
  .rgb-modes { grid-template-columns: repeat(2, 1fr); }
  .specs { padding: 80px 20px; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-row .k { border-left: none; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .spec-row .v { padding: 14px 18px; }
  .testimonials { padding: 80px 20px; }
  .t-grid { grid-template-columns: 1fr; }
  .section-tracker { display: none; }
  .footer { padding: 24px 20px; }
}

/* ══════════════════════════════════════════════════════════
   GLOBAL SNOWFALL — sits above all sections, below nav/tracker
══════════════════════════════════════════════════════════ */

.global-snow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;       /* above section bgs, below nav (1000) & tracker (100) */
  opacity: 0;
  transition: opacity 1s ease;
  --snow-opacity: 1; /* JS drives this during scroll-fade at #rgb */
}
.global-snow.is-active { opacity: var(--snow-opacity); }

/* ══════════════════════════════════════════════════════════
   COLD-THEME OVERLAY — shifts every page colour toward cyan
   as we scroll, peaks at "freezing point", fades during #rgb.
══════════════════════════════════════════════════════════ */

.cold-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 45;                 /* below snow (50), above all content */
  opacity: 0;                  /* JS scrubs this from 0 → MAX_OPACITY */
  /* A visible cool-blue tint — uses NORMAL blend so it's always seen,
     even on the mostly-dark sections.  The internal alphas keep it
     atmospheric rather than overpowering. */
  background: linear-gradient(
    180deg,
    rgba(40,  95, 180, 0.45) 0%,
    rgba(55, 130, 215, 0.55) 50%,
    rgba(70, 160, 230, 0.60) 100%
  );
  transition: opacity 0.25s linear;
}

/* ══════════════════════════════════════════════════════════
   HEAT-THEME OVERLAY — warm red/orange tint that takes over
   when the user starts scrolling.  Peaks during the hero
   scroll-out + fire-ice fire phase, then fades into the cold.
══════════════════════════════════════════════════════════ */
.heat-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 44;                 /* below cold (45) so it can layer safely */
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(210,  60,  20, 0.42) 0%,
    rgba(230,  90,  30, 0.55) 45%,
    rgba(170,  40,  10, 0.50) 100%
  );
  transition: opacity 0.20s linear;
}

/* ══════════════════════════════════════════════════════════
   FIRE → ICE  SCROLLYTELLING  (preview-fusion-snap palette)
══════════════════════════════════════════════════════════ */

#fire-ice-scroll { position: relative; }

.fi-track { height: 700vh; }

.fi-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 48px;
  /* These vars are driven by JS for the temperature/accent colour */
  --fi-glow-col: 255, 110, 40;
  --fi-accent:   #ff7b2e;
  --fi-soft:     #ffcfa8;
}
.fi-pin[data-phase="ice"] {
  --fi-glow-col: 92, 225, 255;
  --fi-accent:   #5ce1ff;
  --fi-soft:     #7a9bb5;
}

/* ── Background colour layer ───────────────────────────── */
.fi-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #1a0a05, #1a0805 60%, #0a0f1e);
  transition: background 1.1s ease;
}
[data-phase="ice"] .fi-bg {
  /* End at the SAME #0a0f1e as body for the last 25 % so the section
     dissolves into the engineering section without a hard colour line. */
  background: linear-gradient(180deg,
    #0a0f1e 0%,
    #061420 40%,
    #0a0f1e 75%,
    #0a0f1e 100%);
}

/* Particle canvas — embers only (snow handled globally) */
.fi-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.8s ease;
}
[data-phase="ice"] .fi-canvas { opacity: 0; }

/* ── HUD corners ───────────────────────────────────────── */
.fi-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 8;
  opacity: 0.35;
  transition: border-color 0.8s ease;
  border-color: rgba(var(--fi-glow-col), 0.7);
}
.fi-tl { top: 28px; left: 28px;     border-top:    2px solid; border-left:  2px solid; }
.fi-tr { top: 28px; right: 28px;    border-top:    2px solid; border-right: 2px solid; }
.fi-bl { bottom: 28px; left: 28px;  border-bottom: 2px solid; border-left:  2px solid; }
.fi-br { bottom: 28px; right: 28px; border-bottom: 2px solid; border-right: 2px solid; }

/* ── Slot system (smoke-fade between fire & ice copy) ── */
.fi-slot {
  display: grid;
  position: relative;
}
.fi-slot > * {
  grid-area: 1 / 1;
  will-change: opacity, filter, transform;
}
/* Fire side — CSS handles its show/hide transitions */
.fi-slot > .fi-fire {
  opacity: 1; filter: blur(0); transform: translateY(0);
  transition:
    opacity 0.55s ease,
    filter 0.55s ease,
    transform 0.55s cubic-bezier(.22,.61,.36,1);
}
/* Ice side — NO css transition, GSAP is the sole animator so its
   per-frame stagger isn't smeared by a competing browser tween. */
.fi-slot > .fi-ice {
  opacity: 0; filter: blur(10px); transform: translateY(18px);
  pointer-events: none;
  transition: none !important;
}

[data-phase="ice"] .fi-slot > .fi-fire { opacity: 0; filter: blur(10px); transform: translateY(-18px); pointer-events: none; }
/* Ice side intentionally has NO auto-show rule here — GSAP reveals each
   .fi-ice element sequentially when we cross 0 °C (see fireIceScene). */
[data-phase="ice"] .fi-slot > .fi-ice  { pointer-events: auto; }

/* ── iOS-notification reveal (controlled by JS GSAP) ── */
.fi-reveal {
  /* Hidden until GSAP reveals it */
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(6px);
}
.fi-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(.22,.61,.36,1),
    filter 0.7s ease;
}

/* ── Eyebrow ───────────────────────────────────────────── */
.fi-eyebrow {
  position: relative;
  z-index: 5;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fi-accent);
  opacity: 0.85;
  margin-bottom: 36px;
  text-align: center;
  min-height: 14px;
  transition: color 0.8s ease;
}

/* ── Grid ───────────────────────────────────────────────── */
.fi-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  max-width: 1020px;
  width: 100%;
  align-items: center;
}

/* ── Temperature column ────────────────────────────────── */
.fi-temp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.fi-tc {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(var(--fi-glow-col), 0.32);
  box-shadow:
    0 0 60px rgba(var(--fi-glow-col), 0.18),
    inset 0 0 40px rgba(var(--fi-glow-col), 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
}
.fi-tc::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(var(--fi-glow-col), 0.12);
  transition: border-color 0.8s ease;
}
.fi-tc-num {
  font-family: 'Orbitron', monospace;
  font-size: 60px;
  font-weight: 900;
  color: var(--fi-accent);
  letter-spacing: -0.04em;
  text-shadow: 0 0 30px rgba(var(--fi-glow-col), 0.5);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
  transition: color 0.8s ease, text-shadow 0.8s ease;
}
.fi-tc-deg {
  font-size: 26px;
  font-weight: 400;
  color: rgba(255, 220, 195, 0.85);
  transition: color 0.8s ease;
}
[data-phase="ice"] .fi-tc-deg { color: rgba(180, 230, 255, 0.85); }

.fi-tc-inner-sub {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  color: rgba(var(--fi-glow-col), 0.65);
  letter-spacing: 0.12em;
  margin-top: 6px;
  min-height: 12px;
  transition: color 0.8s ease;
}

.fi-tc-sub {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(var(--fi-glow-col), 0.75);
  text-align: center;
  min-height: 13px;
  transition: color 0.8s ease;
}

.fi-prog-t {
  width: 240px;
  height: 3px;
  background: rgba(var(--fi-glow-col), 0.12);
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.8s ease;
}
.fi-prog-f {
  height: 100%;
  background: linear-gradient(90deg, var(--fi-accent), #ffffff);
  border-radius: 2px;
  width: 0;
  box-shadow: 0 0 8px rgba(var(--fi-glow-col), 0.6);
  transition: background 0.8s ease, box-shadow 0.8s ease;
}

/* ── Copy column ───────────────────────────────────────── */
.fi-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: right;
}

.fi-h2-slot { min-height: 140px; }
.fi-h2-slot h2 {
  font-family: 'Rakkas', 'Tajawal', serif;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  text-align: right;
  margin: 0;
}
.fi-h2-slot h2 em {
  font-style: normal;
  display: block;
  font-size: 0.85em;
  opacity: 0.92;
  color: var(--fi-accent);
  transition: color 0.8s ease;
}

.fi-sub-slot { min-height: 78px; }
.fi-sub-slot p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(228, 240, 246, 0.7);
  margin: 0;
  text-align: right;
}

/* ── iOS-notification cards (the look from preview-fusion-snap) ── */
.fi-cards-slot { min-height: 250px; }
.fi-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.fi-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(var(--fi-glow-col), 0.05);
  border: 1px solid rgba(var(--fi-glow-col), 0.14);
  border-radius: 14px;
  padding: 13px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-direction: row-reverse;
  text-align: right;
  transition:
    background 0.8s ease,
    border-color 0.8s ease;
}
.fi-card-icon {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  color: var(--fi-accent);
  min-width: 22px;
  padding-top: 2px;
  text-align: center;
  transition: color 0.8s ease;
}
.fi-card-body {
  flex: 1;
}
.fi-card-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.fi-card-body span {
  display: block;
  font-size: 12.5px;
  color: rgba(228, 240, 246, 0.6);
  line-height: 1.55;
}

/* ── Responsive — TABLET ──────────────────────────────── */
@media (max-width: 1024px) {
  .fi-pin { padding: 70px 32px; }
  .fi-grid { gap: 40px; max-width: 760px; }
  .fi-tc { width: 200px; height: 200px; }
  .fi-tc-num { font-size: 50px; }
  .fi-tc-deg { font-size: 22px; }
  .fi-prog-t { width: 200px; }
  .fi-h2-slot h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
  .fi-corner { width: 22px; height: 22px; }
}

/* ── Responsive — MOBILE ──────────────────────────────── */
@media (max-width: 768px) {
  .fi-pin { padding: 60px 20px 40px; }
  .fi-grid { grid-template-columns: 1fr; gap: 28px; max-width: 100%; }
  .fi-eyebrow { margin-bottom: 22px; font-size: 10px; }
  .fi-tc { width: 170px; height: 170px; }
  .fi-tc-num { font-size: 42px; }
  .fi-tc-deg { font-size: 18px; }
  .fi-prog-t { width: 170px; }
  .fi-h2-slot { min-height: 100px; }
  .fi-h2-slot h2 { font-size: 1.7rem; text-align: center; }
  .fi-sub-slot { min-height: 60px; }
  .fi-sub-slot p { text-align: center; font-size: 0.88rem; }
  .fi-cards-slot { min-height: 240px; }
  .fi-card { padding: 11px 14px; }
  .fi-card-body strong { font-size: 13px; }
  .fi-card-body span { font-size: 11.5px; }
  .fi-corner { width: 18px; height: 18px; }
  .fi-tl, .fi-tr { top: 18px; }
  .fi-tl, .fi-bl { left: 18px; }
  .fi-tr, .fi-br { right: 18px; }
  .fi-bl, .fi-br { bottom: 18px; }
}

/* ── Responsive — SMALL MOBILE ────────────────────────── */
@media (max-width: 420px) {
  .fi-pin { padding: 50px 16px 30px; }
  .fi-tc { width: 150px; height: 150px; }
  .fi-tc-num { font-size: 36px; }
  .fi-tc-deg { font-size: 16px; }
  .fi-prog-t { width: 150px; }
  .fi-h2-slot h2 { font-size: 1.5rem; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — FULL-SITE  (additive only · desktop untouched)
   • Tablet 901-1024:  tighter rhythm, keeps multi-column layouts.
   • Mobile ≤768:     refines what existing @900 already does
                       (font sizing, touch targets, image scaling).
   • Small ≤480:      stacks the last multi-col layouts, large taps.
   Source order matters — smaller breakpoints come LAST so they win.
   ════════════════════════════════════════════════════════════════ */

/* ── TABLET (901-1024) ────────────────────────────────────────── */
@media (min-width: 901px) and (max-width: 1024px) {
  /* Touch-friendly CTA (WCAG 2.5.5) — visual look kept identical */
  .nav .cta { min-height: 44px; }
  /* Tighten section paddings without changing rhythm/personality */
  .numbers      { padding: 110px 40px; }
  .engineering  { padding: 110px 40px; }
  .app-section  { padding: 110px 40px 70px; }
  .rgb-section  { padding: 110px 40px; }
  .specs        { padding: 90px 40px 55px; }
  .testimonials { padding: 45px 40px 55px; }
  .final        { padding: 55px 28px 90px; }
  .footer       { padding: 30px 32px; }

  /* Hero chrome — smaller corner brackets, more breathing room for h1 */
  .hero-corners { inset: 24px; }
  .hero-corner  { width: 22px; height: 22px; }

  /* Engineering — keep 2-column desktop look, just tighter gaps.
     Padding longhand to preserve weight-card's 46% padding-left for its art. */
  .eng-grid     { gap: 14px; max-width: 1040px; }
  .eng-card {
    padding-top: 24px;
    padding-right: 24px;
    padding-bottom: 24px;
    padding-left: 24px;
  }
  /* Re-establish weight-card's reserved left zone (desktop has 46%) */
  .weight-card { padding-left: 46%; }
  .eng-card h3  { font-size: 24px; }

  /* App grid — narrower phone stage so the copy column breathes */
  .app-grid     { gap: 44px; max-width: 1040px; }
  .phone-stage  { min-height: 560px; }
  .phone-stage .phone-img { max-width: 540px; }

  /* RGB modes — keep 4-col on tablet but tighter */
  .rgb-modes    { gap: 12px; margin-top: 44px; max-width: 760px; }
  .rgb-mode     { padding: 20px 16px; }

  /* Specs table — slightly tighter pads */
  .spec-row .k, .spec-row .v { padding: 18px 22px; font-size: 14px; }

  /* Testimonials grid — keep 3-col, smaller cards */
  .t-grid       { gap: 16px; max-width: 1040px; }
  .t-card       { padding: 24px; min-height: 230px; }

  /* The decorative card visuals were sized for the desktop card width;
     bring them in a touch so they don't crowd text on tablet */
  .weight-card .weight-art { width: 40%; }
  .fan-card .fan-stage     { width: 240px; height: 240px; }
}

/* ── MOBILE (≤900) — covers the 769-900 gap left by the existing @900.
   Extending to 900 ensures: hero h1 / final h2 inline-style overrides,
   button stacking, footer column, and card-decoration repositioning
   ALL apply across the entire phone+small-tablet range. Source-order
   later than the original @900 block, so this wins for shared props. */
@media (max-width: 900px) {
  /* HERO — keep impact, fit the narrow viewport.
     !important here is needed solely to win over inline style="" attrs
     that lock desktop sizing — desktop itself is untouched. */
  .hero h1 { font-size: clamp(48px, 13vw, 96px) !important; line-height: 0.92; }
  .hero h1 .english { font-size: 0.5em; margin: 0 8px; }
  .hero h1 .ar { font-size: 20px !important; }
  .hero h1 .v  { font-size: 22px !important; }
  .hero .slogan { font-size: 14px; padding: 0 16px; max-width: 100%; line-height: 1.55; }
  .hero .product-tag {
    font-size: 12px !important;
    height: auto !important;
    width: auto !important;
    padding: 8px 16px !important;
    margin: 24px auto !important;
    gap: 10px !important;
    max-width: calc(100% - 32px);
  }
  .hero .product-tag span:not(.dot) { font-size: 11px !important; }
  .hero-inner { gap: 18px; padding: 0 20px; }
  .hero-corners { inset: 16px; }
  .hero-corner { width: 18px; height: 18px; }
  .hero-image img { width: min(72vmin, 420px); }
  .scroll-hint { font-size: 9px; bottom: 22px; letter-spacing: 0.2em; }

  /* NAV — make the brand + CTA tap-friendly */
  .nav { padding: 12px 16px; gap: 8px; }
  .nav .brand { gap: 8px; }
  .nav .brand .logo { width: 30px; height: 30px; }
  .nav .brand .name .b { font-size: 12px; letter-spacing: 0.18em; }
  .nav .cta { padding: 10px 18px; font-size: 12px; min-height: 44px; }

  /* NUMBERS — readable numbers without crushing labels */
  .numbers .head { margin-bottom: 50px; }
  .numbers h2 { font-size: clamp(36px, 9vw, 60px); }
  .numbers-grid .cell { padding: 22px 16px; }
  .numbers-grid .cell .v { font-size: clamp(30px, 9vw, 48px); }
  .numbers-grid .cell .v .u { font-size: 13px; }
  .numbers-grid .cell .lbl { font-size: 11px; }
  .numbers-grid .cell .sub { font-size: 11px; }

  /* ENGINEERING — h3 + numbers proportionate to narrower cards.
     NOTE: do NOT shorthand `padding` here — it would wipe weight-card's
     reserved bottom space. Use longhand to keep weight-card's override
     working. */
  .engineering .head { margin-bottom: 40px; }
  .engineering h2 { font-size: clamp(36px, 9vw, 60px); }
  .eng-card {
    padding-top: 22px;
    padding-right: 22px;
    padding-left: 22px;
    padding-bottom: 22px;
  }
  .eng-card h3 { font-size: 22px; line-height: 1.25; }
  .eng-card .desc { font-size: 14px; }
  .eng-card .big-num { font-size: clamp(40px, 11vw, 60px); }

  /* Weight-card — re-establish min-height + adequate bottom padding so
     the bottom-anchored cooler/phone/hand artwork never overlaps pills. */
  .weight-card {
    min-height: 480px;
    padding-bottom: 240px;
  }
  .weight-card .weight-art { height: 200px; }

  /* Power-card — relocated cable centered below big-num, the energy-flow
     lines remain ACTIVE on mobile too (no more display:none). The SVG
     keeps its desktop viewBox; lines render horizontally above the cable. */
  .power-card { padding-bottom: 90px; min-height: 360px; }
  .power-card .power-graphic { display: block; }
  .power-card .usbc-cable-img {
    width: clamp(120px, 32vw, 160px);
    right: auto;
    left: 85%;
    top: auto;
    bottom: 22px;
    transform: translateX(-50%);
    animation: powerPlugBreath 4.8s ease-in-out infinite;
  }

  /* Fan-card — on mobile, big-num "+27" forces LTR (sits on LEFT) while
     h3/desc are RTL (sit on RIGHT). NO corner is text-free. Solution:
     reserve dedicated bottom padding and place the fan IN that padding zone
     as a centered decoration BELOW all text — strict zero-overlap. */
  .fan-card { padding-bottom: 110px; }
  .fan-card .fan-stage {
    width: 80px;
    height: 80px;
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
  }
  .fan-card .fan-ring,
  .fan-card .fan-blades { opacity: 0.18; }   /* a touch more visible since now isolated below text */

  /* APP SECTION */
  .app-copy h2 { font-size: clamp(40px, 10vw, 64px); }
  .app-copy .desc { font-size: 15px; }
  .app-features { gap: 12px; }
  .app-feature  { padding: 16px; }
  .phone-stage  { min-height: auto; }
  .phone-stage .phone-img { max-width: 90%; }

  /* RGB */
  .rgb-section h2 { font-size: clamp(38px, 10vw, 64px); }
  .rgb-section .sub { font-size: 15px; padding: 0 10px; }
  .rgb-modes { grid-template-columns: 1fr; gap: 10px; margin-top: 36px; }
  .rgb-mode  { padding: 18px; }
  .rgb-swatches .sw { width: 30px; height: 30px; }

  /* SPECS */
  .specs h2 { font-size: clamp(36px, 9vw, 56px); }
  .specs .head { margin-bottom: 36px; }
  .spec-row .k { font-size: 13px; padding: 12px 16px; }
  .spec-row .v { font-size: 14px; padding: 12px 16px; }
  .spec-row .v .tag-mini { font-size: 9px; padding: 2px 6px; }

  /* TESTIMONIALS */
  .testimonials .head { margin-bottom: 40px; }
  .testimonials h2 { font-size: clamp(36px, 9vw, 56px); }
  .t-card { padding: 20px; min-height: auto; gap: 16px; }
  .t-quote { font-size: 15px; line-height: 1.65; }
  .t-meta  { gap: 10px; }
  .t-avatar { width: 38px; height: 38px; font-size: 13px; }

  /* FINAL CTA — buttons stack & become full-width, touch-friendly */
  .final h2 { font-size: clamp(56px, 14vw, 96px) !important; }
  .final .sub { font-size: 16px; padding: 0 12px; line-height: 1.65; }
  .final-content { gap: 22px; }
  .final-actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    gap: 10px;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    min-height: 52px;          /* WCAG 2.5.5 — touch target */
  }
  .final-price { font-size: 12px; }

  /* FOOTER — stack vertically, centre everything */
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 16px;
  }
  .footer .f-brand { justify-content: center; }
}

/* ── SMALL MOBILE (≤480) — tightest screens ──────────────────── */
@media (max-width: 480px) {
  /* Section paddings to 16px sides so content uses every pixel */
  .numbers      { padding: 70px 16px; }
  .engineering  { padding: 70px 16px; }
  .app-section  { padding: 70px 16px 50px; }
  .rgb-section  { padding: 70px 16px; }
  .specs        { padding: 70px 16px 50px; }
  .testimonials { padding: 30px 16px 50px; }
  .final        { padding: 40px 16px 70px; }
  .footer       { padding: 20px 16px; }

  /* HERO — even more compact */
  .hero-corners { inset: 10px; }
  .hero h1 { font-size: clamp(40px, 14vw, 72px) !important; }
  .hero h1 .english { font-size: 0.45em; margin: 0 6px; }
  .hero h1 .ar { font-size: 18px !important; }
  .hero h1 .v  { font-size: 20px !important; }
  .hero .slogan { font-size: 13px; }
  .hero-image img { width: min(78vmin, 360px); }
  /* Final h2 — most aggressive override here for the tightest screens */
  .final h2 { font-size: clamp(44px, 16vw, 72px) !important; }

  /* NUMBERS — single column on the smallest screens */
  .numbers-grid { grid-template-columns: 1fr; }
  .numbers-grid .cell { padding: 18px 16px; border-left: none; border-bottom: 1px solid var(--line); }
  .numbers-grid .cell:last-child { border-bottom: none; }

  /* ENGINEERING — smaller padding (use longhand so weight-card's reserved
     bottom space for its art is NOT wiped out by the shorthand). */
  .eng-card {
    padding-top: 18px;
    padding-right: 18px;
    padding-left: 18px;
    padding-bottom: 18px;
  }
  .eng-card h3 { font-size: 20px; }
  .eng-card .big-num { font-size: clamp(36px, 12vw, 50px); }
  /* Weight-card needs explicit min-height + deep bottom padding so the
     bottom-anchored art does not run under the pills/text on tiny screens. */
  .weight-card {
    min-height: 440px;
    padding-bottom: 220px;
  }
  .weight-card .weight-art { height: 284px; }

  /* Power-card — even more compact centered cable at very small widths.
     Inherits @900 layout (centered below big-num), just shrunk + tighter
     reserved space. */
  .power-card { padding-bottom: 76px; min-height: 330px; }
  .power-card .usbc-cable-img {
    width: 116px;
    bottom: 26px;
  }

  /* Fan-card — smaller centered fan at tightest screens (inherits centered
     position from @900, just shrunk). */
  .fan-card { padding-bottom: 90px; }
  .fan-card .fan-stage {
    width: 314px;
    height: 280px;
    left: 18%;
    right: auto;
    bottom: -9px;
    transform: translateX(-50%);
  }

  /* App features bigger touch targets */
  .app-feature { padding: 14px; }

  /* RGB — minimal pad */
  .rgb-section h2 { font-size: clamp(34px, 11vw, 52px); }
  .rgb-swatches .sw { width: 26px; height: 26px; }

  /* Specs — smaller font */
  .specs h2 { font-size: clamp(32px, 10vw, 48px); }
  .spec-row .k, .spec-row .v { padding: 11px 14px; font-size: 13px; }

  /* Final h2 — keep readable, never overflow */
  .final h2 { font-size: clamp(44px, 16vw, 72px); }
  .final .sub { font-size: 14px; }
  .final-price { font-size: 11px; letter-spacing: 0.15em; }
}

/* ════════════════════════════════════════════════════════════════
   iPhone SE / shorter phones  (≤380px)
   Proportionally scaled from the user-tuned 430 (iPhone Pro Max)
   values: scale factor = 375/430 ≈ 0.872 applied to every number.
   At 430 viewport this rule does NOT apply, so Pro Max values are
   preserved untouched.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  /* Cable */
  .power-card { padding-bottom: 66px; min-height: 288px; }
  .power-card .usbc-cable-img {
    width: 101px;
    bottom: 23px;
  }

  /* Electric-signal SVG container — proportional override.
     At 430 viewport, left:-190 maintains ~-47.7% of card width.
     At 375 viewport, left:-165 keeps that same visual proportion.
     width/height stay at 153%/142% since those are percentage-based. */
  .power-card .power-graphic {
    left: -165px;
  }

  /* Weight-card art */
  .weight-card {
    min-height: 384px;
    padding-bottom: 192px;
  }
  .weight-card .weight-art { height: 248px; }

  /* Fan-card spinning fan */
  .fan-card { padding-bottom: 78px; }
  .fan-card .fan-stage {
    width: 274px;
    height: 244px;
    bottom: -8px;
    /* left: 18% & transform translateX(-50%) are percentage-based, no rescale needed */
  }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — HARD GUARANTEES + TABLET-RANGE REFINEMENTS
   • Below 1025 the page can never scroll horizontally.
   • Every media element is constrained to its container.
   • Tablet (769–1024) gets dedicated overrides for the elements
     whose inline styles lock them to desktop-only proportions
     (hero h1 / product-tag / corner metrics / final h2).
   Desktop (≥1025) remains completely untouched.
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  html, body { overflow-x: hidden; }
  /* Bugfix: previous value was 153% which actively caused overflow.
     Standard responsive media constraint: never overflow the container. */
  img, svg, video, canvas { max-width: 100%; height: auto; }
}

/* ── TABLET (769 – 1024) — override inline desktop-only sizing ── */
@media (min-width: 769px) and (max-width: 1024px) {

  /* HERO — h1 inline-locked to 145px; scale to viewport while keeping
     the same visual hierarchy (display font, accent gradient, line-height). */
  .hero h1 { font-size: clamp(64px, 11vw, 116px) !important; }

  /* HERO product tag — inline locks width:251px / height:38px / font:23px;
     unlock so it sits naturally centred under the headline. */
  .hero .product-tag {
    font-size: 13px !important;
    height: auto !important;
    width: auto !important;
    padding: 8px 18px !important;
    margin: 0 auto !important;
    max-width: calc(100% - 32px);
  }
  .hero .product-tag span:not(.dot) { font-size: 12px !important; }

  /* HERO corner metrics — inline locks 85–106px margins that push the
     labels into the centred content. Reset and use container-relative
     positions so they sit at the actual hero corners. */
  .hero-metric { margin: 0 !important; font-size: 9px !important; gap: 8px; }
  .hero-metric .v  { font-size: 16px !important; }
  .hero-metric .ar { font-size: 12px !important; }
  .hero-metric .bar { width: 28px; }
  .hero-metric.tl { top: 14%; left: 4%; }
  .hero-metric.tr { top: 14%; right: 4%; }
  .hero-metric.bl { bottom: 14%; left: 4%; }
  .hero-metric.br { bottom: 14%; right: 4%; }

  /* FINAL CTA — h2 inline-locked to 181px; bring it down for tablet. */
  .final h2 { font-size: clamp(72px, 12vw, 140px) !important; }
  .final .eyebrow { width: auto !important; font-size: 10px !important; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE LAB — USER-APPLIED TWEAKS (مُحفوظة من اللوحة)
   ▸ أربعة بريك بوينتس مستقلة تماماً — كل واحدة لا تؤثر على الأخريات.
       1. هاتف صغير   (≤ 414px)        — iPhone SE / standard
       2. هاتف كبير   (415 – 700px)    — iPhone Pro Max
       3. تابلت صغير  (701 – 900px)    — iPad mini / iPad portrait
       4. تابلت كبير  (901 – 1024px)   — iPad landscape
   ▸ ابدأت القيم الأربع بنفس التعديلات الحالية — افتح responsive-lab.html
     لاحقاً وعدّل كل واحدة على حدة.
   ════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   ① هاتف صغير  (≤ 414px)  — iPhone SE / 375 وما شابه
   ────────────────────────────────────────────────────────────── */
@media (max-width: 414px) {

  .hero-metric { display: flex !important; margin: 0 !important; }
  .hero-metric .bar { background: currentColor; opacity: .6; }

  .hero-metric.tl { top: 12%; left: 0; }
  .hero-metric.tr { top: 12%; right: 0; }
  .hero-metric.bl { bottom: 12%; left: 0; }
  .hero-metric.br { bottom: 12%; right: 0; }

  .hero-metric        { font-size: 6px; gap: 2px !important; }
  .hero-metric .v     { font-size: 8px !important; }
  .hero-metric .ar    { font-size: 8px !important; }
  .hero-metric .bar   { width: 4px; height: 1px; }

  .wire-bg { width: 120%; left: -33%; bottom: -23%; opacity: 0.17; }

  .weight-card { min-height: 415px; padding-bottom: 226px; }
  .weight-card .weight-art { width: 131% !important; height: 268px; bottom: 14px; }

  .power-card { min-height: 280px; padding-bottom: 62px; }
  .power-card .usbc-cable-img { width: 110px !important; left: 84% !important; bottom: 39px !important; }
  .power-card .power-graphic { top: 6px; left: -40px; width: 186%; height: 133%; }
  .power-card .power-graphic .power-arc { transform: translate(7px, 2px); }

  .fan-card { padding-bottom: 60px; }
  .fan-card .fan-stage { width: 280px !important; height: 280px !important; left: 0 !important; bottom: -30px !important; }
  .fan-card .fan-ring, .fan-card .fan-blades { opacity: 0.16; }

  .phone-stage { min-height: 300px; }
  .phone-stage .phone-img { max-width: 100%; }

  .rgb-stage { max-width: 340px; aspect-ratio: 1.70 / 1; }
}

/* ──────────────────────────────────────────────────────────────
   ② هاتف كبير  (415 – 700px)  — iPhone Pro Max / 430 وما شابه
   ────────────────────────────────────────────────────────────── */
@media (min-width: 415px) and (max-width: 700px) {

  .hero-metric { display: flex !important; margin: 0 !important; }
  .hero-metric .bar { background: currentColor; opacity: .6; }

  .hero-metric.tl { top: 12%; left: 0; }
  .hero-metric.tr { top: 12%; right: 0; }
  .hero-metric.bl { bottom: 12%; left: 0; }
  .hero-metric.br { bottom: 12%; right: 0; }

  .hero-metric        { font-size: 6px; gap: 2px !important; }
  .hero-metric .v     { font-size: 8px !important; }
  .hero-metric .ar    { font-size: 8px !important; }
  .hero-metric .bar   { width: 4px; height: 1px; }

  .wire-bg { width: 120%; left: -33%; bottom: -23%; opacity: 0.17; }

  .weight-card { min-height: 415px; padding-bottom: 226px; }
  .weight-card .weight-art { width: 131% !important; height: 268px; bottom: 14px; }

  .power-card { min-height: 280px; padding-bottom: 62px; }
  .power-card .usbc-cable-img { width: 110px !important; left: 84% !important; bottom: 39px !important; }
  .power-card .power-graphic { top: 2px; left: -40px; width: 186%; height: 133%; }
  .power-card .power-graphic .power-arc { transform: translate(7px, 2px); }

  .fan-card { padding-bottom: 60px; }
  .fan-card .fan-stage { width: 280px !important; height: 280px !important; left: 0 !important; bottom: -30px !important; }
  .fan-card .fan-ring, .fan-card .fan-blades { opacity: 0.16; }

  .phone-stage { min-height: 300px; }
  .phone-stage .phone-img { max-width: 100%; }

  .rgb-stage { max-width: 340px; aspect-ratio: 1.70 / 1; }
}

/* ──────────────────────────────────────────────────────────────
   ③ تابلت صغير  (701 – 900px)  — iPad mini / 768 وما شابه
   ────────────────────────────────────────────────────────────── */
@media (min-width: 701px) and (max-width: 900px) {

  .hero-metric { display: flex !important; margin: 0 !important; }
  .hero-metric .bar { background: currentColor; opacity: .6; }

  .hero-metric.tl { top: 14%; left: 4%; }
  .hero-metric.tr { top: 14%; right: 4%; }
  .hero-metric.bl { bottom: 14%; left: 4%; }
  .hero-metric.br { bottom: 14%; right: 4%; }

  .hero-metric        { font-size: 10px; gap: 6px !important; }
  .hero-metric .v     { font-size: 19px !important; }
  .hero-metric .ar    { font-size: 20px !important; }
  .hero-metric .bar   { width: 33px; }

  /* صورة المبرّد وهالة الإضاءة */
  .hero-image img        { width: 54vmin !important; transform: translate(-50%, calc(-50% + 4%)); }
  .hero-image .ring-glow { width: 90vmin; height: 90vmin; }

  .wire-bg { width: 79%; left: -22%; bottom: -25%; }

  .weight-card { min-height: 320px; }
  .weight-card .weight-art { width: 60% !important; }

  /* صور الوزن الأربع الفردية — مُكبَّرة ومنزاحة يساراً نحو الحافة */
  .weight-card .weight-layer-cooler  { transform: translate(-409px, -38px) scale(1.4)  !important; }
  .weight-card .weight-layer-phone   { transform: translate(-406px, -48px) scale(1.3)  !important; }
  .weight-card .weight-layer-hand    { transform: translate(-365px, -48px) scale(1.37) !important; }
  .weight-card .weight-layer-text80  { transform: translate(-120px,  83px) scale(2)    !important; opacity: 0.7; }

  /* موجة PIVA — حجم أكبر للتابلت + تنقيح خفيف */
  .waveform { width: 900px !important; height: 82px !important; transform: translate(-6px, 2px) !important; }
  .waveform path { stroke-width: 3; }

  .power-card .usbc-cable-img { width: 125px; right: 0; top: 230px; }
  .power-card .power-graphic { display: block !important; top: -55px; left: -24px; width: 99%; height: 137%; }
  .power-card .power-graphic .power-arc { transform: translate(1px, 0); }

  .fan-card .fan-stage { width: 280px; height: 280px; }
  .fan-card .fan-ring, .fan-card .fan-blades { opacity: 0.09; }

  .phone-stage { min-height: 400px; }
  .phone-stage .phone-img { max-width: 640px; }

  .rgb-stage { max-width: 420px; }
}

/* ──────────────────────────────────────────────────────────────
   ④ تابلت كبير  (901 – 1024px)  — iPad landscape وما شابه
   ────────────────────────────────────────────────────────────── */
@media (min-width: 901px) and (max-width: 1024px) {

  .hero-metric { display: flex !important; margin: 0 !important; }
  .hero-metric .bar { background: currentColor; opacity: .6; }

  .hero-metric.tl { top: 14%; left: 4%; }
  .hero-metric.tr { top: 14%; right: 4%; }
  .hero-metric.bl { bottom: 14%; left: 4%; }
  .hero-metric.br { bottom: 14%; right: 4%; }

  .hero-metric        { font-size: 10px; gap: 6px !important; }
  .hero-metric .v     { font-size: 19px !important; }
  .hero-metric .ar    { font-size: 20px !important; }
  .hero-metric .bar   { width: 33px; }

  /* صورة المبرّد وهالة الإضاءة */
  .hero-image img        { width: 54vmin !important; transform: translate(-50%, calc(-50% + 4%)); }
  .hero-image .ring-glow { width: 90vmin; height: 90vmin; }

  .wire-bg { width: 79%; left: -22%; bottom: -25%; }

  .weight-card { min-height: 320px; }
  .weight-card .weight-art { width: 47% !important; }

  .power-card .usbc-cable-img { width: 159px; right: 2px; top: 160px; }
  .power-card .power-graphic { display: block !important; top: -57px; left: -30px; width: 99%; height: 137%; }
  .power-card .power-graphic .power-arc { transform: translate(1px, 0); }

  .fan-card .fan-stage { width: 320px; height: 320px; }
  .fan-card .fan-ring, .fan-card .fan-blades { opacity: 0.09; }

  .phone-stage { min-height: 400px; }
  .phone-stage .phone-img { max-width: 640px; }

  .rgb-stage { max-width: 420px; }
}

/* ════════════════════════════════════════════════════════════════
   ⑤ ديسكتوب  (≥ 1025px)  — تنقيح موقع أرقام الأركان الأربعة
   ▸ inline-styles على .hero-metric تستخدم margins ضخمة (94/85/106/104px)
     مختلفة لكل ركن، فتدفع الأرقام لمواضع غير متناظرة قريبة من الكولر.
   ▸ نُلغي الـ margins ونثبّت الأركان الأربعة على نسب متناظرة قرب الحواف.
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .hero-metric { margin: 0 !important; }
  .hero-metric.tl { top: 14%; left: 5%; }
  .hero-metric.tr { top: 14%; right: 5%; }
  .hero-metric.bl { bottom: 14%; left: 5%; }
  .hero-metric.br { bottom: 14%; right: 5%; }
}
