/* ==========================================================================
   Immunefi homepage clone — stylesheet
   Design tokens extracted from immunefi.com
   ========================================================================== */

:root {
  --bg: #121212;                 /* deepBlack */
  --bg-black: #000;
  --card: #131313;
  --header-h: 132px;
  --line: #1D1C25;                 /* softDarkLine */
  --line-10: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.08);
  --pink: #E52B65;
  --magenta: #DB128F;
  --purple: #9D10BF;
  --grad: linear-gradient(90deg, #E52B65 0%, #DB128F 50%, #9D10BF 100%);
  --dim: rgba(255, 255, 255, 0.6);
  --dimmer: rgba(255, 255, 255, 0.4);
  --font-display: 'Unbounded', 'Rubik', sans-serif;
  --font-ui: 'Rubik', 'Geist', sans-serif;
  --font-body: 'Geist', 'Rubik', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
input { font: inherit; }
::selection { background: rgba(229, 43, 101, 0.55); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* =========================== Buttons =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 500;
  color: #fff;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-gradient { background-image: var(--grad); color: #fff; }
.nav-contact { background-image: linear-gradient(90deg, #F01580 0%, #9D10BF 100%); }
.btn-gradient:hover { opacity: .9; }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.85); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-soft { background: rgba(255, 255, 255, 0.1); }
.btn-soft:hover { background: rgba(255, 255, 255, 0.16); }
.btn-sm { height: 42px; padding: 0 15px; border-radius: 4.5px; font-size: 18px; }
.btn-lg { height: 55px; padding: 0 40px; border-radius: 7px; font-size: 14.4px; }
.btn-block { width: 100%; height: 48px; border-radius: 8px; font-size: 15px; }

.page { position: relative; background: #000; }
.page-wrap { position: relative; }

/* =========================== Header =========================== */
/* Two headers, exactly like the original:
   1) overlay  — z-50, sits on top of the hero with a transparent bg.
   2) sticky   — z-30, lives after the hero with -mt/-mb overlap; it has a
      permanent black/20 + 40px blur background, scrolls into view, sticks
      to the top and un-sticks where <main> ends (footer has no bar). */
.site-header { position: relative; }

.site-header--overlay {
  z-index: 50;
  margin-bottom: calc(var(--header-h) * -1);
}

.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: calc(var(--header-h) * -1);
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

.header-inner {
  display: flex;
  align-items: center;
  padding-top: 40px;                 /* py-8 @ live scale */
  padding-bottom: 40px;
  min-height: 132px;                 /* live header height */
}

.logo { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.logo img { width: 186px; max-width: 100%; height: 42px; }

.header-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 24px;
  flex: none;
}

.main-nav { display: flex; align-items: center; gap: 26px; flex: none; }

.nav-item { position: relative; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  padding: 8px 0;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav-btn:hover { color: rgba(255, 255, 255, 0.75); }
.nav-btn .chev { opacity: .55; transition: transform .2s ease; }
.nav-item.open .nav-btn .chev { transform: rotate(180deg); }

.nav-link {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  padding: 8px 0;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav-link:hover { color: rgba(255, 255, 255, 0.75); }
.nav-login { font-size: 14.4px; color: rgba(255, 255, 255, 0.5); }
.nav-login:hover { color: #fff; }

.header-spacer { flex: 1; }
.header-inner > .nav-login { margin-left: 6px; flex: none; }
.header-inner > .nav-explore { margin-left: 10px; flex: none; }
.header-inner > .nav-contact { margin-left: 10px; flex: none; }

/* dropdown panels */
.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -10px;
  min-width: 250px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transform-origin: top left;
  /* duration-75: ease-in on close, ease-out on open, exactly like the original */
  transition: opacity .075s cubic-bezier(.4, 0, 1, 1), transform .075s cubic-bezier(.4, 0, 1, 1), visibility .075s;
  z-index: 60;
}
.nav-item.open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-timing-function: cubic-bezier(0, 0, .2, 1);
}

.nav-panel a {
  display: block;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 4.5px;
  font-family: var(--font-ui);
  font-size: 14.4px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: background-color .12s ease, color .12s ease;
}
.nav-panel a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

.nav-panel .join-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  white-space: normal;
}
.nav-panel .join-card:hover { background: rgba(255, 255, 255, 0.06); }
.join-card-txt { display: flex; flex-direction: column; gap: 3px; }
.join-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.join-card-sub { font-family: var(--font-body); font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.join-card img { width: 48px; height: 48px; border-radius: 50%; flex: none; }

/* language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px;
  flex: none;
}
.header-inner > .lang-toggle { margin-left: 12px; }
.lang-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 9px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background-image: var(--grad); color: #fff; }

/* hamburger */
.hamburger {
  display: none;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
}

/* =========================== Mobile drawer =========================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 10, 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .075s cubic-bezier(.4, 0, 1, 1);
}
.drawer.open { opacity: 1; pointer-events: auto; transition-timing-function: cubic-bezier(0, 0, .2, 1); }

.drawer-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  padding: 16px 16px 20px;
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 10px;
}
.drawer-close {
  display: inline-flex;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 5px;
  color: rgba(255, 255, 255, 0.6);
}
.drawer-scroll {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px 28px;
}
.drawer-link-solo { font-family: var(--font-ui); font-size: 16px; font-weight: 500; padding: 10px 8px; }
.drawer-group { display: flex; flex-direction: column; margin-top: 14px; }
.drawer-label {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  padding: 8px;
  user-select: none;
}
.drawer-link {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  padding: 11px 8px;
  border-radius: 6px;
  transition: background-color .12s ease;
}
.drawer-link:hover { background: rgba(255, 255, 255, 0.08); }
.drawer-group .join-card { margin: 8px 8px 6px; }
.drawer-bottom { display: flex; flex-direction: column; gap: 10px; }
.drawer-bottom .btn { font-size: 15px; }

/* =========================== Hero =========================== */
.hero {
  position: relative;
  z-index: 40;                      /* hero paints above the sticky bar */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 200px 0 50px;             /* md:pt-44 pb-10 @ live scale */
  background: #000;                  /* deepBlack */
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
#radar { position: absolute; inset: 0; display: block; background: #000; }
/* bottom scrim: from-black via-black/50 at 30% to transparent (bg-gradient-to-t) */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;                        /* gap-y-5 */
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 3vh;
  padding-bottom: 1vh;
  text-align: center;
}
@media (min-width: 701px) { .hero-content { gap: 40px; } }   /* sm:gap-y-8 */

.hero-title { margin: 0; }
.hero-big {
  display: block;
  width: fit-content;
  margin: 0 auto 20px;             /* mb-4 @ live scale */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 13.2vw, 190px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  display: block;
  margin: 0 auto;
  max-width: 1000px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
}
.hero-copy {
  max-width: 668px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .5px;
  color: var(--dim);
}
.hero-copy strong { color: #fff; font-weight: 500; }

/* =========================== Section frame =========================== */
.sections { margin-bottom: 375px; }   /* mb-[375px] — gap the mountain bleeds into */
.sections > section { border-top: 1px solid var(--line); }
.sections > section:last-child { border-bottom: 1px solid var(--line); }

/* =========================== Logo wall =========================== */
.logos-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;                        /* gap-8 */
  background: #000;
  width: 100%;
  padding: 100px 0;                 /* py-20 @ live scale */
  overflow-x: hidden;
}
.trusted-label {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  margin-bottom: -20px;              /* live: -1rem under a 40px gap */
}
.marquee-rows { display: flex; flex-direction: column; gap: 25px; width: 100%; }
.marquee { overflow: hidden; width: 100%; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 100s linear infinite;
}
/* row 1: animate-horizontal-infinite-scroll-ltr -> reverse (moves right)
   row 2: animate-horizontal-infinite-scroll-rtl -> normal  (moves left) */
.marquee-track[data-marquee="right"] { animation-direction: reverse; }
.marquee-set { display: flex; align-items: center; flex: none; }
.marquee-set img {
  height: 55px;                     /* h-11 rendered */
  width: fit-content;
  margin: 0 20px;                   /* mx-4 rendered */
  padding: 5px;                     /* p-1 rendered */
  border-radius: 7px;               /* rounded-md rendered */
  object-fit: contain;
  flex: none;
}
/* ?noanim=1 debug switch: freeze decorative motion for automated capture */
.noanim .marquee-track { animation: none; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}

/* =========================== Stats =========================== */
.stats-section { background: #000; padding: 100px 0; }
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 13.5px;            /* rounded-xl */
  overflow: hidden;
}
.stat {
  background: rgba(18, 18, 18, 0.5); /* bg-black/50 (their "black" = #121212) */
  padding: 25px;                     /* p-5 */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 34px;
  color: #fff;
}
.stat-num-grad {
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 14px; line-height: 1.45; letter-spacing: .5px; color: var(--dim); max-width: 250px; }

/* =========================== Research =========================== */
.research-section { background: #000; padding: 100px 0; }
.research-grid {
  max-width: 1100px;
  padding-left: 0;
  padding-right: 0;
  display: grid;
  grid-template-columns: 1fr 1.105fr;   /* live: 492px / 543px */
  gap: 65px;
  align-items: start;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 3.08px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}
.research-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.06;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.body-dim { font-size: 16px; line-height: 1.6; letter-spacing: .5px; color: var(--dim); margin-bottom: 28px; }
.text-link {
  font-family: var(--font-ui);
  font-size: 14.4px;
  font-weight: 500;
  color: var(--pink);
}
.text-link:hover { text-decoration: underline; }

.chart-card {
  background: rgba(18, 18, 18, 0.5);  /* bg-black/50 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13.5px;              /* rounded-xl */
  padding: 30px;                      /* sm:p-6 */
}
.chart-title {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 16px;
  margin-bottom: 25px;
  max-width: 92%;
}
.chart-rows { display: flex; flex-direction: column; gap: 15px; }
.chart-row {
  display: grid;
  grid-template-columns: 74px 1fr 54px;
  align-items: center;
  gap: 15px;
}
.chart-label { font-size: 13px; line-height: 16px; letter-spacing: .5px; color: rgba(255, 255, 255, 0.55); }
.chart-track {
  display: block;
  height: 10px;                       /* h-2 */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.chart-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background-image: var(--grad);
}
.chart-val { font-size: 14px; font-weight: 500; line-height: 16px; letter-spacing: .5px; color: #fff; text-align: right; }
.chart-note {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================== Testimonials =========================== */
.testimonials-section { background: #000; padding: 100px 0; }
.t-head {
  max-width: 1100px;
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.t-head .eyebrow { margin-bottom: 0; }
.t-nav { display: flex; gap: 14px; }
.t-arrow {
  width: 50px;                       /* size-10 */
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, opacity .15s ease;
}
.t-arrow:hover { border-color: rgba(255, 255, 255, 0.4); background: transparent; }
.t-arrow[disabled] { opacity: .35; cursor: default; }
.t-arrow[disabled]:hover { border-color: rgba(255, 255, 255, 0.2); }

.t-viewport {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.t-viewport::-webkit-scrollbar { display: none; }
.t-track { display: flex; }
.t-card {
  flex: 0 0 calc((100% - 48px) / 3);
  margin-right: 24px;
  scroll-snap-align: start;
  background: rgba(18, 18, 18, 0.5);  /* bg-black/50 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13.5px;              /* rounded-xl */
  padding: 30px;                      /* p-6 */
  display: flex;
  flex-direction: column;
  max-height: 375px;                  /* max-h-[375px] */
}
.t-card:last-child { margin-right: 0; }
.t-tag {
  align-self: flex-start;
  border: 1px solid rgba(240, 65, 107, 0.4);
  color: var(--pink);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 18px;
}
.t-quote {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.t-quote::-webkit-scrollbar { width: 5px; }
.t-quote::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); border-radius: 99px; }
.t-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.t-person img { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.t-person-txt { display: flex; flex-direction: column; }
.t-person-txt strong { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.t-person-txt span { font-size: 14px; letter-spacing: .5px; color: rgba(255, 255, 255, 0.5); }
.t-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.t-dot {
  width: 30px;                        /* size-6 hit area */
  height: 30px;
  display: grid;
  place-items: center;
  background: none;
}
.t-dot span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: all .15s;               /* transition-all */
}
.t-dot.active span { width: 22px; background: #E52B65; }

/* =========================== CTA =========================== */
.cta-section { background: #000; padding: 100px 0; }
.cta-card {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;                /* rounded-2xl */
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121212;                /* their "black" token */
  padding: 80px 50px;                 /* sm:px-10 sm:py-16 */
  text-align: center;
}
.cta-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;                        /* h-[3px] */
  background-image: var(--grad);
}
.cta-orb {
  position: absolute;
  top: -140px;                        /* top-[-140px] */
  left: 50%;
  width: 640px;
  height: 400px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(157, 16, 191, 0.2);  /* bg-[#9D10BF]/20 */
  filter: blur(64px);                   /* blur-3xl */
  pointer-events: none;
}
.cta-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.06;
  text-transform: uppercase;
  max-width: 820px;
  margin: 0 auto 20px;
}
.cta-copy {
  position: relative;
  max-width: 573px;
  margin: 0 auto 35px;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .5px;
  color: var(--dim);
}
.cta-card .btn { position: relative; }

/* =========================== Footer =========================== */
.site-footer {
  position: relative;
  z-index: 10;                        /* content sits above the artwork */
  background: transparent;
  overflow: visible;
  padding-top: 40px;                  /* container py-8 */
}
.footer-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;                        /* paints over the static sections, under the footer */
  height: 1220px;
  pointer-events: none;
  background-image: url('../img/mountain.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  opacity: .5;
}
.footer-inner { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);   /* live 341 / 819 */
  gap: 80px;
  padding-bottom: 8px;
}
.footer-top > * { min-width: 0; }
.newsletter-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.newsletter-copy { font-size: 14px; line-height: 1.6; letter-spacing: .5px; color: var(--dim); max-width: 316px; margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; }
/* flex/grid children default to min-width:auto, which makes the email input
   refuse to shrink below its intrinsic width and push the button out of the row. */
.newsletter-form input { min-width: 0; }
.newsletter-form .btn { flex: 0 0 auto; }
.newsletter-form input {
  width: 210px;
  height: 50px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #fff;
  font-size: 14.4px;
  padding: 9px 15px;
  outline: none;
  transition: border-color .15s ease;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.35); }
.newsletter-form input:focus { border-color: rgba(255, 255, 255, 0.35); }
.newsletter-form .btn { height: 50px; padding: 0 25px; border-radius: 7px; font-size: 14.4px; }

.footer-links { display: flex; flex-direction: column; }
.flink-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 5px 0;
}
.flabel {
  font-size: 15.1px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  flex: none;
}
.flinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 20px;
}
.flinks a, .flinks .linklike {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 28px;
  color: #fff;
  transition: color .12s ease;
}
.flinks a:hover, .flinks .linklike:hover { color: #fff; }
.linklike { padding: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 0 60px;
}
.copyright { font-size: 12.6px; color: rgba(255, 255, 255, 0.3); }
.soc2 { width: 145px; height: auto; flex: none; }

/* =========================== Cookie banner =========================== */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 468px;
  max-width: calc(100vw - 32px);
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px 22px;
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.show { animation: cookieIn .3s ease both; }
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-title { font-family: var(--font-ui); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.cookie-body { font-size: 12.5px; line-height: 1.55; color: var(--dim); margin-bottom: 12px; }
.cookie-body a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }
.cookie-manage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.cookie-manage svg { transition: transform .18s ease; }
.cookie-manage[aria-expanded="true"] svg { transform: rotate(90deg); }
.cookie-cats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cookie-cats[hidden] { display: none; }
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.cookie-cat input { width: 16px; height: 16px; accent-color: var(--pink); cursor: pointer; }
.cookie-cat input:disabled { cursor: default; }
.cookie-cat-tag { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.cookie-actions { display: flex; gap: 12px; }
.cookie-actions .btn { flex: 1; height: 44px; border-radius: 8px; font-size: 13.5px; }

/* =========================== Responsive =========================== */
/* lg (1025-1279): live compresses the nav — items sit adjacent with p-3
   padding and the logo absorbs whatever space is left. */
@media (max-width: 1279px) and (min-width: 1025px) {
  .header-divider { margin: 0 10px; }
  .main-nav { gap: 0; }
  .nav-btn, .main-nav > .nav-link { padding: 8px 9px; font-size: 16px; }
  .btn-sm { padding: 0 11px; font-size: 16px; }
  .header-inner > .lang-toggle { margin-left: 4px; }
  .header-inner > .nav-login { margin-left: 2px; font-size: 13px; }
  .header-inner > .nav-explore { margin-left: 5px; }
  .header-inner > .nav-contact { margin-left: 5px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }        /* mobile bar: logo 36 + py-4 */
  .header-inner { padding-top: 18px; padding-bottom: 18px; min-height: 72px; }   /* py-4 */
  .header-divider, .main-nav, .header-spacer,
  .header-inner > .nav-login, .header-inner > .nav-explore, .header-inner > .nav-contact { display: none; }
  .header-inner > .lang-toggle { order: -1; margin-left: 0; }
  .logo { margin: 0 auto; }
  .logo img { width: auto; height: 36px; }
  .hamburger { display: inline-flex; }

  .research-grid { grid-template-columns: 1fr; gap: 40px; padding-left: 20px; padding-right: 20px; }
  .t-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (min-width: 1025px) {
  .drawer { display: none; }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .flink-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .flabel { line-height: 18.9px; }
  .flinks { justify-content: flex-start; gap: 5px 20px; }
  .flinks a, .flinks .linklike { line-height: 27px; }
  .footer-bottom {
    display: block;
    position: relative;
    min-height: 200px;               /* live mobile block height */
    padding: 20px 0;
  }
  .copyright { max-width: 200px; }
  .soc2 {
    position: absolute;
    right: 0;
    bottom: 20px;
    width: 136px;
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .container { padding-left: 20px; padding-right: 20px; }

  /* Deliberate deviation from the original: the artwork transition band under
     the CTA is shortened on phones. The live site keeps 375px here, which reads
     as a long dead zone because the footer is much taller on mobile and the
     artwork (anchored to the page bottom) barely reaches into it. */
  .sections { margin-bottom: 140px; }

  .hero { padding: 124px 0 80px; }    /* pt-28 + clearance for the 72px bar */
  .hero-copy { font-size: 16px; }
  .hero-big { margin-bottom: 12px; }

  .logos-section { padding: 60px 0; }
  .trusted-label { font-size: 14px; margin-bottom: 22px; }
  .marquee-set img { height: 30px; margin-right: 46px; }
  .marquee + .marquee { margin-top: 16px; }

  .stats-section { padding: 60px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 25px; }
  .stat-num { font-size: 26px; line-height: 28px; }
  .stat-label { font-size: 12px; line-height: 17.4px; max-width: none; }

  .research-section { padding: 60px 0; }
  .research-title { font-size: 26px; line-height: 28.6px; }
  .research-copy .eyebrow { line-height: 14px; }
  .chart-card { padding: 25px; }
  .chart-title { font-size: 12px; line-height: 14px; letter-spacing: 2.16px; }
  .chart-label, .chart-val { line-height: 14px; }
  .chart-note { font-size: 12px; line-height: 18px; }
  .chart-row { grid-template-columns: 62px 1fr 50px; gap: 12px; }

  .testimonials-section { padding: 60px 0; }
  .t-card { height: 375px; }        /* live: fixed 375 card on mobile too */
  .t-card { flex-basis: 100%; margin-right: 16px; min-height: 0; }
  .t-quote { max-height: 240px; }
  .t-nav { display: none; }

  .cta-section { padding: 60px 0; }
  .cta-card { padding: 60px 30px; }

  .site-footer { padding-top: 62px; }
  .newsletter-title { line-height: 16px; }
  .newsletter-form input { flex: 1; width: auto; font-size: 16px; }
  .newsletter-copy { font-size: 12px; line-height: 19.2px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .copyright { margin-bottom: 0; }
  .soc2 { margin-top: 18px; }

  .cookie-banner { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px; }
}

@media (max-width: 1024px) and (min-width: 701px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================== Vietnamese typography =========================== */
/* Vietnamese words run longer; step the display sizes down a notch. */
html[lang="vi"] .hero-sub { font-size: clamp(30px, 3.7vw, 54px); }
html[lang="vi"] .cta-title { font-size: clamp(28px, 3vw, 44px); }
html[lang="vi"] .research-title { font-size: clamp(24px, 2.2vw, 30px); }
@media (max-width: 700px) {
  html[lang="vi"] .hero-sub { font-size: clamp(28px, 8vw, 38px); }
  html[lang="vi"] .cta-title { font-size: clamp(26px, 7.4vw, 34px); }
}
