/* ==========================================================================
   Numera v1 - main.css
   Design tokens + base + nav + sections + responsive
   ========================================================================== */

/* TOKENS */
:root {
  --c-primary:    #14524C;
  --c-secondary:  #2A8B7F;
  --c-accent:     #FF6B5C;
  --c-ink:        #0A1517;
  --c-ground:     #FAF7F2;
  --c-ground-deep:#EFE8DD;
  --c-white:      #FFFFFF;
  --c-line:       rgba(15,12,20,0.10);
  --c-muted:      #6E6A76;
  --c-obsidian:   #0B0815;
  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-arabic:  "Tajawal", "DM Sans", sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", "Menlo", monospace;
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--c-ground);
  color: var(--c-ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* PILLS */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.pill--primary {
  background: var(--c-primary);
  color: var(--c-white);
}
.pill--primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(20,82,76,0.30);
}
.pill--ghost {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.4);
}
.pill--ghost:hover {
  background: rgba(255,255,255,0.08);
}
.pill--accent {
  background: var(--c-accent);
  color: var(--c-white);
}
.pill--accent:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(255,107,92,0.35);
}
.pill--ghost-dark {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-line);
  padding: 12px 20px;
  font-size: 14px;
}
.pill--ghost-dark:hover {
  background: var(--c-ground-deep);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 220ms ease, backdrop-filter 220ms ease, border-color 220ms ease;
}
.nav.is-scrolled {
  background: rgba(250,247,242,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.nav__logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
/* Logo image swap: white over hero, color on cream-blur */
.nav__logo-img {
  height: 28px;
  width: auto;
  transition: opacity 200ms ease;
}
.nav__logo-img--white {
  display: inline-block;
}
.nav__logo-img--color {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.nav.is-scrolled .nav__logo-img--white { opacity: 0; }
.nav.is-scrolled .nav__logo-img--color { opacity: 1; }
/* Logo text color */
.nav__logo-text {
  color: var(--c-white);
  transition: color 200ms ease;
}
.nav.is-scrolled .nav__logo-text { color: var(--c-ink); }
.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 150ms ease;
}
.lang-toggle:hover { color: var(--c-accent); }
.nav.is-scrolled .lang-toggle { color: var(--c-muted); }
.nav.is-scrolled .lang-toggle:hover { color: var(--c-primary); }
.nav__cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  background: var(--c-primary);
  color: var(--c-white);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.nav__cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(20,82,76,0.25);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,21,23,0.08) 0%,
    rgba(10,21,23,0.42) 55%,
    rgba(10,21,23,0.76) 100%
  );
  z-index: 2;
}
.hero__inner {
  position: relative;
  z-index: 3;
  padding: 0 32px 26vh;
  max-width: 1200px;
  width: 100%;
  color: var(--c-white);
}
.hero__title {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 680px;
  font-family: var(--font-display);
}
.hero__sub {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px;
  max-width: 540px;
  line-height: 1.45;
  font-weight: 400;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 3;
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto {
  padding: 96px 0 80px;
  background: var(--c-ground);
}
.manifesto__inner {
  max-width: 800px;
}
.manifesto__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 24px;
}
.manifesto__body {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--c-ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ==========================================================================
   WEDGES
   ========================================================================== */
.wedges {
  padding: 80px 0 100px;
  background: var(--c-ground);
  border-top: 1px solid var(--c-line);
}
.wedges__header {
  margin-bottom: 56px;
}
.wedges__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.wedges__title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
  max-width: 640px;
  color: var(--c-ink);
}
.wedges__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.wedge {
  border-top: 2px solid var(--c-line);
  padding-top: 28px;
}
.wedge__n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 700;
}
.wedge h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--c-ink);
}
.wedge p {
  font-size: 16px;
  color: var(--c-muted);
  margin: 0;
  max-width: 300px;
  line-height: 1.6;
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing {
  padding: 96px 0;
  background: var(--c-ground-deep);
  border-top: 1px solid var(--c-line);
}
.pricing__header {
  margin-bottom: 48px;
}
.pricing__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.pricing__title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 700;
  max-width: 640px;
  color: var(--c-ink);
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.tier {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 200ms ease, box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,12,20,0.07);
}
.tier::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}
.tier:hover::after { transform: scaleX(1); }
.tier--rec {
  border: 2px solid var(--c-primary);
  box-shadow: 0 8px 28px rgba(20,82,76,0.12);
}
.tier__badge {
  position: absolute;
  top: -1px;
  left: 24px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.tier__name {
  position: relative;
  font-size: 13px;
  color: var(--c-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
  margin-top: 16px;
}
/* Coral underline that grows on tier hover */
.tier__name::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}
.tier:hover .tier__name::after { transform: scaleX(1); }
.tier__price {
  font-family: var(--font-mono);
  font-size: 48px;
  line-height: 1;
  color: var(--c-primary);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.tier__period {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 4px;
}
.tier__volume {
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
}
.tier__incl {
  margin: 20px 0 28px;
  padding: 0;
}
.tier__incl li {
  font-size: 15px;
  color: var(--c-ink);
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}
.tier__incl li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-secondary);
}
.pricing__addons {
  font-size: 14px;
  color: var(--c-muted);
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  line-height: 1.8;
}
.pricing__addons .sep {
  color: var(--c-accent);
  padding: 0 6px;
}

/* ==========================================================================
   FOUNDERS
   ========================================================================== */
.founders {
  padding: 100px 0;
  background: var(--c-ground);
  border-top: 1px solid var(--c-line);
}
.founders__header {
  margin-bottom: 52px;
}
.founders__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.founders__title {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 700;
  max-width: 700px;
  color: var(--c-ink);
}
.founders__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.founder {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 32px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.founder:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,12,20,0.06);
}
.founder img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  filter: saturate(0.5);
  transition: filter 280ms ease, transform 280ms ease;
}
.founder:hover img {
  filter: saturate(1);
  transform: scale(1.04);
}
.founder__name {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.founder__role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.founder__bio {
  font-size: 15px;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   ZATCA
   ========================================================================== */
.zatca {
  padding: 96px 0;
  background: var(--c-primary);
  color: var(--c-white);
}
.zatca__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
.zatca__headline {
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 820px;
  color: var(--c-white);
}
.zatca__sub {
  font-size: 19px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 48px;
  max-width: 580px;
  line-height: 1.5;
}
.zatca__countdown {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.zatca__deadline {
  font-family: var(--font-mono);
  font-size: clamp(52px, 7.5vw, 100px);
  color: var(--c-accent);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1;
}
.zatca__days {
  font-family: var(--font-mono);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1;
}
.zatca__days #zatca-days {
  color: var(--c-accent);
  font-weight: 700;
}

/* ==========================================================================
   NUMBERS
   ========================================================================== */
.numbers {
  padding: 96px 0;
  background: var(--c-ground);
  border-top: 1px solid var(--c-line);
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { text-align: left; }
.stat__v {
  font-family: var(--font-mono);
  font-size: clamp(52px, 6.5vw, 80px);
  color: var(--c-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 700;
}
.stat__k {
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 14px;
  line-height: 1.4;
  max-width: 200px;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-obsidian);
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.42;
  z-index: 1;
}
.cta__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,8,21,0.35) 0%,
    rgba(11,8,21,0.82) 100%
  );
  z-index: 2;
}
.cta__inner {
  position: relative;
  z-index: 3;
  padding: 96px 32px;
  color: var(--c-white);
  width: 100%;
}
.cta__title {
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.04;
  margin: 0 0 36px;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 700px;
}
.cta__pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--c-obsidian);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer__brand img {
  height: 30px;
  width: auto;
  margin-bottom: 14px;
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--c-white);
  margin-bottom: 10px;
}
.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  max-width: 280px;
  line-height: 1.55;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 700;
}
.footer__col a,
.footer__col p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 150ms ease;
  line-height: 1.4;
}
.footer__col a:hover { color: var(--c-accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer__bottom .lang-toggle {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}
.footer__bottom .lang-toggle:hover { color: var(--c-accent); }

/* ==========================================================================
   MOTION - reveal states (T9 motion layer builds on these)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.wedges__grid .reveal:nth-child(2) { transition-delay: 80ms; }
.wedges__grid .reveal:nth-child(3) { transition-delay: 160ms; }
.pricing__grid .reveal:nth-child(2) { transition-delay: 80ms; }
.pricing__grid .reveal:nth-child(3) { transition-delay: 160ms; }
.founders__grid .reveal:nth-child(2) { transition-delay: 100ms; }
.numbers__grid .reveal:nth-child(2) { transition-delay: 60ms; }
.numbers__grid .reveal:nth-child(3) { transition-delay: 120ms; }
.numbers__grid .reveal:nth-child(4) { transition-delay: 180ms; }

/* Hero title word-by-word (wired by JS) */
.hero__title-words span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}
.hero__title-words span.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 580ms ease, transform 580ms ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__title-words span,
  .hero__title-words span.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Auto-animations suppressed; user-initiated hovers still work */
  .nav,
  .nav__cta,
  .pill,
  .tier,
  .founder,
  .founder img,
  .nav__logo-img,
  .nav__logo-text {
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 900px) {
  .wedges__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .numbers__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; }

  .nav__right .lang-toggle { display: none; }

  .hero__inner { padding: 0 20px max(120px, min(18vh, 180px)); }
  .hero__title { margin-bottom: 16px; }
  .hero__sub { margin-bottom: 28px; }

  .manifesto { padding: 64px 0; }

  .wedges { padding: 64px 0; }
  .wedges__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing { padding: 64px 0; }
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .founders { padding: 64px 0; }
  .founders__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .zatca { padding: 64px 0; }
  .zatca__countdown { gap: 12px; }

  .numbers { padding: 64px 0; }
  .numbers__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .cta-section { min-height: 60vh; }
  .cta__inner { padding: 64px 20px; }

  .footer { padding: 56px 0 24px; }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .numbers__grid {
    grid-template-columns: 1fr 1fr;
  }
}
