/* =========================================================
   The ReminderHood — site styles
   One stylesheet for every page. Sections, top to bottom:
   1 Tokens · 2 Base · 3 Layout helpers · 4 Header/nav
   5 Buttons/chips · 6 Hero · 7 Sections & cards
   8 Page-specific (apps, learn, about) · 9 Footer
   10 Mobile tab bar · 11 Motion · 12 Responsive
   ========================================================= */

/* ---------- 1. Tokens (from the brand palette in the mock-up) ---------- */
:root {
  --orange: #E85002;        /* Branding Orange */
  --orange-2: #F16001;      /* gradient stop 3 */
  --red: #C10801;           /* gradient stop 2 */
  --sand: #D9C3AB;          /* gradient stop 4 */
  --azure: #0DBEDE;         /* Vivid Azure (the R's tail) */
  --ink: #000000;           /* Primary */
  --white: #F9F9F9;
  --gray: #646464;
  --gray-d: #333333;

  --text: var(--white);
  --muted: #A9A9A9;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .075);
  --gradient: linear-gradient(120deg, var(--red) 0%, var(--orange-2) 55%, var(--sand) 100%);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Cinzel", Georgia, serif;
  --font-quran: "KFGQPC Hafs", "Amiri Quran", serif;

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@font-face {
  font-family: "KFGQPC Hafs";
  src: url("../assets/fonts/hafs.woff2") format("woff2");
  font-display: swap;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Page-wide glow: ember from the right, azure hint from the left (as in the mock-up) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 105% 10%, rgba(232, 80, 2, .22), transparent 60%),
    radial-gradient(40vw 40vw at -10% 30%, rgba(13, 190, 222, .12), transparent 60%),
    var(--ink);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--orange); }
.skip:focus { top: 12px; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 70px 0; }
.accent { color: var(--orange); }
.azure { color: var(--azure); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .95rem;
  color: #CFCFCF;
}
.eyebrow::before { content: ""; width: 44px; height: 3px; border-radius: 3px; background: var(--orange); }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---------- 4. Header / nav ---------- */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  transition: top .3s var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 14px 0 24px;
  border-radius: 999px;
  transition: background .3s, height .3s var(--ease);
}
.site-header.is-scrolled { top: 8px; }
.site-header.is-scrolled .nav { background: rgba(10, 10, 10, .78); height: 64px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 40px; height: auto; }
.brand-name {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .25);
  font-family: var(--font-mark);
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .92rem;
  color: #D6D6D6;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--glass-2); color: #fff; }
.nav-links a[aria-current="page"] { background: var(--white); color: #111; font-weight: 600; }
.nav-links a[aria-current="page"] svg { color: var(--orange); }
.nav-links svg, .tabbar svg, .ico { width: 18px; height: 18px; flex: none; }

.nav-cta { display: inline-flex; }
.menu-btn { display: none; }

/* ---------- 5. Buttons / chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: 0 10px 30px -10px rgba(232, 80, 2, .8); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(232, 80, 2, .95); }
.btn--ghost { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .45); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn .ico { width: 18px; height: 18px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass-2);
  font-size: .8rem;
  color: #DADADA;
}
.chip svg { width: 14px; height: 14px; }

.round-link {
  display: grid;
  background: transparent;
  padding: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  color: var(--orange);
  transition: background .2s, color .2s;
}
.round-link svg { width: 18px; height: 18px; }
.round-link--muted { border-color: rgba(255, 255, 255, .45); color: #fff; }
.round-link:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 90px;
  overflow: hidden;
  isolation: isolate;
}
/* the big ember arc behind the artwork */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  right: -18vw;
  top: 4vh;
  width: 70vw;
  height: 70vw;
  max-width: 1100px;
  max-height: 1100px;
  border-radius: 50%;
  border: 2px solid rgba(241, 96, 1, .55);
  box-shadow: inset 30px 0 80px -20px rgba(241, 96, 1, .35), 0 0 80px -10px rgba(241, 96, 1, .35);
}
/* the azure streak on the left edge */
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: -120px;
  top: 30%;
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, rgba(13, 190, 222, .75), transparent 60%);
  filter: blur(40px);
  transform: rotate(45deg);
}
.hero-art {
  position: absolute;
  z-index: -1;
  right: -2vw;
  bottom: 0;
  width: min(50vw, 760px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(0deg, transparent 0%, #000 18%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(0deg, transparent 0%, #000 18%);
  mask-composite: intersect;
  opacity: .95;
}
.hero-copy { max-width: 640px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7rem); line-height: .98; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--orange-2); }
.hero .tagline { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; color: #E4E4E4; letter-spacing: -.02em; }
.hero .lead { font-size: 1.12rem; color: #BDBDBD; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  margin-top: 26px;
  padding: 18px 8px;
  width: fit-content;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  font-size: .86rem;
  line-height: 1.3;
  color: #D4D4D4;
}
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar svg { width: 28px; height: 28px; flex: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
}
.scroll-cue svg { width: 16px; height: 16px; animation: bob 1.8s ease-in-out infinite; }

/* Short hero for inner pages */
.page-hero { padding: calc(var(--nav-h) + 90px) 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(3rem, 7.5vw, 5.6rem); letter-spacing: -.035em; }
.page-hero .bar { width: 48px; height: 4px; border-radius: 4px; background: var(--orange); margin-bottom: 26px; }
.page-hero p { margin-top: 18px; max-width: 560px; font-size: 1.15rem; color: #BDBDBD; }

/* ---------- 7. Sections & cards ---------- */
/* Ayah block */
.ayah {
  display: grid;
  gap: 18px;
  padding: 56px clamp(24px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.ayah::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(232, 80, 2, .22), transparent);
  pointer-events: none;
}
.ayah .ar { font-family: var(--font-quran); font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.9; direction: rtl; color: #fff; }
.ayah .en { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #E2E2E2; font-style: italic; }
.ayah .ref { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-2); }
.ayah .note { max-width: 640px; margin: 10px auto 0; color: var(--muted); }

/* Generic grid */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Track cards (Deen in Bits) */
.track {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.track:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .22); }
.track .ico-box {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
}
.track .ico-box svg { width: 24px; height: 24px; }
.track h3 { font-size: 1.2rem; }
.track p { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.track--faith { background: linear-gradient(150deg, var(--orange-2), #8a2b00); }
.track--quran { background: linear-gradient(150deg, #3a3a3a, #161616); }
.track--growth { background: linear-gradient(150deg, #0a7f95, #062b33); }
.track--bits { background: linear-gradient(150deg, #2b2b2b, #0e0e0e); }

/* Bit of the day */
.bit-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
}
.bit-card .bit-side {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 44px;
  background: linear-gradient(160deg, rgba(232, 80, 2, .9), rgba(193, 8, 1, .75));
}
.bit-card .bit-side h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.bit-card .bit-side p { color: rgba(255, 255, 255, .85); }
.bit-card .bit-body { display: grid; gap: 16px; padding: 44px; align-content: center; }
.bit-body .ar { font-family: var(--font-quran); font-size: 1.9rem; line-height: 1.9; direction: rtl; text-align: right; }
.bit-body blockquote { margin: 0; font-size: 1.12rem; font-style: italic; color: #E8E8E8; }
.bit-body .ref { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); }
.bit-body .apply { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--glass-2); font-size: .95rem; color: #D9D9D9; }
.bit-body .apply strong { color: #fff; }
.bit-nav { display: flex; gap: 10px; }

/* App cards */
.app-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 360px;
  padding: 26px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), border-color .3s;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .2); }
.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 70% at 100% 0%, rgba(232, 80, 2, .28), transparent 60%);
}
.app-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--orange-2), #5a1b00);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 14px 30px -14px rgba(232, 80, 2, .9);
}
.app-icon img { width: 42px; height: 42px; }
.app-icon--ajr { background: #161316; }
.app-icon--ajr img { width: 76px; height: 76px; border-radius: 20px; }
.app-card h3 { font-size: 1.45rem; }
.app-card .motto { font-weight: 600; font-size: .92rem; color: #E6E6E6; }
.app-card .desc { font-size: .92rem; color: var(--muted); }
.app-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.app-card--soon { place-content: center; justify-items: center; text-align: center; }
.app-card--soon::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: .7;
  background: var(--blob, linear-gradient(135deg, var(--azure), var(--orange)));
}
.app-card--soon .foot { position: absolute; right: 26px; bottom: 26px; padding: 0; }
.soon-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--glass-2); font-weight: 500; font-size: .92rem; }

/* Banner (Stay updated) */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
}
.banner .left { display: flex; align-items: center; gap: 18px; }
.banner img { width: 48px; }
.banner h3 { font-size: 1.15rem; }
.banner p { font-size: .92rem; color: var(--muted); }

/* Steps (Learn → Reflect → Apply) */
.steps { counter-reset: step; }
.step { padding: 30px; display: grid; gap: 12px; }
.step .num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  color: var(--orange-2);
  font-weight: 700;
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- 8. Page specific ---------- */
/* Apps hero phone */
.apps-visual { position: absolute; right: 4vw; top: calc(var(--nav-h) + 30px); width: min(36vw, 420px); pointer-events: none; }
.phone {
  width: 62%;
  margin-left: auto;
  aspect-ratio: 9 / 18;
  border-radius: 38px;
  border: 2px solid rgba(255, 255, 255, .2);
  background: linear-gradient(160deg, #1b1b1b, #050505);
  box-shadow: 0 30px 80px -20px rgba(232, 80, 2, .55);
  display: grid;
  place-items: center;
  transform: rotate(12deg);
}
.phone img { width: 38%; }
.float-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}
.float-tile svg { width: 40px; height: 40px; }
.float-tile--book { left: 0; top: 18%; background: rgba(232, 80, 2, .35); border: 1px solid rgba(241, 96, 1, .7); color: var(--orange-2); }
.float-tile--play { right: -6%; top: 58%; background: rgba(13, 190, 222, .2); border: 1px solid rgba(13, 190, 222, .7); color: var(--azure); animation-delay: -3s; }

/* Learn: filters + bit library */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: .9rem;
  color: #D0D0D0;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: rgba(255, 255, 255, .3); }
.filter[aria-pressed="true"] { background: var(--white); color: #111; font-weight: 600; }

.bit {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px;
}
.bit header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bit h3 { font-size: 1.2rem; }
.bit .ar { font-family: var(--font-quran); font-size: 1.5rem; line-height: 1.9; direction: rtl; text-align: right; color: #fff; }
.bit blockquote { margin: 0; color: #E2E2E2; font-style: italic; }
.bit .ref { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); }
.bit details { border-top: 1px solid var(--line); padding-top: 12px; }
.bit summary { cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.bit summary::-webkit-details-marker { display: none; }
.bit summary::after { content: "+"; margin-left: auto; color: var(--orange-2); font-size: 1.2rem; }
.bit details[open] summary::after { content: "–"; }
.bit dl { margin: 12px 0 0; display: grid; gap: 10px; font-size: .93rem; }
.bit dt { font-weight: 600; color: #fff; }
.bit dd { margin: 0; color: var(--muted); }
.bit[hidden] { display: none; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow: hidden; }
.level { padding: 30px; display: grid; gap: 10px; }
.level + .level { border-left: 1px solid var(--line); }
.level .tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }
.level h3 { font-size: 1.25rem; }
.level p { color: var(--muted); font-size: .95rem; }

/* About: values (IMAMAE) */
.values-word {
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 40px;
}
.value {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 34px 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(232, 80, 2, .16), rgba(255, 255, 255, .03) 60%);
  border: 1px solid rgba(241, 96, 1, .3);
  transition: transform .3s var(--ease), border-color .3s;
}
.value:hover { transform: translateY(-4px); border-color: rgba(241, 96, 1, .7); }
.value .letter {
  position: absolute;
  top: -22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  color: #111;
  border: 4px solid var(--azure);
  font-weight: 800;
  font-size: 1.4rem;
}
.value h3 { font-size: 1.25rem; letter-spacing: .02em; }
.value h3 small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-2); }
.value p { color: #CFCFCF; font-size: .95rem; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story .copy { display: grid; gap: 18px; }
.story .copy p { color: #C4C4C4; font-size: 1.05rem; }
.story-visual { aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.story-visual img.logo-big { width: 46%; position: relative; z-index: 1; }
.story-visual::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 80, 2, .55), transparent);
}

.make-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.make-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.make-list svg { width: 26px; height: 26px; flex: none; color: var(--orange-2); margin-top: 2px; }
.make-list strong { display: block; }
.make-list span { color: var(--muted); font-size: .93rem; }

/* CTA band */
.cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 50px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, rgba(232, 80, 2, .22), rgba(255, 255, 255, .03) 55%);
}
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta p { color: #C8C8C8; margin-top: 12px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- 9. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: #D0D0D0; }
.footer-grid a:hover { color: var(--orange-2); }
.footer-about p { margin-top: 16px; color: var(--muted); max-width: 340px; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--gray); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--glass-2); }
.socials a:hover { background: var(--orange); color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* ---------- 10. Mobile tab bar (phones only) ---------- */
.tabbar { display: none; }

/* ---------- 11. Motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.fade-swap { animation: fadeSwap .5s var(--ease); }
@keyframes bob { 50% { transform: translateY(5px); } }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, auto); row-gap: 16px; }
  .pillar:nth-child(3) { border-left: 0; }
  .apps-visual { opacity: .35; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .site-header { top: 10px; }
  .nav { padding: 0 8px 0 18px; }
  .nav-links { display: none; }
  .menu-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--glass-2);
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .site-header.menu-open .nav-links {
    display: grid;
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(12, 12, 12, .96);
    border: 1px solid var(--line);
  }
  .site-header.menu-open .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .grid--3, .grid--2, .story, .cta, .bit-card, .footer-grid { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; }
  .level + .level { border-left: 0; border-top: 1px solid var(--line); }
  .hero { align-items: flex-start; padding-top: calc(var(--nav-h) + 50px); }
  .hero-art { width: 120vw; right: -30vw; opacity: .3; }
  .apps-visual { display: none; }
  .cta { padding: 34px 26px; }
  .cta .actions { justify-content: flex-start; }
  .bit-card .bit-side, .bit-card .bit-body { padding: 30px 24px; }
  .section { padding: 80px 0; }
  .banner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }

  /* phone tab bar, as in the mock-up */
  body { padding-bottom: 86px; }
  .tabbar {
    display: flex;
    justify-content: space-around;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    padding: 8px;
    border-radius: 24px;
    background: rgba(14, 14, 14, .88);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .tabbar a { display: grid; justify-items: center; gap: 4px; padding: 6px 12px; border-radius: 16px; font-size: .72rem; color: #BDBDBD; }
  .tabbar a[aria-current="page"] { color: var(--orange-2); background: rgba(232, 80, 2, .12); }
  .tabbar svg { width: 22px; height: 22px; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--max), 100% - 32px); }
  .grid--4 { grid-template-columns: 1fr; }
  .brand-name { font-size: .78rem; letter-spacing: .14em; }
  .brand img { width: 34px; }
  .pillars { grid-template-columns: 1fr 1fr; width: 100%; padding: 16px 4px; }
  .pillar { padding: 0 12px; }
  .pillar:nth-child(3) { border-left: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero h1 { font-size: clamp(2.4rem, 11.8vw, 3.4rem); }
  .page-hero h1 { font-size: clamp(2.4rem, 12vw, 3rem); }
  .track { min-height: 170px; }
}
