/* 052 · Baby Track Automation / TrackPulse (نبض التشغيل) — 1:1 Cloud-Bridge & Vivid Red Stylesheet */
:root {
  --bt-black: #000000;
  --bt-red: #ff0000;
  --bt-pill: #0c0c0c;
  --bt-ink: #ffffff;
  --bt-muted: rgba(255, 255, 255, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bt-black); color: var(--bt-ink); }

body {
  margin: 0;
  background: var(--bt-black);
  color: var(--bt-ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, a, button, span, input { letter-spacing: 0; }

/* Fixed Top 3-Zone Bar */
.bt-navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 60;
  padding: 20px clamp(20px, 3.5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.bt-navbar > * { pointer-events: auto; }

.bt-wordmark {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Readex Pro', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.bt-center-pill {
  background: var(--bt-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bt-center-pill a {
  padding: 6px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.84rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.bt-center-pill a:hover, .bt-center-pill a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.bt-white-pill {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #000000;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

/* Subroute Views (#/platform, #/how-it-works, #/insights, #/contact) */
.bt-subview {
  display: none;
  min-height: 100dvh;
  padding: 118px clamp(20px, 4.5vw, 56px) 64px;
  max-width: 1120px;
  margin: 0 auto;
}

body.is-subroute .bt-home-view { display: none; }
body[data-route="platform"] #bt-v-platform,
body[data-route="how"] #bt-v-how,
body[data-route="insights"] #bt-v-insights,
body[data-route="contact"] #bt-v-contact { display: block; }

.bt-sub-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bt-sub-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 26px;
}

.bt-sub-card.is-red-tint {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.3);
}

/* Section 1: Dark Light-Streaks Hero + Oval CTA + Editorial Serif H1 */
.bt-hero {
  position: relative;
  min-height: 100dvh;
  padding: 104px clamp(24px, 4.5vw, 64px) 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.bt-hero-bg { position: absolute; inset: 0; z-index: 0; }
.bt-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bt-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0.78) 100%);
}

.bt-hero-top {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

/* Signature Wide Elliptical Oval CTA Button */
.bt-oval-cta {
  padding: 22px 40px;
  border-radius: 100%;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Amiri', Georgia, serif;
  font-size: 1.1rem;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.bt-oval-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
}

.bt-hero-bot {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 72px;
}

.bt-h1 {
  margin: 0;
  max-width: 780px;
  font-family: 'Amiri', Georgia, serif;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  color: #ffffff;
}

/* Giant White Organic Cloud SVG Transition Bridge into Vivid #FF0000 Section */
.bt-red-sec {
  position: relative;
  background: var(--bt-red);
  color: #ffffff;
  padding: 180px 24px 0;
  text-align: center;
}

.bt-cloud-bridge {
  position: absolute;
  top: -88px;
  left: 0;
  width: 100%;
  height: 176px;
  z-index: 15;
  pointer-events: none;
}

.bt-spd-script {
  margin: 18px 0;
  font-family: 'Marck Script', 'Amiri', cursive;
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  line-height: 1;
}

.bt-red-video-tail {
  position: relative;
  margin-top: 56px;
  height: min(52vh, 420px);
  overflow: hidden;
}

.bt-red-video-tail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bt-red-dissolve {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 120px;
  background: linear-gradient(to bottom, #ff0000 0%, rgba(255, 0, 0, 0) 100%);
}

.bt-foot-bar {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 28px clamp(20px, 4vw, 48px);
}

@media (max-width: 720px) {
  .bt-center-pill { display: none; }
  .bt-sub-grid { grid-template-columns: 1fr; }
}
