/* ============================================================
   TAMKĀR — Cyber-Sumerian design system
   Dark, warm-black canvas. One hero color: vibrant neon orange.
   ============================================================ */

:root {
  --bg-0: #050508;
  --bg-1: #0a0a12;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);

  --text-hi: #f4f1ec;
  --text-mid: #b3adc0;
  --text-low: #7d7788;

  --orange: #ff5e00;
  --orange-hot: #ff8a3d;
  --orange-pale: #ffb37a;
  --orange-soft: rgba(255, 94, 0, 0.12);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-cunei: "Noto Sans Cuneiform", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;

  color-scheme: dark;
}

/* ---------- Reset / base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, not hidden: hidden would make <body> a scroll container and
     silently break every position:sticky descendant */
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(255, 94, 0, 0.4); color: #fff7ef; }

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

.cunei { font-family: var(--font-cunei); font-weight: 400; }

/* Film grain over everything, extremely faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- Entrance / scroll reveals ---------- */

.fx {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s);
}
.fx.in { opacity: 1; transform: none; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 11, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: #140800;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-hot), #ff4d00 70%);
  box-shadow:
    0 0 18px rgba(255, 94, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
}

.nav-links { display: flex; gap: 6px; }

.nav-link {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-mid);
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover { color: var(--text-hi); background: rgba(255, 255, 255, 0.05); }

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

/* language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-mid);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.lang-toggle:hover {
  color: var(--text-hi);
  border-color: rgba(255, 94, 0, 0.45);
  background: rgba(255, 94, 0, 0.08);
}
.lang-icon { flex-shrink: 0; opacity: 0.85; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.35s ease,
    filter 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-sm { height: 40px; padding: 0 18px; border-radius: 10px; font-size: 14px; }

.btn-primary {
  color: #190b00;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff5e00 55%, #ff4400 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 30px -10px rgba(255, 94, 0, 0.65),
    0 0 46px -8px rgba(255, 94, 0, 0.4);
}
.btn-primary:hover {
  filter: brightness(1.08) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 38px -10px rgba(255, 94, 0, 0.8),
    0 0 70px -6px rgba(255, 94, 0, 0.55);
}
/* cursor-tracked sheen */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: overlay;
}
.btn-primary:hover::before { opacity: 1; }

.btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(255, 94, 0, 0.55);
  background: rgba(255, 94, 0, 0.08);
  box-shadow: 0 0 32px -8px rgba(255, 94, 0, 0.35);
}

.play-ring {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--orange-hot);
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
}
.btn-ghost:hover .play-ring {
  border-color: rgba(255, 94, 0, 0.7);
  transform: scale(1.1);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-0);
}

/* ambient washes: dawn glow on the horizon + cool vignette */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(58% 44% at 50% 112%, rgba(255, 84, 0, 0.16), transparent 70%),
    radial-gradient(40% 34% at 82% -8%, rgba(255, 122, 31, 0.07), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, #07070d 0%, var(--bg-0) 38%);
}

#cuneiform-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease 0.2s;
}
#cuneiform-canvas.is-ready { opacity: 1; }

.cursor-aura {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 620px;
  height: 620px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle closest-side, rgba(255, 94, 0, 0.085), transparent 70%);
  transition: transform 0.55s var(--ease-out), opacity 0.7s ease;
}

.hero-copy {
  position: relative;
  z-index: 3;
  margin: auto;
  width: 100%;
  max-width: 920px;
  padding: calc(var(--nav-h) + 56px) 24px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* faint scrim so copy stays crisp over glowing glyphs */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -8% -16%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(5, 5, 9, 0.5), transparent 78%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 94, 0, 0.32);
  background: rgba(255, 94, 0, 0.07);
  color: var(--orange-pale);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge-glyph { font-size: 12px; opacity: 0.9; }
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.55; }
}

.hero-title {
  margin-top: 30px;
  font-size: clamp(2.7rem, 6.6vw, 5.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-title .line { display: block; }

.ember {
  font-style: normal;
  background: linear-gradient(100deg, var(--orange-pale) 0%, #ff7a1f 45%, #ff4400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 94, 0, 0.4));
}
.ember-dot { color: var(--orange); }

.hero-sub {
  margin-top: 26px;
  max-width: 640px;
  font-size: clamp(1.02rem, 1.4vw, 1.17rem);
  line-height: 1.7;
  color: var(--text-mid);
  text-wrap: pretty;
}

.hero-ctas {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text-low);
}

/* ---------- Hero foot: trusted strip + scroll cue ---------- */

.hero-foot {
  position: relative;
  z-index: 3;
  padding: 8px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.trusted {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.trusted-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-low);
}

.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-list {
  display: flex;
  align-items: center;
  gap: 54px;
  padding-right: 54px;
}
.marquee-list li {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(244, 241, 236, 0.34);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.scroll-cue {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-low);
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: bob 2.8s ease-in-out infinite;
}
.scroll-cue:hover {
  color: var(--orange-hot);
  border-color: rgba(255, 94, 0, 0.5);
  box-shadow: 0 0 24px -6px rgba(255, 94, 0, 0.5);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- Features ---------- */

.features {
  position: relative;
  padding: 116px 24px 96px;
  background: linear-gradient(180deg, var(--bg-0), #08080f 60%, var(--bg-0));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.features-head,
.section-head {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--orange-hot);
}
.eyebrow, .features-title, .section-title { text-wrap: balance; }
.features-title,
.section-title {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.features-sub,
.section-sub {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--text-mid);
}

.cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 30px 28px 34px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 94, 0, 0.34);
  box-shadow: 0 24px 50px -28px rgba(255, 94, 0, 0.35);
}
/* cursor-tracked rim light */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 94, 0, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 21px;
  border-radius: 12px;
  color: var(--orange-hot);
  background: var(--orange-soft);
  border: 1px solid rgba(255, 94, 0, 0.25);
  text-shadow: 0 0 14px rgba(255, 94, 0, 0.7);
}
.card h3 {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 42ch;
}
.card-glyph {
  position: absolute;
  right: 14px;
  bottom: 2px;
  font-size: 74px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  transition: color 0.6s ease, filter 0.6s ease, transform 0.6s var(--ease-out);
  pointer-events: none;
}
.card:hover .card-glyph {
  color: rgba(255, 122, 31, 0.4);
  filter: drop-shadow(0 0 18px rgba(255, 94, 0, 0.65));
  transform: translateY(-4px) scale(1.04);
}

/* ---------- How it works (60/40) ---------- */

#features, #how, #pricing, #faq { scroll-margin-top: calc(var(--nav-h) + 10px); }

.how {
  position: relative;
  padding: 116px 24px 110px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.how-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 56px;
}
.how-steps { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
.how-visual { grid-column: 2; grid-row: 1; }

.step {
  position: relative;
  padding: 30px 30px 34px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
/* cursor-tracked rim light, shared with pricing tablets */
.step::before, .tier::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 94, 0, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.step:hover::before, .tier:hover::before { opacity: 1; }

.step-top { display: flex; align-items: center; gap: 14px; }
.step-num {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-low);
  transition: color 0.5s ease, border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}
.step-icon {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 20px;
  border-radius: 12px;
  color: var(--text-low);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: color 0.5s ease, border-color 0.5s ease, background 0.5s ease, text-shadow 0.5s ease;
}
.step h3 {
  margin-top: 20px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.5s ease;
}
.step p {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 52ch;
}

.step.active {
  border-color: rgba(255, 94, 0, 0.32);
  box-shadow: 0 18px 46px -30px rgba(255, 94, 0, 0.45);
}
.step.active .step-num {
  color: #190b00;
  background: linear-gradient(135deg, #ff8a3d, #ff5400);
  border-color: transparent;
  box-shadow: 0 0 18px -4px rgba(255, 94, 0, 0.6);
}
.step.active .step-icon {
  color: var(--orange-hot);
  background: var(--orange-soft);
  border-color: rgba(255, 94, 0, 0.3);
  text-shadow: 0 0 16px rgba(255, 94, 0, 0.75);
}

/* elegant down-pointing connectors */
.step-arrow {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}
.arrow-stem {
  width: 2px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16));
  transition: background 0.6s ease, box-shadow 0.6s ease;
}
.step-arrow svg {
  margin-top: -4px;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.6s ease, filter 0.6s ease, transform 0.6s var(--ease-out);
}
.step-arrow.lit .arrow-stem {
  background: linear-gradient(180deg, rgba(255, 94, 0, 0.05), var(--orange));
  box-shadow: 0 0 14px rgba(255, 94, 0, 0.45);
}
.step-arrow.lit svg {
  color: var(--orange-hot);
  filter: drop-shadow(0 0 8px rgba(255, 94, 0, 0.8));
  transform: translateY(3px);
}

/* — the sticky TAMKAR sigils — */

.sigil-stick {
  position: sticky;
  top: calc(var(--nav-h) + 44px);
  display: flex;
  justify-content: center;
  padding: 6px 0;
}
/* soft bloom behind the column */
.sigil-stick::before {
  content: "";
  position: absolute;
  inset: -50px -70px;
  background: radial-gradient(45% 42% at 50% 50%, rgba(255, 94, 0, 0.06), transparent 72%);
  pointer-events: none;
}

.sigil-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* progress rail threaded through the letter chips */
.sigil-stack::before,
.sigil-stack::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
}
.sigil-stack::before { background: rgba(255, 255, 255, 0.07); }
.sigil-stack::after {
  background: linear-gradient(180deg, var(--orange-hot), var(--orange));
  box-shadow: 0 0 12px rgba(255, 94, 0, 0.55);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

.sigil {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  transition: transform 0.5s var(--ease-out);
}
.sigil.on { transform: translateX(4px); }

.sigil-tag {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-low);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-0);
  transition: color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.sigil.on .sigil-tag {
  color: var(--orange-hot);
  border-color: rgba(255, 94, 0, 0.5);
  box-shadow: 0 0 14px -4px rgba(255, 94, 0, 0.7);
}

.sigil-glyph {
  position: relative;
  display: block;
  font-size: 56px;
  line-height: 1.2;
}
.g-dim { color: rgba(244, 241, 236, 0.07); }
.g-lit {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffc594, #ff7a1f 55%, #ff4d00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 94, 0, 0.7)) drop-shadow(0 0 34px rgba(255, 94, 0, 0.35));
  opacity: var(--lit, 0);
}

/* ---------- Pricing: digital clay tablets ---------- */

.pricing {
  position: relative;
  padding: 116px 24px 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(55% 36% at 50% 0%, rgba(255, 94, 0, 0.055), transparent 72%);
}

.tiers {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 680px)  { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tiers { grid-template-columns: repeat(4, 1fr); } }

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  /* faint inscribed ridges over dark grey — a digital clay tablet */
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.013) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #14141d, #0d0d15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.5s var(--ease-out);
}
.tier:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 94, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 94, 0, 0.25),
    0 22px 54px -26px rgba(255, 94, 0, 0.5),
    0 0 44px -10px rgba(255, 94, 0, 0.3);
}

.tier-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 19px;
  border-radius: 11px;
  color: var(--orange-hot);
  background: var(--orange-soft);
  border: 1px solid rgba(255, 94, 0, 0.25);
  text-shadow: 0 0 13px rgba(255, 94, 0, 0.7);
}
.tier-name { margin-top: 16px; font-size: 20px; font-weight: 600; }
.tier-tag {
  margin-top: 4px;
  min-height: 40px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-low);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price-unit { display: flex; flex-direction: column; line-height: 1.2; }
.price-unit b {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--orange-hot);
}
.price-unit i { font-style: normal; font-size: 11.5px; color: var(--text-low); }

.tier-feats { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.tier-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.8px;
  line-height: 1.5;
  color: var(--text-mid);
}
.tick {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--orange);
  text-shadow: 0 0 8px rgba(255, 94, 0, 0.6);
}

.btn-tier {
  margin-top: 22px;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  font-size: 14.5px;
}

/* Nabu — the ultimate tablet, with a standing aura */
.tier-nabu {
  border-color: rgba(255, 94, 0, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 94, 0, 0.22),
    0 24px 70px -30px rgba(255, 94, 0, 0.55),
    0 0 70px -16px rgba(255, 94, 0, 0.4);
}
.tier-nabu .tier-glyph {
  color: #190b00;
  background: linear-gradient(135deg, #ff8a3d, #ff4d00);
  border-color: transparent;
  text-shadow: none;
  box-shadow: 0 0 20px -4px rgba(255, 94, 0, 0.7);
}
.tier-flag {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #ffd9b8;
  border: 1px solid rgba(255, 94, 0, 0.45);
  background: rgba(255, 94, 0, 0.13);
  box-shadow: 0 0 18px -6px rgba(255, 94, 0, 0.6);
}

.pricing-note {
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-low);
}

/* ---------- FAQ accordion ---------- */

.faq {
  padding: 110px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.faq-item.open {
  border-color: rgba(255, 94, 0, 0.38);
  box-shadow: 0 14px 40px -26px rgba(255, 94, 0, 0.45);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 0.3s ease;
}
.faq-q:hover { color: var(--orange-pale); }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: transform 0.45s var(--ease-out);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--text-low);
  transition: background 0.3s ease;
}
.faq-icon::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq-icon::after  { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--orange-hot); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-inner p {
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 64ch;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(255, 94, 0, 0.035));
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 28px 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-low);
}
.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-low);
}
.f-link {
  display: block;
  padding: 5px 0;
  text-align: left;
  font-size: 14.5px;
  color: var(--text-mid);
  transition: color 0.25s ease, transform 0.3s var(--ease-out);
}
.f-link:hover { color: var(--orange-pale); transform: translateX(3px); }

.footer-base {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  color: var(--text-low);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal .f-link { padding: 0; font-size: 13.5px; }
.footer-glyph { color: var(--orange); margin-right: 4px; }

.footer-disclaimer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 28px 30px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text-hi);
  opacity: 0.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 18px; gap: 14px; }

  .hero-copy { padding-top: calc(var(--nav-h) + 30px); }
  .hero-title { margin-top: 24px; }
  .hero-sub { margin-top: 20px; }
  .hero-ctas { margin-top: 30px; }

  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: min(100%, 360px); }

  .trusted { flex-direction: column; gap: 16px; }

  .card-glyph { font-size: 62px; }

  /* how-it-works collapses: sigils become a horizontal band above the steps */
  .how-grid { grid-template-columns: 1fr; gap: 34px; }
  .how-visual { grid-column: 1; grid-row: 1; }
  .how-steps { grid-column: 1; grid-row: 2; }
  .sigil-stick { position: static; }
  .sigil-stack { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .sigil-stack::before, .sigil-stack::after { display: none; }
  .sigil { flex-direction: column-reverse; gap: 9px; }
  .sigil.on { transform: translateY(-3px); }
  .sigil-glyph { font-size: 30px; line-height: 1.25; }
  .sigil-tag { width: 22px; height: 22px; font-size: 10px; border-radius: 7px; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fx {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track { animation: none; }
  .scroll-cue { animation: none; }
  .badge-dot { animation: none; }
  .cursor-aura { display: none; }
  .btn, .card, .card-glyph, .btn-arrow, .play-ring,
  .tier, .step, .sigil, .sigil-tag, .step-arrow svg, .arrow-stem,
  .f-link, .faq-icon { transition-duration: 0.01s; }
  .faq-a { transition: none; }
  .tier:hover, .f-link:hover { transform: none; }
  #cuneiform-canvas { transition: opacity 0.4s ease; }
}

/* ============================================================
   Arabic / RTL
   Swaps to Arabic webfonts and mirrors the handful of rules
   that bake in a left-to-right direction. Cuneiform glyphs are
   left untouched (they read the same in both directions).
   ============================================================ */

[dir="rtl"] {
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, sans-serif;
}

/* Latin letter-spacing breaks connected Arabic shaping — reset it
   on the text that becomes Arabic. The marquee keeps Latin logos. */
[dir="rtl"] .brand-word,
[dir="rtl"] .nav-link,
[dir="rtl"] .lang-toggle,
[dir="rtl"] .btn,
[dir="rtl"] .badge,
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-note,
[dir="rtl"] .trusted-label,
[dir="rtl"] .eyebrow,
[dir="rtl"] .features-title,
[dir="rtl"] .section-title,
[dir="rtl"] .step-num,
[dir="rtl"] .tier-name,
[dir="rtl"] .tier-flag,
[dir="rtl"] .price-unit b,
[dir="rtl"] .faq-q,
[dir="rtl"] .footer-col h4 {
  letter-spacing: normal;
}

/* Arabic ascenders need more leading than the tight Latin display
   line-height, or the two hero lines collide. LTR is left untouched. */
[dir="rtl"] .hero-title { line-height: 1.22; }

/* nav: pin the brand to the start (right) edge */
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }

/* the step header icon floats to the end (left) edge */
[dir="rtl"] .step-icon { margin-left: 0; margin-right: auto; }

/* left-aligned text blocks flip to the right */
[dir="rtl"] .faq-q,
[dir="rtl"] .f-link { text-align: right; }
[dir="rtl"] .f-link:hover { transform: translateX(-3px); }

/* decorative watermark glyph moves to the start (left) corner */
[dir="rtl"] .card-glyph { right: auto; left: 14px; }

/* the "ULTIMATE" flag sits in the start (left) corner */
[dir="rtl"] .tier-flag { right: auto; left: 16px; }

/* the how-it-works progress rail threads the chips on the right */
[dir="rtl"] .sigil-stack::before,
[dir="rtl"] .sigil-stack::after { left: auto; right: 13px; margin-left: 0; margin-right: -1px; }
[dir="rtl"] .sigil.on { transform: translateX(-4px); }

/* the footer copyright glyph spacing */
[dir="rtl"] .footer-glyph { margin-right: 0; margin-left: 4px; }

/* the CTA arrow points toward the reading direction (left) */
[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn-primary:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }

@media (max-width: 880px) {
  /* on mobile the sigils sit in a row again — keep the small lift */
  [dir="rtl"] .sigil.on { transform: translateY(-3px); }
}
