/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--deep);
  color: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* ── Full-page 3D canvas ── */
#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* All page content sits above the fixed 3D canvas */
#navbar, #hero, .marquee-wrap, #features, #how-it-works,
#stats, #mobile-app, #cta, #footer,
.cursor, .cursor-ring {
  position: relative;
  z-index: 2;
}

/* Sections use transparent backgrounds so canvas 3D shapes show through */
#hero         { background: transparent; }
.marquee-wrap { background: rgba(8,13,20,0.72); }
#features     { background: transparent; }
#how-it-works { background: rgba(8,13,20,0.55); }
#stats        { background: rgba(8,13,20,0.6); }
#mobile-app   { background: transparent; }
#cta          { background: transparent; }
#footer       { background: rgba(8,13,20,0.88); }
[dir="rtl"] { font-feature-settings: "kern"; }

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--copper);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(196,122,44,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.12s var(--ease);
}
body:hover .cursor { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { width: 14px; height: 14px; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.6;
}

/* ── Horizontal rule / divider ── */
.rule { width: 100%; height: 1px; background: var(--line); }

/* ── Eyebrow ── */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}
[dir="rtl"] .eyebrow { flex-direction: row-reverse; }
[dir="rtl"] .eyebrow::before { display: none; }
[dir="rtl"] .eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--copper);
  color: #fff;
  padding: 14px 32px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
}
[dir="rtl"] .btn-primary::after { content: '←'; }
.btn-primary:hover {
  background: #d4882e;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(196,122,44,0.3);
}
.btn-primary:hover::after { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--sand);
  padding: 13px 30px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.btn-outline:hover {
  border-color: rgba(244,239,234,0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.5s var(--ease), background 0.5s;
}
#navbar.scrolled {
  padding: 16px var(--gutter);
  background: rgba(8, 13, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-logo img { height: 34px; }
.nav-center {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-center a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sand-dim);
  transition: color 0.3s;
}
.nav-center a:hover { color: var(--sand); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-nav-login {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sand-dim);
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.btn-nav-login:hover { color: var(--sand); border-color: var(--copper); }
.btn-nav-signup {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--copper);
  color: #fff;
  padding: 9px 20px;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
}
.btn-nav-signup:hover { background: #d4882e; transform: translateY(-1px); }
.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sand-dim);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.1em;
  font-family: var(--font);
  transition: border-color 0.3s, color 0.3s;
}
.lang-toggle:hover { border-color: var(--copper); color: var(--copper); }

/* ── Hero — cinematic editorial layout ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: transparent;
}

/* Subtle radial glow behind earth position */
#hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 540px;
  height: 540px;
  background: radial-gradient(ellipse, rgba(107,143,113,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* Top bar */
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 100px var(--gutter) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 3;
}
.hero-eyebrow { /* inherits .eyebrow */ }
.hero-domain {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(244,239,234,0.25);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  line-height: 1;
}
[dir="rtl"] .hero-domain { writing-mode: vertical-lr; }

/* Massive bottom-anchored H1 */
.hero-h1 {
  position: absolute;
  bottom: 144px;
  left: var(--gutter);
  right: 0;
  z-index: 3;
  font-size: clamp(4.8rem, 9.5vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--sand);
  display: flex;
  flex-direction: column;
  gap: 0.04em;
  max-width: 65vw;
}
.hero-word-row {
  display: flex;
  gap: 0.22em;
}
/* Clip mask for word-reveal animation */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  line-height: 1.0;
  padding-bottom: 0.06em; /* stop descender clipping */
}
.word {
  display: inline-block;
  will-change: transform;
}
.copper-word { color: var(--copper); }

/* Bottom-right: subtext + CTAs */
.hero-bottom-right {
  position: absolute;
  bottom: 152px;
  right: var(--gutter);
  z-index: 3;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  opacity: 0;
}
.hero-sub {
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  color: var(--sand-dim);
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Status strip */
.hero-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 22px var(--gutter);
  border-top: 1px solid rgba(244,239,234,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}
.status-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,234,0.22);
  opacity: 0;
}
.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,239,234,0.22);
  margin-left: auto;
}
.hero-scroll-line {
  width: 36px;
  height: 1px;
  background: var(--copper);
  transform-origin: left;
  animation: line-pulse 2.5s ease-in-out infinite;
}

/* RTL adjustments */
[dir="rtl"] .hero-h1  { left: 0; right: var(--gutter); }
[dir="rtl"] .hero-bottom-right { right: auto; left: var(--gutter); align-items: flex-end; text-align: right; }
[dir="rtl"] .hero-scroll-hint { margin-left: 0; margin-right: auto; flex-direction: row-reverse; }
[dir="rtl"] .hero-scroll-line { transform-origin: right; }

/* fade-in helper (GSAP controls .word; CSS handles these) */
.hero-anim-fade { opacity: 0; }

/* ── Marquee ── */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(8,13,20,0.6);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
[dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-dim);
  white-space: nowrap;
}
.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}

/* ── Features ── */
#features {
  padding: clamp(100px, 12vw, 160px) 0;
}
.features-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px;
  gap: 40px;
}
.features-header h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 520px;
}
.features-header p {
  font-size: 0.92rem;
  color: var(--sand-dim);
  max-width: 300px;
  line-height: 1.7;
  padding-bottom: 6px;
}
.features-list { list-style: none; }
.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  cursor: default;
  transition: background 0.4s;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.feature-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--copper-dim);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 4px;
}
.feature-row:hover::before { opacity: 1; }
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feat-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--copper);
  opacity: 0.7;
  padding-left: 8px;
}
.feat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 24px;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s var(--ease);
  transform: translateX(-8px);
}
.feature-row:hover .feat-icon { opacity: 1; transform: translateX(0); }
.feat-icon img { width: 22px; height: 22px; filter: invert(70%) sepia(60%) saturate(500%) hue-rotate(10deg); }
.feat-title {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.feature-row:hover .feat-title { color: var(--copper); }
.feat-desc {
  font-size: 0.88rem;
  color: var(--sand-dim);
  line-height: 1.65;
  max-width: 360px;
}

/* ── How It Works ── */
#how-it-works {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(180deg, var(--deep) 0%, #0d1628 100%);
  border-top: 1px solid var(--line);
}
.how-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 40px;
}
.how-header h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.how-step:last-child { border-bottom: 1px solid var(--line); }
.step-num-large {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,239,234,0.15);
  letter-spacing: -0.04em;
  transition: -webkit-text-stroke 0.4s, color 0.4s;
}
.how-step:hover .step-num-large {
  -webkit-text-stroke: 1px var(--copper);
}
.step-title {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-top: 8px;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--sand-dim);
  line-height: 1.75;
  padding-top: 8px;
  max-width: 380px;
}

/* ── Stats ── */
#stats {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  transition: background 0.4s;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--sand-faint); }
.stat-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.stat-number {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--sand);
}
.stat-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--sand-dim);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ── Mobile App ── */
#mobile-app {
  padding: clamp(80px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--line);
}
.mobile-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mobile-left .eyebrow { margin-bottom: 28px; }
.mobile-left h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.mobile-left p {
  font-size: 0.92rem;
  color: var(--sand-dim);
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 44px;
}
.app-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.app-badge-wrapper {
  position: relative;
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(15%);
  transition: opacity 0.3s;
}
.app-badge-wrapper:hover { opacity: 0.72; }
.app-badge-wrapper::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--sand);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  border: 1px solid var(--copper);
}
.app-badge-wrapper:hover::after { opacity: 1; }
.app-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(244,239,234,0.06);
  border: 1px solid var(--line);
  color: var(--sand);
  padding: 14px 24px;
  border-radius: 4px;
  pointer-events: none;
  min-width: 180px;
}
.badge-store-icon { width: 28px; height: 28px; flex-shrink: 0; }
.badge-text small {
  display: block;
  font-size: 0.65rem;
  color: var(--sand-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.mobile-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 280px;
}
.mobile-glow {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,122,44,0.12) 0%, transparent 70%);
  border: 1px solid rgba(196,122,44,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 3s ease-in-out infinite;
}
.mobile-glow-inner {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,122,44,0.2) 0%, transparent 70%);
  border: 1px solid rgba(196,122,44,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-glow-icon { font-size: 3rem; }

/* ── CTA ── */
#cta {
  padding: clamp(100px, 14vw, 200px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(196,122,44,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-eyebrow { margin-bottom: 32px; justify-content: center; }
[dir="rtl"] .cta-eyebrow { flex-direction: row; }
.cta-h2 {
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 48px;
  color: var(--sand);
}
.cta-h2 span { display: block; }
.cta-h2 em {
  font-style: normal;
  color: var(--copper);
}
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Footer ── */
#footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--sand-dim);
  max-width: 260px;
  line-height: 1.7;
}
.footer-links { display: flex; gap: 64px; justify-content: flex-end; }
.link-group { display: flex; flex-direction: column; gap: 14px; }
.link-group span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-bottom: 4px;
}
.link-group a {
  font-size: 0.85rem;
  color: var(--sand-dim);
  transition: color 0.3s;
}
.link-group a:hover { color: var(--sand); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(244,239,234,0.25);
}
.footer-badge {
  font-size: 0.72rem;
  color: rgba(244,239,234,0.2);
  letter-spacing: 0.08em;
}

/* ── Reveal classes (GSAP sets these) ── */
.reveal { opacity: 0; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-h1 { font-size: clamp(3.2rem, 10vw, 6rem); max-width: 90vw; bottom: 180px; }
  .hero-bottom-right { display: none; }
  .features-header { flex-direction: column; align-items: flex-start; }
  .feature-row { grid-template-columns: 60px 1fr; gap: 16px; }
  .feat-desc { display: none; }
  .feat-icon { display: none; }
  .how-step { grid-template-columns: 72px 1fr; }
  .step-desc { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--line); }
  .mobile-inner { grid-template-columns: 1fr; gap: 48px; }
  .mobile-right { display: none; }
  .nav-center { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { justify-content: flex-start; }
  .how-header { flex-direction: column; gap: 16px; }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 48px 1fr; }
  .cta-h2 { font-size: 2.6rem; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
