/* ==========================================================================
   GameKnox Editorial Landing System (v2026.12 — Kinetic Scroll Edition)
   Pure Matte Carbon & Natural Titanium — Zero AI Glows, 60fps Scroll Physics
   ========================================================================== */

:root {
  --bg: #000000;
  --bg-elevated: #0b0b0e;
  --bg-surface: #121216;
  --bg-hover: #1b1b21;

  --ink: #f5f5f7;
  --ink-secondary: #a1a1aa;
  --ink-muted: #787882;
  --ink-faint: #52525b;

  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #38bdf8;
  --accent-indigo: #5f7ef2;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Warm Titanium Stone Light Mode (Zero Harsh White — html[data-theme='light'])
   ========================================================================== */
html[data-theme='light'] {
  --bg: #e8e5df;
  --bg-elevated: #dfdcd5;
  --bg-surface: #f1efea;
  --bg-hover: #d7d3cb;

  --ink: #121214;
  --ink-secondary: #43423e;
  --ink-muted: #686660;
  --ink-faint: #87847d;

  --line: rgba(18, 18, 20, 0.09);
  --line-strong: rgba(18, 18, 20, 0.17);
  --accent: #0284c7;
  --accent-indigo: #3b5bdb;
  color-scheme: light;
}

html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning .site-header,
html.theme-transitioning .hero,
html.theme-transitioning .catalog-ribbon,
html.theme-transitioning .studio-pedestal,
html.theme-transitioning .store-btn,
html.theme-transitioning .theme-toggle,
html.theme-transitioning .closing-cta {
  transition:
    background-color 0.28s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.28s ease !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: 'cv02', 'cv03', 'cv04';
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang='ar'] body {
  font-family: var(--font-ar);
  font-feature-settings: normal;
  font-synthesis: none;
  font-weight: 500;
  line-height: 1.76;
  letter-spacing: 0;
}

/* Guarantee zero letter-spacing distortion on all Arabic glyphs */
html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3,
html[lang='ar'] p,
html[lang='ar'] li,
html[lang='ar'] a:not([dir='ltr']),
html[lang='ar'] button:not([dir='ltr']),
html[lang='ar'] summary {
  letter-spacing: 0 !important;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus {
  top: 16px;
}

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

/* ==========================================================================
   1. Minimal Architectural Header + Live Scroll Progress Hairline
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 64px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.scroll-progress-bar {
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #7dd3fc 0%, #38bdf8 50%, #5f7ef2 100%);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  pointer-events: none;
  opacity: 0.95;
}

html[dir='rtl'] .scroll-progress-bar {
  transform-origin: right center;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-cube {
  width: 24px;
  height: 26px;
  flex-shrink: 0;
  overflow: visible;
  transition: transform 0.28s var(--ease-out);
}

.brand-lockup:hover .brand-cube {
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding-block: 4px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: var(--ink-secondary);
  border-radius: 999px;
  transition: color 0.2s ease, transform 0.28s var(--ease-out);
}

.theme-toggle:hover {
  color: var(--ink);
  transform: rotate(-12deg) scale(1.08);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-light-disc {
  display: none;
}

html[data-theme='light'] .theme-toggle .icon-crescent {
  display: none;
}

html[data-theme='light'] .theme-toggle .icon-light-disc {
  display: block;
}

.lang-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 4px 2px;
  transition: color 0.18s ease;
}

.lang-link:hover {
  color: var(--ink);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding-inline: 16px;
  border-radius: 9px;
  background: var(--ink);
  color: #09090b;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity 0.18s ease, transform 0.22s var(--ease-out);
}

.nav-download:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. Above-the-Fold Split Hero: Left Pitch & Store Badges + Right 3-Phone Stage
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(56px, 7.5vh, 92px);
  padding-bottom: clamp(64px, 8.5vh, 100px);
  min-height: clamp(640px, 80svh, 840px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: clip;
}

/* Subtle Backloggd / PlayStation-style AAA Key-Art Vignette fading seamlessly into #000000 */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      90deg,
      #000000 0%,
      rgba(0, 0, 0, 0.91) 34%,
      rgba(0, 0, 0, 0.44) 68%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.18) 46%,
      #000000 100%
    ),
    url('./covers/elden-hero.webp');
  background-size: cover;
  background-position: 68% 26%;
  opacity: 0.54;
  filter: saturate(1.1) contrast(1.06);
}

html[dir='rtl'] .hero-backdrop {
  background-image:
    linear-gradient(
      270deg,
      #000000 0%,
      rgba(0, 0, 0, 0.91) 34%,
      rgba(0, 0, 0, 0.44) 68%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.18) 46%,
      #000000 100%
    ),
    url('./covers/elden-hero.webp');
  background-position: 32% 26%;
}

.hero > .container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.26fr);
  align-items: center;
  gap: clamp(32px, 3.8vw, 52px);
}

.hero-copy {
  max-width: 540px;
  margin-inline: 0;
  text-align: start;
  will-change: transform, opacity;
}

/* Staggered Load Entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 0.85s var(--ease-out) forwards;
}
.hero-anim.d1 { animation-delay: 0.04s; }
.hero-anim.d2 { animation-delay: 0.12s; }
.hero-anim.d3 { animation-delay: 0.22s; }
.hero-anim.d4 { animation-delay: 0.30s; }
.hero-anim.d5 { animation-delay: 0.38s; }

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 3.35vw, 3.2rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.04em;
  color: var(--ink);
}

html[lang='ar'] .hero-title {
  font-size: clamp(2.15rem, 3.3vw, 3.15rem);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: 0;
}

.hero-title .muted-line {
  display: block;
  color: #94a3b8;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 500px;
  font-size: clamp(0.98rem, 1.18vw, 1.1rem);
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-secondary);
}

html[lang='ar'] .hero-subtitle {
  font-weight: 500;
  line-height: 1.78;
}

/* Pre-Apple Store Action Buttons (White Primary App Store + Dark Carbon Google Play) */
.store-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero .store-row {
  justify-content: flex-start;
}

.store-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding-inline: 22px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  color: var(--ink);
  transition: transform 0.24s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease;
}

/* Subtle Specular Metallic Sweep on Button Hover */
.store-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: rotate(18deg) translateX(0);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}

.store-btn:hover::after {
  transform: rotate(18deg) translateX(460%);
}

.store-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.3);
}

.store-btn.primary {
  background: var(--ink);
  color: #09090b;
  border-color: var(--ink);
}

.store-btn.primary::after {
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
}

.store-btn.primary:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
}

.store-btn svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
  text-align: start;
  font-family: var(--font-sans);
}

.store-btn-text small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: 0.03em;
}

.store-btn-text strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-meta-note {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   3. Space-Black Anodized Titanium Device + OLED Specular Glass Sheen
   ========================================================================== */
.device-frame {
  position: relative;
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(148deg, #43434b 0%, #18181b 28%, #27272a 60%, #09090b 100%);
  box-shadow:
    0 44px 104px rgba(0, 0, 0, 0.92),
    0 14px 34px rgba(0, 0, 0, 0.74),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.28),
    inset 0 -1px 2px rgba(0, 0, 0, 0.88);
  user-select: none;
  transform-style: preserve-3d;
}

.device-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 858 / 1920;
  border-radius: 32px;
  overflow: hidden;
  background: #050506;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Scroll-Linked Diagonal OLED Glass Reflection */
.device-screen::after {
  content: '';
  position: absolute;
  inset: -35%;
  background: linear-gradient(
    114deg,
    transparent 38%,
    rgba(255, 255, 255, 0.085) 48%,
    rgba(255, 255, 255, 0.02) 54%,
    transparent 64%
  );
  transform: translate3d(var(--sheen-x, -30%), 0, 0);
  pointer-events: none;
  z-index: 5;
  will-change: transform;
}

.device-screen img,
.device-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Hero 3-Phone Architectural Perspective Stage (Linear / Apple Pro Style) */
.hero-stage {
  position: relative;
  margin-top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(28px);
  animation: heroRise 0.95s var(--ease-out) 0.18s forwards;
}

/* Subtle GameKnox Ice-Cyan & Royal-Blue OLED gaming studio aura behind the 3 phones */
.hero-stage::before {
  content: '';
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(580px, 94%);
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(56, 189, 248, 0.15) 0%,
    rgba(95, 126, 242, 0.1) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-devices-rig {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
  transform-origin: center 50%;
  will-change: transform;
}

.hero-devices {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.14fr 0.92fr;
  align-items: center;
  gap: 18px;
}

.hero-device-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
  will-change: transform;
}

.hero-device-col .device-frame {
  transition:
    transform 0.42s var(--ease-out),
    opacity 0.38s var(--ease-out),
    box-shadow 0.42s var(--ease-out);
}

.hero-device-col.is-side .device-frame {
  width: 100%;
  max-width: 238px;
  border-radius: 32px;
  padding: 6.5px;
  opacity: 0.72;
}

.hero-device-col.is-side .device-screen {
  border-radius: 25.5px;
}

.hero-device-col.is-center .device-frame {
  width: 100%;
  max-width: 292px;
  border-radius: 38px;
  padding: 8px;
  opacity: 1;
  z-index: 3;
}

.hero-device-col.is-center .device-screen {
  border-radius: 30px;
}

/* Interactive Spotlight Focus when hovering/tapping any of the 3 Hero phones */
.hero-devices.has-custom-focus .hero-device-col .device-frame {
  opacity: 0.54;
}

.hero-devices .hero-device-col.is-focused .device-frame {
  opacity: 1;
  transform: translateY(-8px) scale(1.025);
  box-shadow:
    0 48px 110px rgba(0, 0, 0, 0.95),
    0 14px 36px rgba(0, 0, 0, 0.8),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.38),
    inset 0 -1px 2px rgba(0, 0, 0, 0.88);
}

.device-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.device-caption::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-device-col.is-focused .device-caption {
  color: var(--ink);
}

.hero-device-col.is-focused .device-caption::before {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.65);
  transform: scale(1.25);
}

/* ==========================================================================
   3B. Scroll-Velocity Game Catalog Marquee Ribbon (Vibrant AAA Box Art)
   ========================================================================== */
.catalog-ribbon {
  position: relative;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  background: #05060a;
  overflow: hidden;
}

.catalog-ribbon-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

html[lang='ar'] .catalog-ribbon-label {
  font-family: var(--font-ar);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.catalog-mask {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.catalog-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.catalog-cover {
  width: 90px;
  height: 128px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.92;
  filter: saturate(1.06) contrast(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
}

.catalog-cover:hover {
  opacity: 1;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.85), 0 0 18px rgba(56, 189, 248, 0.2);
  transform: translateY(-5px) scale(1.05);
}

.catalog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   4. Scroll Reveal Primitives & Problem -> Solution Active Focus Ledger (#why)
   ========================================================================== */
.section {
  padding-block: 96px;
  border-bottom: 1px solid var(--line);
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.78s var(--ease-out), transform 0.78s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

html[lang='ar'] .section-eyebrow {
  font-family: var(--font-ar);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

html[lang='ar'] .section-title {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-desc {
  margin: 14px 0 0;
  font-size: 1.05rem;
  color: var(--ink-secondary);
}

.problem-ledger {
  border-top: 1px solid var(--line);
}

.problem-row {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  padding-block: 30px;
  padding-inline: 18px;
  margin-inline: -18px;
  border-radius: 14px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background-color 0.35s var(--ease-out), opacity 0.45s ease;
}

/* Animated top hairline sweep when row enters viewport */
.problem-row::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1.5px;
  background: linear-gradient(90deg, #38bdf8, #5f7ef2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s var(--ease-out);
  pointer-events: none;
}

html[dir='rtl'] .problem-row::after {
  transform-origin: right center;
}

.problem-row.is-active-row {
  background-color: rgba(255, 255, 255, 0.024);
}

.problem-row.is-active-row::after {
  transform: scaleX(1);
}

.problem-col-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.problem-row.is-active-row .problem-after .problem-col-label {
  color: var(--ink-secondary);
}

html[lang='ar'] .problem-col-label {
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.problem-before p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-muted);
  transition: color 0.3s ease;
}

.problem-after p {
  margin: 0;
  font-size: 1.04rem;
  color: var(--ink-secondary);
  transition: color 0.3s ease;
}

.problem-row.is-active-row .problem-after p {
  color: #d4d4d8;
}

.problem-after strong {
  color: var(--ink);
  font-weight: 700;
}

/* ==========================================================================
   5. Six Core Feature Pillars — Scroll-Linked 3D Device Unfold (#features)
   ========================================================================== */
.pillars-wrap {
  display: flex;
  flex-direction: column;
  gap: 112px;
}

.pillar-row {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
}

.pillar-row.is-reversed .pillar-copy {
  order: 2;
}

.pillar-row.is-reversed .pillar-visual {
  order: 1;
}

.pillar-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

html[lang='ar'] .pillar-index {
  font-family: var(--font-ar);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.pillar-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--ink);
}

html[lang='ar'] .pillar-title {
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0;
}

.pillar-desc {
  margin: 16px 0 0;
  font-size: 1.04rem;
  color: var(--ink-secondary);
  max-width: 520px;
}

.pillar-points {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.pillar-points li {
  position: relative;
  padding-block: 12px;
  padding-inline-start: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-secondary);
  transition: color 0.2s ease, padding-inline-start 0.25s var(--ease-out);
}

.pillar-points li:hover {
  color: var(--ink);
}

.pillar-points li::before {
  content: '—';
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  color: var(--accent);
}

.pillar-points strong {
  color: var(--ink);
  font-weight: 600;
}

/* Interactive Video Switcher Tabs */
.screen-switcher {
  margin-top: 24px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.switch-tab {
  position: relative;
  padding: 8px 15px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.2s ease, background-color 0.22s var(--ease-out), transform 0.18s ease;
}

.switch-tab:hover {
  color: var(--ink-secondary);
}

.switch-tab.is-active {
  background: var(--bg-hover);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Studio Well Pedestal with Cursor Specular Radial Sheen + Scroll 3D Rig */
.pillar-visual {
  display: flex;
  justify-content: center;
  perspective: 1500px;
}

.studio-pedestal {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 36px 28px;
  border-radius: 28px;
  background:
    radial-gradient(
      440px circle at var(--spot-x, 50%) var(--spot-y, 20%),
      rgba(56, 189, 248, 0.075),
      rgba(255, 255, 255, 0.035) 38%,
      transparent 66%
    ),
    linear-gradient(180deg, #0d0e14 0%, #050508 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.studio-pedestal:hover {
  border-color: var(--line-strong);
}

.studio-pedestal .device-frame {
  width: 100%;
  max-width: 296px;
  will-change: transform;
  transition: transform 0.12s linear;
}

.clip-pane {
  display: none;
  width: 100%;
  height: 100%;
}

.clip-pane.is-active {
  display: block;
  animation: paneReveal 0.38s var(--ease-out);
}

@keyframes paneReveal {
  from {
    opacity: 0.35;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   6. Personalization & Core Principles Strip (#principles)
   ========================================================================== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 8px;
}

.principle-item {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.principle-item:hover {
  border-top-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-3px);
}

.principle-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.principle-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.58;
}

/* ==========================================================================
   7. Minimal Hairline FAQ (#faq)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-item summary:hover {
  color: #ffffff;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--ink-muted);
  transition: transform 0.28s var(--ease-out), color 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  color: var(--ink);
}

.faq-answer {
  margin: 0;
  padding-bottom: 22px;
  font-size: 0.97rem;
  color: var(--ink-secondary);
  max-width: 740px;
  animation: faqFade 0.32s var(--ease-out);
}

@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   8. Closing Download Statement & Footer
   ========================================================================== */
.closing-cta {
  position: relative;
  padding-block: 112px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: #000000;
  overflow: hidden;
}

.closing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      180deg,
      #000000 0%,
      rgba(0, 0, 0, 0.55) 48%,
      #000000 100%
    ),
    radial-gradient(ellipse at 50% 50%, transparent 25%, #000000 88%),
    url('./covers/bg3-hero.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.42;
}

.closing-cta > .container {
  position: relative;
  z-index: 2;
}

.closing-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.12;
  color: var(--ink);
}

html[lang='ar'] .closing-cta h2 {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.closing-cta p {
  margin: 14px auto 0;
  max-width: 540px;
  font-size: 1.05rem;
  color: var(--ink-secondary);
}

.site-footer {
  padding-block: 44px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   9. Responsive Breakpoints & Reduced Motion Accessibility
   ========================================================================== */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero > .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: 580px;
  }

  .hero-stage {
    max-width: 720px;
    margin-inline: auto;
  }

  .problem-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 22px;
  }

  .pillar-row,
  .pillar-row.is-reversed {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pillar-row.is-reversed .pillar-copy {
    order: 1;
  }

  .pillar-row.is-reversed .pillar-visual {
    order: 2;
  }

  .pillar-desc,
  .pillar-points {
    max-width: 100%;
  }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 48px;
    min-height: auto;
    display: block;
  }

  .store-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero .store-row {
    margin-inline: 0;
  }

  .store-btn {
    justify-content: center;
  }

  .hero-devices {
    grid-template-columns: 0.88fr 1.14fr 0.88fr;
    gap: 10px;
  }

  .device-caption::before {
    display: none;
  }

  .hero-device-col.is-side .device-frame,
  .device-frame {
    border-radius: 22px;
    padding: 4.5px;
  }

  .hero-device-col.is-side .device-screen,
  .device-screen {
    border-radius: 17.5px;
  }

  .hero-device-col.is-center .device-frame {
    border-radius: 26px;
    padding: 5.5px;
  }

  .hero-device-col.is-center .device-screen {
    border-radius: 20.5px;
  }

  .studio-pedestal {
    padding: 24px 18px;
  }

  .studio-pedestal .device-frame {
    max-width: 248px;
    border-radius: 36px;
    padding: 8px;
  }

  .studio-pedestal .device-screen {
    border-radius: 29px;
  }

  .device-caption {
    font-size: 0.7rem;
  }

  .catalog-cover {
    width: 58px;
    height: 84px;
  }

  .section {
    padding-block: 68px;
  }

  .pillars-wrap {
    gap: 72px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-actions {
    gap: 12px;
  }

  .theme-toggle,
  .lang-link {
    font-size: 0.82rem;
  }

  .nav-download {
    height: 34px;
    padding-inline: 12px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   10. Warm Titanium Stone Light Mode Overrides (Zero Harsh White)
   ========================================================================== */
html[data-theme='light'] .site-header {
  background: rgba(232, 229, 223, 0.86);
}

html[data-theme='light'] .brand-cube {
  filter: drop-shadow(0 1px 2.5px rgba(18, 18, 20, 0.28));
}

html[data-theme='light'] .nav-download {
  background: #121214;
  color: #f4f2ed;
}

html[data-theme='light'] .hero {
  background: radial-gradient(ellipse 75% 40% at 50% 0%, rgba(255, 253, 248, 0.55) 0%, transparent 72%);
}

html[data-theme='light'] .hero-backdrop,
html[data-theme='light'] .closing-cta::before {
  opacity: 0;
}

html[data-theme='light'] .hero-title .muted-line {
  color: #57534e;
}

html[data-theme='light'] .store-btn {
  background: #f1efea;
  border-color: rgba(18, 18, 20, 0.17);
  color: #121214;
  box-shadow: 0 2px 8px rgba(18, 18, 20, 0.05);
}

html[data-theme='light'] .store-btn::after {
  background: linear-gradient(105deg, transparent 0%, rgba(18, 18, 20, 0.05) 50%, transparent 100%);
}

html[data-theme='light'] .store-btn:hover {
  background: #e4e1da;
  border-color: rgba(18, 18, 20, 0.3);
}

html[data-theme='light'] .store-btn.primary {
  background: #121214;
  color: #f4f2ed;
  border-color: #121214;
  box-shadow: 0 8px 22px rgba(18, 18, 20, 0.16);
}

html[data-theme='light'] .store-btn.primary::after {
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

html[data-theme='light'] .store-btn.primary:hover {
  background: #242428;
  border-color: #242428;
}

html[data-theme='light'] .hero-stage::before {
  background: radial-gradient(ellipse at 50% 35%, rgba(18, 18, 20, 0.06) 0%, transparent 70%);
}

html[data-theme='light'] .device-frame {
  box-shadow:
    0 34px 76px rgba(18, 18, 22, 0.24),
    0 10px 26px rgba(18, 18, 22, 0.13),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.34),
    inset 0 -1px 2px rgba(0, 0, 0, 0.85);
}

html[data-theme='light'] .hero-device-col.is-side .device-frame {
  opacity: 0.88;
}

html[data-theme='light'] .hero-devices.has-custom-focus .hero-device-col .device-frame {
  opacity: 0.76;
}

html[data-theme='light'] .hero-devices .hero-device-col.is-focused .device-frame {
  opacity: 1;
  box-shadow:
    0 44px 96px rgba(18, 18, 22, 0.32),
    0 14px 32px rgba(18, 18, 22, 0.16),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.45),
    inset 0 -1px 2px rgba(0, 0, 0, 0.88);
}

html[data-theme='light'] .catalog-ribbon {
  background: #e1ded7;
}

html[data-theme='light'] .catalog-cover {
  border-color: rgba(18, 18, 20, 0.12);
  opacity: 0.94;
  filter: saturate(1.02) contrast(1.03);
  box-shadow: 0 6px 16px rgba(18, 18, 20, 0.12);
}

html[data-theme='light'] .catalog-cover:hover {
  opacity: 1;
  box-shadow: 0 10px 22px rgba(18, 18, 20, 0.2);
}

html[data-theme='light'] .problem-row::after {
  background: linear-gradient(90deg, #0284c7, #3b5bdb);
}

html[data-theme='light'] .problem-row.is-active-row {
  background-color: rgba(18, 18, 20, 0.04);
}

html[data-theme='light'] .problem-row.is-active-row .problem-after p {
  color: #18181b;
}

html[data-theme='light'] .switch-tab.is-active {
  background: #f4f2ed;
  color: #121214;
  box-shadow: 0 2px 6px rgba(18, 18, 20, 0.08), 0 0 0 1px rgba(18, 18, 20, 0.08);
}

html[data-theme='light'] .studio-pedestal {
  background:
    radial-gradient(
      420px circle at var(--spot-x, 50%) var(--spot-y, 20%),
      rgba(255, 253, 248, 0.55),
      transparent 65%
    ),
    linear-gradient(180deg, #e0ddd6 0%, #d6d2ca 100%);
  border-color: rgba(18, 18, 20, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme='light'] .studio-pedestal:hover {
  border-color: rgba(18, 18, 20, 0.2);
}

html[data-theme='light'] .principle-item:hover {
  border-top-color: rgba(18, 18, 20, 0.45);
}

html[data-theme='light'] .faq-item summary:hover {
  color: #000000;
}

html[data-theme='light'] .closing-cta {
  background: radial-gradient(ellipse 65% 45% at 50% 100%, rgba(255, 253, 248, 0.5) 0%, transparent 72%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-anim,
  .hero-stage,
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
