/* ============================================================
   TatbeeqSoft — brand palette
   Cool porcelain paper, near-black ink, brand cyan (#00a8e4)
   Type: Sora (display) · Plus Jakarta Sans (body) · IBM Plex Mono (spec)
   ============================================================ */

:root {
  --paper:      #eef1f4;
  --paper-2:    #e3e7ec;
  --ink:        #15181d;
  --ink-2:      #0d0f13;
  --navy-line:  rgba(224, 236, 245, 0.14);
  --accent:     #00a8e4;
  --accent-2:   #0093cc;
  --accent-ink: #0a6f9e;
  --muted:      #5a616e;
  --muted-light:rgba(224, 236, 245, 0.62);
  --line:       rgba(21, 24, 29, 0.14);
  --line-soft:  rgba(21, 24, 29, 0.08);
  --card:       #ffffff;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --pad:  clamp(1.25rem, 4vw, 3rem);
  --r:    14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.03; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.eyebrow-light { color: var(--accent); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,168,228,0.2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem; letter-spacing: 0.03em; font-weight: 500;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  border: 1.5px solid transparent; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-solid { background: var(--accent); color: var(--ink); font-weight: 600; }
.btn-solid:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-size: clamp(2rem, 5vw, 3.4rem); }
.section-sub { margin-top: 1.1rem; font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(238, 241, 244, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-logo { display: block; height: 42px; width: 160px; background: url(../assets/logo.png) center left / contain no-repeat; }

.nav { display: flex; gap: 2rem; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em; }
.nav a { color: var(--muted); transition: color 0.2s; position: relative; padding: 0.3rem 0; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--accent); transition: width 0.25s var(--ease); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

/* language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; font-weight: 500;
  color: var(--ink); background: transparent; border: 1.5px solid var(--line);
  padding: 0.5rem 0.8rem; border-radius: 999px; transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn svg:first-child { opacity: 0.7; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 80;
  min-width: 150px; list-style: none; padding: 0.4rem; margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 44px -20px rgba(16,24,38,0.5);
}
.lang-menu li {
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink);
  padding: 0.6rem 0.8rem; border-radius: 8px; cursor: pointer; transition: background 0.15s;
  display: flex; align-items: center; justify-content: space-between;
}
.lang-menu li:hover { background: var(--paper-2); }
.lang-menu li[aria-selected="true"] { color: var(--accent-ink); font-weight: 600; }
.lang-menu li[aria-selected="true"]::after { content: "●"; font-size: 0.6rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 0.4rem; padding: 1rem var(--pad) 1.6rem; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.mobile-nav a { font-family: var(--font-mono); font-size: 0.95rem; padding: 0.7rem 0; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mobile-nav a.btn { border: 1.5px solid transparent; justify-content: center; margin-top: 0.6rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(56% 70% at 84% 62%, rgba(0,168,228,0.14), transparent 62%),
    radial-gradient(44% 58% at 6% 8%, rgba(0,168,228,0.11), transparent 60%),
    linear-gradient(180deg, #0b0e13 0%, var(--ink) 52%, #0a0d12 100%);
  color: var(--paper);
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,168,228,0.55), transparent);
  opacity: 0.7; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  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'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.55;
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(110% 90% at 50% 0%, #000 30%, transparent 92%);
  -webkit-mask-image: radial-gradient(110% 90% at 50% 0%, #000 30%, transparent 92%);
  pointer-events: none;
}
.tick { position: absolute; width: 16px; height: 16px; pointer-events: none; opacity: 0.6; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--accent); }
.tick::before { width: 100%; height: 1.5px; top: 50%; transform: translateY(-50%); }
.tick::after { height: 100%; width: 1.5px; left: 50%; transform: translateX(-50%); }
.tick-tl { top: 24px; left: 24px; } .tick-tr { top: 24px; right: 24px; }
.tick-bl { bottom: 24px; left: 24px; } .tick-br { bottom: 24px; right: 24px; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.14fr 0.86fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  row-gap: clamp(3rem, 6vw, 4.5rem);
}
.hero-copy { max-width: 660px; position: relative; }

.hero .eyebrow {
  border: 1px solid rgba(0,168,228,0.32);
  background: rgba(0,168,228,0.08);
  padding: 0.5rem 1rem; border-radius: 999px;
  color: #7fd6f7; font-size: 0.68rem; letter-spacing: 0.16em;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.8rem, 4.55vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 1.3rem 0 0;
}
.hero-title .hl {
  position: relative; color: var(--accent);
  background: linear-gradient(94deg, #35c3f0 0%, var(--accent) 45%, #7ee0ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hl-underline {
  position: absolute; left: 0; right: 0; bottom: 0.045em; height: 0.075em; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), rgba(0,168,228,0.15));
  box-shadow: 0 0 18px rgba(0,168,228,0.7);
  transform: scaleX(0); transform-origin: left;
  animation: underline 0.9s var(--ease) 0.6s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero-lede { margin-top: 1.7rem; font-size: clamp(1.08rem, 1.8vw, 1.32rem); line-height: 1.7; color: rgba(237,241,244,0.72); max-width: 56ch; }
.hero-lede em { font-style: normal; color: var(--paper); font-family: var(--font-mono); font-size: 0.92em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero .btn-lg { padding: 1.05rem 1.8rem; font-size: 0.92rem; border-radius: 14px; }
.hero .btn-solid {
  background: linear-gradient(135deg, #21b9ec, #0093cc);
  color: #04121b; font-weight: 700;
  box-shadow: 0 14px 36px -12px rgba(0,168,228,0.6), inset 0 1px 0 rgba(255,255,255,0.28);
}
.hero .btn-solid::after { content: "→"; font-weight: 600; transition: transform 0.25s var(--ease); }
.hero .btn-solid:hover { background: linear-gradient(135deg, #3fc6f2, #00a8e4); }
.hero .btn-solid:hover::after { transform: translateX(3px); }
[dir="rtl"] .hero .btn-solid::after { content: "←"; }
[dir="rtl"] .hero .btn-solid:hover::after { transform: translateX(-3px); }
.hero .btn-ghost {
  color: var(--paper); border-color: rgba(237,241,244,0.28);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(4px); border-radius: 14px;
}
.hero .btn-ghost:hover { border-color: rgba(237,241,244,0.6); background: rgba(255,255,255,0.07); }

.hero-spec {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.2rem;
  border: 1px solid rgba(237,241,244,0.09);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  border-radius: 18px; overflow: hidden;
  opacity: 0; animation: riseIn 0.9s var(--ease) 0.8s both;
}
.hero-spec > div { padding: 1.3rem 1.6rem; position: relative; }
.hero-spec > div + div::before { content: ""; position: absolute; inset-inline-start: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(237,241,244,0.1); }
.hero-spec dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: #6fcdf0; }
.hero-spec dd { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-top: 0.4rem; color: var(--paper); }

/* ---- hero: animated app dashboard ---- */
.hero-app {
  position: relative; z-index: 2;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(14,18,24,0.94), rgba(10,14,19,0.97)) padding-box,
    linear-gradient(160deg, rgba(0,168,228,0.6), rgba(0,168,228,0.06) 38%, rgba(255,255,255,0.1) 82%) border-box;
  box-shadow:
    0 60px 120px -50px rgba(0,0,0,0.85),
    0 30px 80px -30px rgba(0,168,228,0.2);
}
.hero-app::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -46px; height: 70px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0,168,228,0.28), transparent 75%);
  filter: blur(10px); z-index: -1; pointer-events: none;
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 0.8rem 1.05rem; border-bottom: 1px solid rgba(237,241,244,0.07); background: rgba(255,255,255,0.03); border-radius: 20px 20px 0 0; }
.app-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4356; }
.app-dot:nth-child(1) { background: #ff5f57; }
.app-dot:nth-child(2) { background: #febc2e; }
.app-dot:nth-child(3) { background: #28c840; }
.app-url { margin-inline-start: auto; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--muted-light); background: rgba(255,255,255,0.05); border: 1px solid rgba(237,241,244,0.07); padding: 0.28rem 0.75rem; border-radius: 999px; }

.app-body { padding: 1.35rem 1.45rem 1.6rem; }
.app-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.app-avatar { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #5fd0f5); box-shadow: 0 4px 14px -4px rgba(0,168,228,0.7); flex: 0 0 auto; }
.app-heading { flex: 1; height: 9px; border-radius: 5px; background: rgba(237,241,244,0.16); max-width: 150px; }
.app-cta { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; color: #04121b; background: linear-gradient(135deg, #21b9ec, #0093cc); padding: 0.42rem 0.85rem; border-radius: 8px; box-shadow: 0 6px 16px -6px rgba(0,168,228,0.7); }

.app-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.3rem; }
.app-tile { background: rgba(255,255,255,0.035); border: 1px solid rgba(237,241,244,0.08); border-radius: 12px; padding: 0.85rem 0.9rem; }
.tile-k { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 0.45rem; white-space: nowrap; }
.tile-v { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--paper); }
.tile-d { display: block; margin-top: 0.35rem; font-family: var(--font-mono); font-style: normal; font-size: 0.6rem; letter-spacing: 0.04em; white-space: nowrap; }
.tile-d.up { color: #3ddc97; }
.tile-d.down { color: #7fd6f7; }

.app-chart { position: relative; height: 150px; }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 0.5rem; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; transform-origin: bottom; background: linear-gradient(180deg, rgba(0,168,228,0.5), rgba(0,168,228,0.05)); animation: barGrow 0.85s var(--ease) both; }
.bars span:nth-child(1) { animation-delay: 0.7s; } .bars span:nth-child(2) { animation-delay: 0.78s; }
.bars span:nth-child(3) { animation-delay: 0.86s; } .bars span:nth-child(4) { animation-delay: 0.94s; }
.bars span:nth-child(5) { animation-delay: 1.02s; } .bars span:nth-child(6) { animation-delay: 1.1s; }
.bars span:nth-child(7) { animation-delay: 1.18s; } .bars span:nth-child(8) { animation-delay: 1.26s; }
.bars span:nth-child(8) { background: linear-gradient(180deg, var(--accent), rgba(0,168,228,0.3)); box-shadow: 0 0 18px rgba(0,168,228,0.35); }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.app-spark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spark-area { opacity: 0; animation: sparkFade 0.9s ease 1.7s forwards; }
.spark-line { fill: none; stroke: #bfeaff; stroke-width: 2.4; opacity: 0.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(0,168,228,0.55)); stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.6s var(--ease) 0.9s forwards; }
.spark-dot { fill: #eaf9ff; stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(0,168,228,0.95)); opacity: 0; animation: dotIn 0.4s ease 2.4s forwards, dotPulse 2.4s ease-in-out 2.8s infinite; }
@keyframes sparkFade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dotIn { to { opacity: 1; } }
@keyframes dotPulse { 0%, 100% { r: 3.5px; } 50% { r: 5px; } }

.app-toast {
  position: absolute; inset-inline-start: -20px; bottom: 38px; z-index: 4;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; color: #dff4ff;
  background: rgba(13,20,26,0.94);
  border: 1px solid rgba(61,220,151,0.35);
  border-radius: 12px; padding: 0.6rem 0.9rem;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.75);
  opacity: 0; animation: toastIn 0.6s var(--ease) 2.4s forwards;
}
.app-toast i { font-style: normal; color: #3ddc97; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.app-chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.66rem; color: #cfeeff;
  background: rgba(13,20,26,0.88); backdrop-filter: blur(6px);
  border: 1px solid rgba(0,168,228,0.3); border-radius: 999px; padding: 0.55rem 0.9rem;
  box-shadow: 0 16px 36px -14px rgba(0,0,0,0.65);
}
.app-chip i { font-style: normal; color: #3ddc97; margin-inline-end: 0.45rem; }
.app-chip b { color: #7fd6f7; font-weight: 600; }
.chip-a { top: -16px; right: 20%; animation: chipFloat 7s ease-in-out infinite; }
.chip-b { top: 57%; left: -34px; animation: chipFloat 8.5s ease-in-out 1s infinite; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.app-phone {
  position: absolute; right: -20px; bottom: -28px; width: 96px; height: 192px; border-radius: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(#0b1016, #0b1016) padding-box,
    linear-gradient(150deg, rgba(0,168,228,0.7), rgba(255,255,255,0.08) 60%) border-box;
  box-shadow: 0 36px 64px -22px rgba(0,0,0,0.85);
  padding: 9px; z-index: 5;
  animation: phoneBob 9s ease-in-out 1.5s infinite;
}
@keyframes phoneBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.phone-notch { display: block; width: 28px; height: 4px; border-radius: 3px; background: #2a3446; margin: 3px auto 8px; }
.phone-screen { background: rgba(255,255,255,0.03); border-radius: 15px; height: calc(100% - 17px); padding: 11px 10px; display: flex; flex-direction: column; gap: 8px; }
.p-bar { height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #5fd0f5); box-shadow: 0 4px 12px -4px rgba(0,168,228,0.7); }
.p-row { height: 8px; border-radius: 4px; background: rgba(237,241,244,0.15); }
.p-row.short { width: 58%; }
.p-cta { margin-top: auto; height: 20px; border-radius: 7px; background: linear-gradient(135deg, #21b9ec, #0093cc); }

/* ---- hero: floating nodes + drifting grid ---- */
.hero-nodes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-nodes i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.5; box-shadow: 0 0 12px 2px rgba(0,168,228,0.5); }
.hero-nodes i:nth-child(1) { left: 12%; top: 32%; animation: floaty 7s ease-in-out infinite; }
.hero-nodes i:nth-child(2) { left: 26%; top: 72%; width: 4px; height: 4px; animation: floaty 9s ease-in-out infinite 0.5s; }
.hero-nodes i:nth-child(3) { left: 63%; top: 20%; width: 5px; height: 5px; background: var(--paper); box-shadow: none; opacity: 0.32; animation: floaty 8s ease-in-out infinite 1s; }
.hero-nodes i:nth-child(4) { left: 84%; top: 62%; animation: floaty 10s ease-in-out infinite; }
.hero-nodes i:nth-child(5) { left: 45%; top: 12%; width: 4px; height: 4px; animation: floaty 6.5s ease-in-out infinite 0.8s; }
.hero-nodes i:nth-child(6) { left: 92%; top: 30%; width: 4px; height: 4px; background: var(--paper); box-shadow: none; opacity: 0.28; animation: floaty 11s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

.hero-grid { animation: gridDrift 40s linear infinite; }
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 56px 56px, 56px 56px; } }

/* ---- hero: staggered entrance ---- */
.hero-copy > * { opacity: 0; animation: riseIn 0.8s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.10s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.34s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.46s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.58s; }
.hero-app { opacity: 0; animation: riseIn 0.9s var(--ease) 0.55s both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { background: var(--ink-2); color: var(--paper); overflow: hidden; padding: 1.1rem 0; border-block: 1px solid rgba(255,255,255,0.06); }
.marquee-track {
  display: flex; align-items: center; gap: 2.5rem; width: max-content;
  font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.04em;
  color: var(--muted-light);
  animation: marquee 32s linear infinite;
}
.marquee-track span { white-space: nowrap; }
.marquee-track .mq-sep { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 90%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; position: relative; z-index: 1; }
.stat {
  background: rgba(255,255,255,0.03); border: 1px solid var(--navy-line);
  border-radius: var(--r); padding: 1.8rem 1.6rem 1.7rem; text-align: left; position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.stat::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 3px; background: var(--accent); border-radius: 0 0 3px 0; }
.stat:hover { transform: translateY(-4px); border-color: rgba(0,168,228,0.5); background: rgba(0,168,228,0.06); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.7rem, 6vw, 4.2rem); letter-spacing: -0.04em; line-height: 1; color: var(--paper); }
.stat-label { display: block; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cap-card { background: var(--card); padding: clamp(1.8rem, 3vw, 2.6rem); transition: background 0.3s, transform 0.3s var(--ease); position: relative; }
.cap-card:hover { background: var(--ink); color: var(--paper); }
.cap-index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-ink); letter-spacing: 0.1em; }
.cap-card:hover .cap-index { color: var(--accent); }
.cap-card h3 { font-size: 1.4rem; margin: 1.2rem 0 0.7rem; }
.cap-card p { color: var(--muted); font-size: 0.98rem; }
.cap-card:hover p { color: var(--muted-light); }

/* ============================================================
   WORK
   ============================================================ */
.work-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--line);
  color: var(--muted); transition: all 0.2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.work-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.6rem 1.6rem 1.8rem;
  min-height: 200px; display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}
.work-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0; transition: opacity 0.3s;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(16,24,38,0.5); }
.work-card:hover::before { opacity: 1; }
.work-visual { display: block; color: var(--muted); opacity: 0.55; margin-bottom: 1.1rem; position: relative; z-index: 1; transition: color 0.3s, opacity 0.3s; }
.work-visual svg { width: 52px; height: 34px; }
.work-card:hover .work-visual { color: var(--accent-ink); opacity: 1; }
.work-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.7rem; position: relative; z-index: 1; }
.work-card h3 { font-size: 1.5rem; margin: auto 0 0.5rem; padding-top: 1.2rem; position: relative; z-index: 1; }
.work-card p { color: var(--muted); font-size: 0.95rem; position: relative; z-index: 1; }
.work-card.feature { grid-column: span 2; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.work-card.feature h3 { font-size: 2rem; }
.work-card.feature p { color: var(--muted-light); }
.work-card.feature .work-tag { color: var(--accent); border-color: var(--navy-line); }
.work-card.feature::before { background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px); }
.work-card.feature .work-visual { color: var(--muted-light); }
.work-card.feature:hover .work-visual { color: var(--accent); }
.work-card.is-hidden { display: none; }

/* ============================================================
   CASE STUDIES — live previews of shipped projects
   ============================================================ */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.case-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 24px 50px -28px rgba(16,24,38,0.55); }

/* 14/10, not 16/10: the page inside is authored at 1400×1000, so a frame of the
   same ratio shows all of it — no dead strip beside it, nothing cropped off the
   bottom. --shot-scale is set per card by js/showcase.js from the card's real
   width, because a fixed scale cannot fit a fluid column at every viewport. */
.case-frame {
  position: relative; display: block; aspect-ratio: 14 / 10; overflow: hidden;
  background: var(--ink); border-bottom: 1px solid var(--line);
}
/* The iframe renders the real site at desktop width, then scales down like a
   screenshot — so the preview can never drift out of date. */
.case-frame iframe {
  position: absolute; top: 0; inset-inline-start: 0;
  width: 1400px; height: 1000px; border: 0;
  transform: scale(var(--shot-scale, 0.385)); transform-origin: top left;
  pointer-events: none;
}
[dir="rtl"] .case-frame iframe { inset-inline-start: auto; right: 0; transform-origin: top right; }
.case-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  background: linear-gradient(180deg, transparent 60%, rgba(10,14,19,0.16));
}
.case-open {
  position: absolute; z-index: 2; inset-block-start: 12px; inset-inline-end: 12px;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(13,20,26,0.82); color: #eaf9ff; border-radius: 8px;
  font-size: 14px; backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s;
}
.case-card:hover .case-open, .case-frame:focus-visible .case-open { opacity: 1; }

.case-meta { padding: 1.4rem 1.5rem 1.6rem; }
.case-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.26rem 0.7rem; margin-bottom: 0.85rem;
}
.case-meta h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.case-meta p { color: var(--muted); font-size: 0.96rem; }
.case-stack {
  margin-top: 0.9rem !important; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; color: var(--accent-ink) !important;
}

.build-heading {
  font-size: 1.05rem; font-family: var(--font-mono); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.3rem;
}

@media (max-width: 820px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-frame iframe { transform: scale(0.44); }
}

/* ============================================================
   SHOWCASE GALLERY — products we built ourselves to show capability

   Same live-iframe trick as the case studies above, three across instead of
   two. These are our own products, so the tag says so plainly: passing one
   off as client work is the one thing this section must never do.
   ============================================================ */
.sc-intro {
  color: var(--muted); font-size: 0.97rem; max-width: 68ch;
  margin: -0.5rem 0 1.5rem;
}
/* Two across, matching the case studies above. Three across put a dense
   dashboard at 0.26 scale, where 14px body text lands on ~3.6 physical pixels
   and the whole thumbnail reads as noise. Two across clears 0.4 and the
   numbers in a KPI tile are legible. Length is handled by collapsing to the
   first six rather than by shrinking every card. */
.sc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
  margin-bottom: 1.6rem;
}
.sc-grid.is-collapsed .sc-card:nth-child(n + 7) { display: none; }
.sc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease),
              box-shadow 0.3s, border-color 0.3s;
}
.sc-card.is-in { opacity: 1; transform: none; }
.sc-card:hover { border-color: var(--ink); box-shadow: 0 22px 44px -28px rgba(16,24,38,0.5); }

.sc-frame {
  position: relative; display: block; aspect-ratio: 14 / 10; overflow: hidden;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
}
/* Renders the real page at desktop width, then scales it down like a
   screenshot — so the thumbnail is always the current build. */
.sc-frame iframe {
  position: absolute; top: 0; inset-inline-start: 0;
  width: 1400px; height: 1000px; border: 0;
  transform: scale(var(--shot-scale, 0.41)); transform-origin: top left;
  pointer-events: none;
}
[dir="rtl"] .sc-frame iframe { inset-inline-start: auto; right: 0; transform-origin: top right; }
.sc-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.07);
  background: linear-gradient(180deg, transparent 62%, rgba(10,14,19,0.2));
}
.sc-open {
  position: absolute; z-index: 2; inset-block-end: 10px; inset-inline-end: 10px;
  background: rgba(13,20,26,0.88); color: #eaf9ff; border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  padding: 0.34rem 0.62rem; backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s;
}
.sc-card:hover .sc-open,
.sc-frame:focus-visible .sc-open { opacity: 1; transform: none; }

.sc-meta { padding: 1.05rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.sc-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.22rem 0.6rem; margin-bottom: 0.7rem;
}
.sc-meta h4 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 1.16rem; line-height: 1.15; margin-bottom: 0.4rem;
}
.sc-meta p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.sc-stack {
  margin-top: auto; padding-top: 0.85rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em;
  color: var(--accent-ink) !important;
}

/* The scale is computed from the card's own width, so the columns are the only
   thing a breakpoint needs to change. */
@media (max-width: 820px) {
  .sc-grid { grid-template-columns: 1fr; }
}

/* "Show all" — the collapsed grid hides 11 of 17, and hidden iframes never
   fetch, so the page loads six previews instead of seventeen. */
.sc-more-wrap { display: flex; justify-content: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.sc-more {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.8rem 1.6rem; font-family: var(--font-body); font-size: 0.94rem; font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.sc-more:hover { border-color: var(--ink); transform: translateY(-2px); }
.sc-more::after {
  content: "↓"; font-size: 0.9rem; transition: transform 0.2s;
}
.sc-grid:not(.is-collapsed) + .sc-more-wrap .sc-more::after { transform: rotate(180deg); }

/* ============================================================
   PRICING BAND (homepage summary)

   The number is the point of this section, so the number is the largest thing
   in it. Set like a printed price list — two balanced columns, hairline rows,
   figures right-aligned on tabular numerals — rather than like a pricing page
   full of sales cards. Figures carry data-usd and are rewritten in the
   visitor's currency by js/currency.js.
   ============================================================ */
.price-band { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.price-band .section-title { text-wrap: balance; }

.pb-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  margin-bottom: 1.9rem; align-items: stretch;
}
.pb-col {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.6rem 1.3rem; display: flex; flex-direction: column;
}
.pb-h {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--ink);
}
.pb-h::after {
  content: ""; flex: 1; height: 0; /* keeps the label left, rule full width */
}

.pb-list { list-style: none; padding: 0; margin: 0; }
.pb-list li {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 0.82rem 0.15rem; border-bottom: 1px solid var(--line-soft);
  transition: padding-inline 0.18s var(--ease);
}
.pb-list li:last-child { border-bottom: 0; }
.pb-list li:hover { padding-inline-start: 0.45rem; }
.pb-n { font-size: 1rem; font-weight: 500; line-height: 1.3; }
/* The figure is the largest type in the section — that is the whole job. */
.pb-v {
  margin-inline-start: auto; white-space: nowrap;
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.pb-v em {
  font-style: normal; font-family: var(--font-body); font-size: 0.74rem;
  font-weight: 400; color: var(--muted); margin-inline-end: 0.25rem;
  letter-spacing: 0;
}
/* margin-top:auto pins both notes to the bottom, so a 4-row column and a
   6-row column still end level instead of one trailing a dead gap. */
.pb-foot {
  margin-top: auto; padding-top: 1.1rem;
  font-size: 0.84rem; line-height: 1.55; color: var(--muted);
}

.pb-assure {
  list-style: none; padding: 1.5rem 0 0; margin: 0 0 1.6rem;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.pb-assure li { display: flex; flex-direction: column; gap: 0.35rem; }
.pb-assure b {
  font-size: 1rem; font-weight: 650; display: flex; align-items: center; gap: 0.55rem;
}
.pb-assure b::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.pb-assure span { font-size: 0.89rem; line-height: 1.6; color: var(--muted); }

.pb-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pb-cta .cur-note {
  margin: 0; margin-inline-start: auto; font-size: 0.78rem; color: var(--muted);
}

@media (max-width: 900px) {
  .pb-grid { grid-template-columns: 1fr; }
  .pb-assure { grid-template-columns: 1fr; gap: 1.1rem; padding-top: 1.2rem; }
  .pb-cta .cur-note { margin-inline-start: 0; }
}

/* ============================================================
   CLIENT FEEDBACK

   Rendered from assets/testimonials.json by js/testimonials.js. The whole
   section carries `hidden` in the markup and is only revealed once there is
   real feedback to show — see that file for why.
   ============================================================ */
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.voice {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.4rem 1.3rem; margin: 0;
  display: flex; flex-direction: column; position: relative;
}
.voice::before {
  content: "\201C"; position: absolute; inset-block-start: 0.4rem; inset-inline-start: 1.1rem;
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
  color: var(--accent); opacity: 0.18;
}
.voice blockquote {
  margin: 0 0 1.2rem; font-size: 1.02rem; line-height: 1.62; position: relative;
}
.voice figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.voice-av {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
}
.voice-who b { display: block; font-size: 0.92rem; font-weight: 650; }
.voice-who span { display: block; font-size: 0.79rem; color: var(--muted); }
.voice-project {
  margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em;
  color: var(--accent-ink);
}
@media (max-width: 1080px) { .voices-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .voices-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHAT WE BUILD (work grid)
   ============================================================ */
.build-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.build-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.build-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(16,24,38,0.5); }
.build-thumb {
  position: relative; aspect-ratio: 16 / 10; background: var(--ink);
  display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line);
}
.build-thumb::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5;
}
.build-thumb svg { width: 78%; height: 78%; position: relative; z-index: 1; color: rgba(237,234,225,0.5); transition: color 0.3s; }
.build-thumb img { width: 100%; height: 100%; object-fit: cover; }
.build-thumb .ac { fill: var(--accent); }
.build-thumb .ac-s { stroke: var(--accent); fill: none; }
.build-card:hover .build-thumb svg { color: rgba(237,234,225,0.72); }
.build-card h3 { font-size: 1.14rem; margin: 1.1rem 1.15rem 0.45rem; }
.build-card p { color: var(--muted); font-size: 0.92rem; margin: 0 1.15rem 1.25rem; }

/* ============================================================
   GLOBAL DELIVERY
   ============================================================ */
.global { background: var(--paper-2); }
.global-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.regions { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.regions li { display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.region-code { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; color: var(--paper); background: var(--ink); border-radius: 7px; width: 40px; height: 30px; display: grid; place-items: center; letter-spacing: 0.02em; }
.region-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.region-tz { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--muted); }
.region-more .region-code { background: var(--accent); }
.region-more .region-name { color: var(--muted); }

.assurances { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.assurances li { background: var(--card); padding: clamp(1.3rem, 2.4vw, 1.9rem); }
.assurances h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.assurances p { color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   PROCESS  (dark)
   ============================================================ */
.process { background: var(--ink); color: var(--paper); }
.process .section-title { color: var(--paper); }
.process-list { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--navy-line); }
.process-list li { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 4vw, 3rem); padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--navy-line); align-items: baseline; }
.process-num { font-family: var(--font-mono); font-size: 1rem; color: var(--accent); letter-spacing: 0.1em; }
.process-list h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.process-list p { color: var(--muted-light); margin-top: 0.6rem; max-width: 62ch; }

/* ============================================================
   STUDIO
   ============================================================ */
.studio-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.studio-copy p { color: var(--muted); margin-top: 1.1rem; font-size: 1.05rem; }
.studio-copy .btn { margin-top: 1.8rem; }
.studio-facts { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.studio-facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact-k { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact-v { font-family: var(--font-display); font-weight: 600; text-align: right; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper-2); }
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0.2rem; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--ink); transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-mark { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.faq-mark::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-mark::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; }
.faq-item[open] .faq-a { animation: faqOpen 0.35s var(--ease); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-a p { color: var(--muted); font-size: 1.02rem; max-width: 70ch; padding: 0 0.2rem 1.6rem; margin-top: -0.2rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: var(--paper); }
.contact .section-title { color: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact-copy > p { color: var(--muted-light); margin-top: 1.1rem; font-size: 1.08rem; max-width: 45ch; }
.contact-links { list-style: none; padding: 0; margin-top: 2.4rem; }
.contact-links li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--navy-line); align-items: center; }
.contact-links li:last-child { border-bottom: 1px solid var(--navy-line); }
.contact-k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); }
.contact-v { display: inline-flex; align-items: center; gap: 0.6rem; }
.contact-links a { color: var(--paper); border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.contact-links a:hover { color: var(--accent); border-color: var(--accent); }

.estimate { background: var(--card); color: var(--ink); border-radius: var(--r); padding: clamp(1.8rem, 3vw, 2.6rem); }
.form-eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.85rem 1rem; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6270' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa0ab; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,168,228,0.15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d64545; }
.estimate .btn { margin-top: 0.4rem; }
.form-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-note a { color: var(--accent-ink); border-bottom: 1px solid currentColor; }
.form-status { font-family: var(--font-mono); font-size: 0.82rem; margin-top: 0.9rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--accent-ink); }
.form-status.err { color: #d64545; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink-2); color: var(--muted-light); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand { color: var(--paper); margin-bottom: 1.1rem; }
.footer-brand .brand-logo { background-image: url(../assets/logo-light.png); }
.footer-brand p { max-width: 34ch; font-size: 0.98rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; font-family: var(--font-mono); font-size: 0.85rem; }
.footer-col-title { color: var(--paper); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.4rem; }
.footer-nav a { transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,0.08); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.7rem 1.5rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(16,24,38,0.5); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 18px 44px -26px rgba(0,168,228,0.55); }
.price-badge {
  position: absolute; top: -11px; inset-inline-start: 1.5rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: #04121b; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.price-card h3 { font-size: 1.18rem; margin-bottom: 0.6rem; }
.price-amt { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 0.7rem; }
.price-amt .from { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.1rem; }
.price-desc { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.1rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.55rem; }
.price-list li { position: relative; padding-inline-start: 1.4rem; font-size: 0.92rem; color: var(--ink); }
.price-list li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: -1px;
  color: var(--accent); font-weight: 700; font-size: 0.85rem;
}
.price-time { margin-top: auto; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.price-time b { color: var(--ink); }

.cur-bar {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin-top: 2.2rem; font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.06em; color: var(--muted-light);
}
.cur-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; }
.cur-pick {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--paper); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(237,241,244,0.22); border-radius: 8px;
  padding: 0.4rem 0.7rem; cursor: pointer;
}
.cur-pick:hover { border-color: var(--accent); }
.cur-pick option { background: var(--ink); color: var(--paper); }
.cur-note { color: rgba(237,241,244,0.55); font-size: 0.7rem; letter-spacing: 0.03em; }

.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.price-table th {
  text-align: start; padding: 0.95rem 1.2rem; background: var(--paper-2);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.price-table td { padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: rgba(0,168,228,0.04); }
.price-table .amt { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-foot { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); max-width: 74ch; }

.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.model-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.9rem 1.7rem; }
.model-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.model-card > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.2rem; }
.model-amt { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--accent-ink); margin-bottom: 0.9rem !important; }
.model-amt .from { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; }
.model-amt .per { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--muted); }

@media (max-width: 1040px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .price-grid, .model-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.hero-sub { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-title-sm { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }

.roles { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.4rem, 3vw, 2rem) 0; border-bottom: 1px solid var(--line); }
.role-main h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.role-main p { color: var(--muted); margin-top: 0.4rem; font-size: 0.98rem; max-width: 52ch; }
.role-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.role-apply { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em; padding: 0.6rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.role-apply:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* jobs board */
.jobs-group { margin-bottom: 2.4rem; }
.jobs-cat {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 600;
  padding-bottom: 0.7rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line);
}
.roles-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.role-pick {
  width: 100%; text-align: start; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.05rem 1.2rem; transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.role-pick b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.role-pick span {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--accent-ink); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.75rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.role-pick:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 34px -22px rgba(0,168,228,0.65); }
.role-pick:hover span { background: var(--accent); border-color: var(--accent); color: #04121b; }
html[lang="ar"] .role-pick span, html[lang="ar"] .jobs-cat { letter-spacing: normal; text-transform: none; }

.field input[type="file"] {
  padding: 0.7rem; cursor: pointer; font-family: var(--font-body); font-size: 0.92rem;
}
.field input[type="file"]::file-selector-button {
  font-family: var(--font-mono); font-size: 0.76rem; cursor: pointer;
  margin-inline-end: 0.8rem; padding: 0.5rem 0.9rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink);
}
.field input[type="file"]::file-selector-button:hover { background: var(--paper); border-color: var(--accent); }

.apply-card { background: var(--card); color: var(--ink); border-radius: var(--r); padding: clamp(1.8rem, 3vw, 2.8rem); }
.apply-lead { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.apply-email { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--accent-ink); margin: 0.7rem 0 1rem; word-break: break-all; }
.apply-hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }

@media (max-width: 640px) {
  .role { grid-template-columns: 1fr auto; }
  .role-meta { grid-column: 1 / -1; order: 3; }
  .role-apply { order: 2; }
}
@media (max-width: 940px) { .roles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .roles-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wa-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 70; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25d366;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.75), 0 0 0 6px rgba(37,211,102,0.14);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.wa-fab svg { width: 34px; height: 34px; }
.wa-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px -8px rgba(37,211,102,0.85), 0 0 0 8px rgba(37,211,102,0.18); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-app { max-width: 560px; width: 100%; justify-self: start; }
  .app-chip { display: none; }
  .app-toast { inset-inline-start: 12px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-solid { display: none; }
  .mobile-nav.open { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card.feature { grid-column: span 2; }
  .studio-inner, .contact-inner { grid-template-columns: 1fr; }
  .global-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-spec { grid-template-columns: 1fr; }
  .hero-spec > div + div::before { inset-inline-start: 1.6rem; inset-inline-end: 1.6rem; top: 0; bottom: auto; width: auto; height: 1px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.feature { grid-column: span 1; }
  .contact-links li { grid-template-columns: 1fr; gap: 0.3rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .assurances { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   ARABIC + RTL
   ============================================================ */
html[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Sora", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif;
  --font-mono: "IBM Plex Sans Arabic", "IBM Plex Mono", monospace;
}
/* Arabic letters must stay joined: no letter-spacing, no uppercasing */
html[lang="ar"] .eyebrow,
html[lang="ar"] .btn,
html[lang="ar"] .nav a,
html[lang="ar"] .stat-label,
html[lang="ar"] .work-tag,
html[lang="ar"] .fact-k,
html[lang="ar"] .contact-k,
html[lang="ar"] .region-tz,
html[lang="ar"] .form-eyebrow,
html[lang="ar"] .field label,
html[lang="ar"] .footer-col-title,
html[lang="ar"] .footer-base,
html[lang="ar"] .role-meta,
html[lang="ar"] .apply-lead,
html[lang="ar"] .hero-spec dt,
html[lang="ar"] .lang-btn,
html[lang="ar"] .filter,
html[lang="ar"] .process-num,
html[lang="ar"] .section-title,
html[lang="ar"] .hero-title,
html[lang="ar"] .stat-num {
  letter-spacing: normal;
  text-transform: none;
}
html[lang="ar"] body { font-size: 17px; }

/* directional mirroring */
[dir="rtl"] .stat { text-align: right; }
[dir="rtl"] .fact-v { text-align: left; }
[dir="rtl"] .nav a::after { left: auto; right: 0; }
[dir="rtl"] .hl-underline { transform-origin: right; }
[dir="rtl"] .tick-tl { left: auto; right: 24px; }
[dir="rtl"] .tick-tr { right: auto; left: 24px; }
[dir="rtl"] .tick-bl { left: auto; right: 24px; }
[dir="rtl"] .tick-br { right: auto; left: 24px; }
[dir="rtl"] .field select {
  background-position: left 1rem center;
  padding-right: 1rem; padding-left: 2.4rem;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.25); }
.footer-legal a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ============================================================
   CONSENT BANNER
   Sits above the WhatsApp button on mobile so neither is trapped
   under the other while a decision is pending.
   ============================================================ */
.consent {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  background: var(--ink-2); color: var(--muted-light);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -18px 40px -22px rgba(0,0,0,0.7);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.consent.is-in { transform: translateY(0); }
.consent-inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 1.15rem var(--pad);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap;
}
.consent-copy { flex: 1 1 380px; min-width: 0; }
.consent-title {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.4rem;
}
.consent-body { font-size: 0.93rem; line-height: 1.55; }
.consent-body a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.consent-body a:hover { color: var(--accent); }
.consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.consent-actions .btn { padding: 0.7rem 1.5rem; }
.consent .btn-ghost { border-color: rgba(255,255,255,0.28); color: var(--paper); }
.consent .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

@media (max-width: 620px) {
  .consent-inner { padding-bottom: 1.15rem; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}
/* Keep the floating WhatsApp button clear of the banner while it is up.
   Shifted via `bottom`, not `transform`, so the button's hover lift still works.
   consent.js measures the banner and publishes its height as --consent-h. */
.wa-fab { transition: transform 0.25s var(--ease), box-shadow 0.25s, bottom 0.45s var(--ease); }
body.has-consent .wa-fab { bottom: calc(clamp(1rem, 3vw, 1.8rem) + var(--consent-h, 0px) + 0.9rem); }

/* ============================================================
   LEGAL / POLICY PROSE
   ============================================================ */
.legal { max-width: 78ch; }
.legal h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-top: clamp(2.75rem, 5vw, 3.75rem); margin-bottom: 0.9rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line-soft);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 {
  font-size: 1.02rem; margin-top: 1.9rem; margin-bottom: 0.5rem;
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0;
}
.legal p, .legal li { color: var(--muted); font-size: 1.02rem; }
.legal p + p { margin-top: 0.9rem; }
.legal ul { margin: 0.9rem 0 0; padding-inline-start: 1.2rem; display: grid; gap: 0.55rem; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }

.legal-meta {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase;
  padding-bottom: 1.75rem; border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
}

/* the one thing on the page the owner must replace before launch */
.legal .todo {
  display: inline-block; background: rgba(0,168,228,0.12);
  border: 1px dashed var(--accent); border-radius: 6px;
  padding: 0.1rem 0.5rem; color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 0.86em;
}

.legal-table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: 0.95rem; }
.legal-table th, .legal-table td {
  text-align: start; padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line-soft); color: var(--muted); vertical-align: top;
}
.legal-table th { color: var(--ink); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-scroll { overflow-x: auto; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-copy > *, .hero-app, .hero-spec, .app-toast, .spark-area { opacity: 1 !important; animation: none !important; }
  .app-chip, .app-phone { animation: none !important; }
  .hero-nodes, .hero-grid, .bars span, .spark-line, .spark-dot { animation: none !important; }
  .spark-line { stroke-dashoffset: 0; }
  .spark-dot { opacity: 1; }
}
