/* ==========================================================================
   Plexusbit – Homepage
   Structure: tokens → base → components → sections → responsive
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #000;
  --color-bg-soft: #0a0a0d;
  --color-white: #fff;
  --color-text-70: rgba(255, 255, 255, 0.7);
  --color-text-50: rgba(255, 255, 255, 0.5);
  --color-text-42: rgba(255, 255, 255, 0.42);
  --color-border: rgba(255, 255, 255, 0.15);
  --color-border-soft: rgba(255, 255, 255, 0.07);
  --color-blue: #3d93ff;
  --color-blue-btn: #1778ff;
  --color-badge: #55a4ff;
  --color-gradient-end: #7285cf;
  --color-ink: #0e0d28;
  --color-card-light: #f6f6ff;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-figtree: "Figtree", var(--font-body);
  --font-tight: "Inter Tight", var(--font-body);

  --gutter: clamp(16px, 5.5556vw, 80px);
  --container: 1280px;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 14;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.0016px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
.gradient-text {
  background-image: linear-gradient(180deg, #fff 54.167%, var(--color-gradient-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.h2 {
  font-size: clamp(34px, 3.89vw, 56px);
  line-height: 1.1607;
  font-weight: 500;
  letter-spacing: -0.84px;
}

.section-head__text { color: var(--color-white); }
.section-head__text--md { font-size: 16px; line-height: 1.5; }
.section-head__text--lg { font-size: 20px; line-height: 31px; letter-spacing: -0.002px; }

/* Inter "Display" cut (opsz 32) is used for headings, nav and card titles in the design */
.h2, .hero__title, .hero__text, .main-nav__link, .bento-card__title, .industry-card__title,
.resource-card__title, .case-card__quote, .case-detail__title, .why-item__title, .cta__title {
  font-variation-settings: "opsz" 32;
}

/* ---------- Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  background: var(--color-white);
  color: #000;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 31px;
  font-weight: 500;
  letter-spacing: -0.1515px;
  white-space: nowrap;
}

.btn-wrap {
  display: inline-flex;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #000;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-badge);
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.0016px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
  color: var(--color-blue);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.28px;
  text-transform: uppercase;
}
.link-arrow img { flex: none; }
.link-arrow--dark { color: var(--color-ink); padding-top: 8px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.site-logo { display: inline-flex; flex: none; height: 48px; }
.site-logo__mark { position: relative; width: 45.939px; height: 48px; overflow: hidden; }
.site-logo__mark img { position: absolute; top: 0; left: 0; height: 100%; width: 245.19%; max-width: none; }
.site-logo__type { width: 66.699px; height: 48px; object-fit: fill; }

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 8px 40px;
  border: 1px solid var(--color-border);
  border-radius: 60px;
}
.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.0013px;
  white-space: nowrap;
}
.main-nav__cta-mobile { display: none; }

.nav-cta {
  display: inline-flex;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.nav-cta__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 2px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(50, 102, 255, 0.4);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  box-shadow: inset 0 0 6px 3px rgba(255, 255, 255, 0.25);
  font-size: 14px;
  line-height: 26px;
  letter-spacing: -0.0014px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 722px;
  background: #000 url("../images/hero-bg.png") no-repeat center top / cover;
  padding-top: 104px;
  padding-bottom: 80px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 728px;
  max-width: 100%;
  padding-left: max(var(--gutter), calc(50% - 629.43px));
  box-sizing: content-box;
}

.hero__title {
  font-size: clamp(40px, 5.14vw, 74px);
  line-height: 1.027;
  font-weight: 500;
  letter-spacing: -1.48px;
}

.hero__text {
  width: 664px;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
  opacity: 0.7;
}

/* ---------- Companies ---------- */
.companies {
  width: min(1200px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding: 59px 0 59px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.companies__label { color: var(--color-text-70); text-align: center; }
.companies__grid {
  display: grid;
  grid-template-columns: repeat(4, 235px);
  gap: 10px;
}
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 98px;
  padding: 0 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.logo-box img { width: 155px; height: 34px; object-fit: contain; }

/* ---------- Bento ---------- */
.bento { padding: 80px 0; }

.section-head--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.bento__title { width: 470px; flex: none; }
.bento .section-head__text { width: 480px; flex: none; }

.bento__grid {
  margin-top: 31px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

/* widths follow Figma: 911.43 / 358.57 and 358.57 / 358.57 / 542.86 */
.bento-card--build     { flex: 0 0 calc((100% - 10px) * 0.7177); background: #0b0b0d; }
.bento-card--scale     { flex: 0 0 calc((100% - 10px) * 0.2823); }
.bento-card--improve   { flex: 0 0 calc((100% - 20px) * 0.2846); background: linear-gradient(180deg, #040416 0%, #070722 60%, #0b0b30 100%); }
.bento-card--modernize { flex: 0 0 calc((100% - 20px) * 0.2846); border-color: var(--color-border); }
.bento-card--reports   { flex: 0 0 calc((100% - 20px) * 0.4308); }

.bento-card__bg,
.bento-card__art { position: absolute; max-width: none; pointer-events: none; }

.bento-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.bento-card--build .bento-card__body { max-width: 299px; }
.bento-card--reports .bento-card__body { max-width: 299px; }

.bento-card__title { white-space: nowrap; font-size: 20px; line-height: 31px; font-weight: 600; letter-spacing: -0.002px; }
.bento-card__title span { color: var(--color-text-42); }
.bento-card--reports .bento-card__title span:last-of-type { /* "Long-Term Engineering" muted, "Partnership" bright */ }

.bento-card__text {
  font-family: var(--font-figtree);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--color-text-70);
}

/* Build */
.bento-card--build::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 70% at 72% 8%, rgba(24, 66, 210, 0.55), rgba(24, 66, 210, 0) 70%);
  pointer-events: none;
}
.bento-card--build::after {
  content: "";
  position: absolute;
  top: -72px;
  right: -71px;
  width: 420px;
  height: 220px;
  border-radius: 50%;
  background: rgba(30, 80, 255, 0.8);
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
}
.bento-card--build .bento-card__art { top: 0; right: 33px; width: 504px; height: 400px; }

/* Scale */
.bento-card--scale .bento-card__bg { inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: 0.7; }
.bento-card--scale .bento-card__art { top: 0; left: 50%; transform: translateX(-50%); width: 292.57px; height: auto; }

/* Improve */
.bento-card--improve .bento-card__art { top: 0; left: 50%; transform: translateX(-50%); width: 341px; height: 240px; }

/* Modernize */
.bento-card--modernize .bento-card__art { top: -59px; left: 50%; transform: translateX(-50%); width: 362px; height: 362px; }
.bento-card__chip {
  position: absolute;
  top: 179px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 93px;
  height: 46.5px;
  border-radius: 16px;
  background: #08090a;
  box-shadow: inset 0 4px 37.3px rgba(255, 255, 255, 0.1);
  z-index: 1;
}

/* Reports (partnership) */
.bento-card--reports { background: #000; }
.bento-card--reports .bento-card__bg { inset: 0; width: 100%; height: 100%; object-fit: fill; }
.bento-card--reports::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2e6ca9;
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}
.bento-card--reports .bento-card__shot {
  top: 46px;
  left: 40.13px;
  width: 461.87px;
  height: 353.28px;
  overflow: hidden;
  border-radius: 8px;
  z-index: 1;
  -webkit-mask: url("../images/bento-reports-mask.png") -40.13px -46px / 542.86px 400px no-repeat;
  mask: url("../images/bento-reports-mask.png") -40.13px -46px / 542.86px 400px no-repeat;
}
.bento-card--reports .bento-card__shot img { position: absolute; top: 0; left: -2.42%; width: 131.88%; height: 100%; max-width: none; }

/* ---------- Features (From device to cloud) ---------- */
.features { padding-bottom: 0; }

.features__panel {
  position: relative;
  padding: 76px 50px 76px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse 35% 45% at 77% 62%, rgba(18, 72, 190, 0.26), transparent 70%),
    linear-gradient(165deg, #0b1738 0%, #060d22 40%, #010205 100%);
  overflow: hidden;
}

.section-head--features { align-items: flex-start; }
.section-head--features .h2 { width: 560px; padding-top: 14.5px; flex: none; }
.features__intro { width: 483px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

.features__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  width: 565px;
  flex: none;
}
.feature { display: flex; flex-direction: column; gap: 10px; align-self: start; }
.feature__title { white-space: nowrap; display: flex; align-items: center; gap: 5px; font-size: 16px; line-height: 31px; font-weight: 500; }
.feature__title img { flex: none; }
.feature__text { color: var(--color-text-70); }

.stack { display: flex; align-items: center; gap: 56px; flex: none; }
.stack__layers { position: relative; width: 233px; height: 556px; flex: none; isolation: isolate; }
.stack__layers img { position: absolute; left: -24px; width: 281.5px; height: auto; max-width: none; }
.stack__layers img:nth-child(1) { top: 0;   z-index: 6; }
.stack__layers img:nth-child(2) { top: 82px; z-index: 5; }
.stack__layers img:nth-child(3) { top: 164px; z-index: 4; }
.stack__layers img:nth-child(4) { top: 246px; z-index: 3; }
.stack__layers img:nth-child(5) { top: 328px; z-index: 2; }
.stack__layers img:nth-child(6) { top: 410px; z-index: 1; }

.stack__labels { display: flex; flex-direction: column; gap: 52px; }
.stack__labels li { display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 31px; font-weight: 500; letter-spacing: -0.002px; white-space: nowrap; }

/* ---------- Industries ---------- */
.industries {
  position: relative;
  padding: 142px 0;
  overflow: hidden;
}
.industries::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 300px;
  width: 1143px;
  max-width: 100%;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(23, 70, 255, 0.55), rgba(23, 70, 255, 0) 100%);
  pointer-events: none;
}
.industries .container { position: relative; }

.section-head--center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; width: min(746px, 100%); margin-inline: auto; }

.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16) 37.186%, rgba(44, 36, 255, 0.39) 100%);
  -webkit-backdrop-filter: blur(115px);
  backdrop-filter: blur(115px);
}
.industry-card__icon {
  display: flex;
  padding: 12px;
  border-radius: 100px;
  background: rgba(15, 75, 255, 0.52);
}
.industry-card__body { display: flex; flex-direction: column; gap: 8px; min-height: 117px; }
.industry-card__title { font-size: 24px; line-height: 31px; font-weight: 500; letter-spacing: -0.0096px; }
.industry-card__text { color: var(--color-text-70); }

/* ---------- Case studies ---------- */
.cases { position: relative; background: var(--color-bg-soft); overflow: hidden; }
.cases__bg {
  isolation: isolate;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 526px;
  pointer-events: none;
}
.cases__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/cases-bg.png") center / 100% 100% no-repeat;
  opacity: 0.6;
}
.cases__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 13, 0) 64.354%, #0a0a0d 100%);
}

.cases__inner {
  position: relative;
  padding: 142px 0 142px max(var(--gutter), calc(50% - 639px));
}
.cases__head { width: min(1280px, calc(100% - var(--gutter))); }
.cases__intro { flex: none; display: flex; flex-direction: column; gap: 24px; width: 483px; max-width: 100%; }
.cases__controls { display: flex; align-items: center; gap: 8px; }
.slider-btn {
  display: flex;
  padding: 8px;
  background: var(--color-blue-btn);
  border: 0;
  border-radius: var(--radius-sm);
}
.slider-btn--next img { transform: scaleX(-1); }
.slider-btn:disabled { cursor: default; }

.cases__viewport { margin-top: 48px; }
.cases__track { display: flex; gap: 24px; transition: transform 0.45s ease; will-change: transform; }

.case-card {
  position: relative;
  flex: none;
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 906px;
  padding: 32px;
  background: var(--color-card-light);
  border: 1px solid var(--color-border-soft);
  border-radius: 20px;
  overflow: hidden;
  color: var(--color-ink);
}
.case-card__deco { position: absolute; left: -2.1%; top: 68%; width: 14.1%; height: auto; max-width: none; }
.case-card__main { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-height: 377px; }
.case-card__logo { position: relative; width: 215px; height: 40px; flex: none; }
.case-card__logo--2 { width: 221px; }
.case-card__logomark, .case-card__logotype { position: absolute; max-width: none; }
.case-card__logo--1 .case-card__logomark { inset: 0 81.4% 0 0; width: 18.6%; height: 100%; }
.case-card__logo--1 .case-card__logotype { inset: 12.5% 0.13% 9.2% 24.19%; width: 75.68%; height: 78.3%; }
.case-card__logo--2 .case-card__logomark { inset: 0 77.83% 0 0; width: 22.17%; height: 100%; }
.case-card__logo--2 .case-card__logotype { inset: 17.5% 0 0 26.24%; width: 73.76%; height: 82.5%; }

.case-card__quote { flex: 1 1 auto; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: 0; }
.case-card__quote mark { background: #ceedff; color: inherit; }

.case-card__divider { flex: none; width: 2px; background: rgba(61, 147, 255, 0.21); }
.case-card__details { position: relative; flex: none; width: 336px; display: flex; flex-direction: column; gap: 32px; }
.case-detail { display: flex; flex-direction: column; gap: 10px; }
.case-detail__title { display: flex; align-items: center; gap: 5px; font-size: 20px; line-height: 31px; font-weight: 600; letter-spacing: -0.002px; }
.case-detail__text { font-size: 14px; color: rgba(14, 13, 40, 0.7); letter-spacing: -0.0014px; }

/* ---------- Resources ---------- */
.resources { position: relative; background: var(--color-bg-soft); }
.resources__bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 526px;
  background: linear-gradient(180deg, rgba(14, 16, 22, 0.9) 0%, rgba(10, 10, 13, 0) 64.354%, #0a0a0d 100%);
  pointer-events: none;
}
.resources__inner { position: relative; padding: 142px 0; }
.resources__text { width: 378px; flex: none; }

.resources__grid { display: flex; gap: 16px; margin-top: 48px; }
.resource-card {
  position: relative;
  min-height: 197px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 24px 24px 24px 120px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: rgba(44, 36, 255, 0.11);
  -webkit-backdrop-filter: blur(115px);
  backdrop-filter: blur(115px);
  overflow: hidden;
}
.resource-card__icon { position: absolute; left: var(--x); top: 37px; width: 147px; height: 147px; opacity: 0.4; max-width: none; }
.resource-card__title { font-size: 24px; line-height: 31px; font-weight: 500; letter-spacing: -0.0096px; }
.resource-card__text { font-size: 14px; line-height: 24px; color: var(--color-text-70); letter-spacing: -0.0014px; }

/* ---------- Why Plexusbit ---------- */
.why__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding: 142px 0; }
.why__intro { width: 495px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.why__text { font-size: 16px; line-height: 31px; }
.why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 565px; flex: none; }
.why-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; align-self: start; }
.why-item__icon { display: grid; width: 32px; height: 32px; }
.why-item__icon img { grid-area: 1 / 1; width: 32px; height: 32px; }
.why-item__title { font-size: 20px; line-height: 31px; font-weight: 500; letter-spacing: -0.002px; }
.why-item__text { color: var(--color-text-70); }
.why-item:nth-child(-n+2) .why-item__text::after { content: "\200b"; display: block; height: 26px; }

/* ---------- Clients speak ---------- */
.clients { width: min(1170px, 100%); margin-inline: auto; overflow-x: clip; }
.clients__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 78px 90px; text-align: center; }
.clients__text { width: 433px; max-width: 100%; font-size: 20px; line-height: 31px; letter-spacing: -0.002px; }

.testimonial { position: relative; width: 990px; max-width: 100%; height: 401px; text-align: left; }
.testimonial__glow { position: absolute; left: -84px; top: -195px; width: 820px; height: 742px; max-width: none; pointer-events: none; }
.testimonial__line { position: absolute; background: none; opacity: 0.6; }
.testimonial__line--h1, .testimonial__line--h2 { left: 0; right: 0; height: 1px; background: linear-gradient(90deg, #141315 0, #fff 16.5%, #eaeaea 86.5%, #020103 100%); }
.testimonial__line--v1, .testimonial__line--v2 { top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, #141315 0, #fff 16.5%, #eaeaea 86.5%, #020103 100%); }
.testimonial__line--h1 { top: 21.45%; }
.testimonial__line--h2 { top: 75.56%; }
.testimonial__line--v1 { left: 42.32%; }
.testimonial__line--v2 { left: 20.4%; }
.testimonial__avatar { position: absolute; left: 20.4%; top: 21.45%; width: 21.92%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.testimonial__body { position: absolute; left: 46.9%; top: 89px; width: 339px; max-width: 50%; display: flex; flex-direction: column; gap: 17px; }
.testimonial__quote { font-size: 23px; line-height: 34px; font-weight: 500; letter-spacing: -0.0023px; }
.testimonial__name { display: block; font-size: 16px; line-height: 26px; }
.testimonial__role { display: block; font-size: 14px; line-height: 26px; color: var(--color-text-70); }
.testimonial__body footer { display: flex; flex-direction: column; }

/* ---------- CTA ---------- */
.cta { padding: 16px 0 69px; }
.cta__card {
  position: relative;
  width: min(1280px, calc(100% - 2 * var(--gutter)));
  height: 473px;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  background: #020103;
  text-align: center;
}
.cta__pattern { position: absolute; inset: 0; overflow: hidden; opacity: 0.1; }
.cta__pattern img { position: absolute; height: 210.49%; width: 122.1%; left: -8.85%; top: -3.52%; max-width: none; }
.cta__glow { position: absolute; left: calc(50% - 692px); top: -646px; width: 1406px; height: 1230px; max-width: none; pointer-events: none; }
.cta__fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 1, 3, 0) 15.638%, #020103 99.856%); }

.cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 924px;
  max-width: 100%;
  margin-inline: auto;
  padding-top: 75px;
}
.cta__title { width: 638px; max-width: 100%; font-size: clamp(40px, 4.44vw, 64px); line-height: 1.0156; font-weight: 500; letter-spacing: -1.6px; }
.cta__text { width: 638px; max-width: 100%; margin-top: 24px; color: var(--color-text-70); }
.cta__content .btn-wrap { margin-top: 15px; }
.cta__note { margin-top: 17px; font-weight: 500; color: rgba(255, 255, 255, 0.3); }

/* ---------- Footer ---------- */
.site-footer { background: #000; border: 1px solid var(--color-border); }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 41px 45px;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; width: 357px; max-width: 100%; }
.site-footer__about { margin-top: 18px; font-family: var(--font-figtree); font-size: 14px; line-height: 1.5; letter-spacing: 0; color: var(--color-text-70); }
.site-footer__social { display: flex; gap: 30px; margin-top: 62px; }
.site-footer__nav { display: flex; gap: 60px; margin-right: auto; margin-left: clamp(0px, 13.75vw, 198px); flex: 1 1 auto; }
.footer-col { display: flex; flex-direction: column; gap: 20px; font-size: 13px; letter-spacing: -0.0013px; }
.footer-col h3 { font-size: 13px; line-height: 26px; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 20px; }
.footer-col a { color: var(--color-text-50); line-height: 26px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ----- Laptop: 1024 – 1439 ----- */
@media (max-width: 1439px) {
  .companies__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 970px; }
  .logo-box { padding: 0 20px; }
  .bento__title, .bento .section-head__text { flex: 1 1 0; width: auto; max-width: 483px; }
  .section-head--features .h2 { flex: 1 1 0; width: auto; }
  .features__intro { flex: 1 1 0; max-width: 483px; }
  .features__body { gap: 24px; }
  .feature-list { width: auto; flex: 1 1 0; gap: 40px; }
  .stack { gap: 32px; }
  .case-card { width: min(906px, calc(100vw - 2 * var(--gutter) - 40px)); }
  .case-card__details { width: 300px; }
  .why__grid, .why__intro { width: auto; flex: 1 1 0; }
  .resources__text { flex: 0 1 378px; }
}

/* ----- Tablet: 768 – 1023 (and down) ----- */
@media (max-width: 1024px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-cta--desktop { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 16px;
    background: rgba(8, 8, 12, 0.96);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .main-nav.is-open { display: block; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; border-radius: 0; }
  .main-nav__link { width: 100%; padding: 12px 8px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .main-nav__cta-mobile { display: block; margin-top: 16px; }

  .hero { padding-top: 72px; min-height: 640px; background-position: 60% top; }
  .hero__content { padding-left: var(--gutter); padding-right: var(--gutter); width: 100%; max-width: 760px; box-sizing: border-box; }

  .companies__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section-head--split { flex-direction: column; gap: 24px; }
  .bento__title, .bento .section-head__text, .section-head--features .h2, .features__intro, .cases__intro, .resources__text { width: 100%; max-width: 640px; flex: none; }
  .section-head--features .h2 { padding-top: 0; }

  .bento-card--build, .bento-card--reports { flex-basis: 100%; }
  .bento-card--scale, .bento-card--improve, .bento-card--modernize { flex: 1 1 calc(50% - 5px); }
  .bento-card--build { min-height: 560px; }
  .bento-card--build .bento-card__art { right: auto; left: 50%; transform: translateX(-50%); }
  .bento-card--build .bento-card__body, .bento-card--reports .bento-card__body { max-width: 380px; }

  .features__panel { padding: 48px 24px; }
  .features__body { flex-direction: column; align-items: stretch; gap: 48px; margin-top: 40px; }
  .feature-list { width: 100%; }
  .stack { justify-content: center; }

  .industries__grid { grid-template-columns: repeat(2, 1fr); }

  .cases__inner { padding-left: var(--gutter); }
  .cases__head { width: calc(100% - var(--gutter)); }

  .resources__grid { flex-direction: column; }
  .why__inner { flex-direction: column; }
  .why__intro, .why__grid { width: 100%; flex: none; }

  .site-footer__inner { flex-wrap: wrap; }
  .site-footer__nav { margin-left: 0; }
}

/* ----- Mobile: 320 – 767 ----- */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .section-head__text--lg { font-size: 17px; line-height: 27px; }

  .hero { min-height: 0; padding-top: 48px; padding-bottom: 340px; background-size: auto 400px; background-position: right bottom; background-repeat: no-repeat; }
  .hero__title { letter-spacing: -0.9px; }
  .hero__text { font-size: 16px; }

  .companies { padding: 40px 0; gap: 24px; }
  .logo-box { padding: 0 12px; height: 72px; }
  .logo-box img { width: 100%; max-width: 155px; height: 28px; }

  .bento { padding: 56px 0; }
  .bento-card, .bento-card--scale, .bento-card--improve, .bento-card--modernize { flex-basis: 100%; }
  .bento-card { padding: 24px; }
  .bento-card--build { min-height: 520px; }
  .bento-card--build .bento-card__art { width: 420px; height: auto; max-width: 140%; }
  .bento-card--reports { min-height: 440px; }
  .bento-card--reports .bento-card__shot { left: 50%; transform: translateX(-50%); -webkit-mask-position: -0px -46px; mask-position: -0px -46px; -webkit-mask-size: 100% 400px; mask-size: 100% 400px; }

  .features__panel { padding: 32px 16px; }
  .feature-list { grid-template-columns: 1fr; gap: 28px; }
  .stack { gap: 24px; transform: none; }
  .stack__layers { transform: scale(0.8); transform-origin: left top; width: 187px; height: 445px; }
  .stack__labels { gap: 36px; }
  .stack__labels li { font-size: 17px; }
  .stack { align-items: center; }

  .industries { padding: 72px 0; }
  .industries__grid { grid-template-columns: 1fr; margin-top: 32px; }
  .industry-card__body { min-height: 0; }

  .cases__inner { padding-top: 72px; padding-bottom: 72px; }
  .cases__controls { flex-wrap: wrap; }
  .case-card { flex-direction: column; width: calc(100vw - 2 * var(--gutter) - 24px); padding: 24px; }
  .case-card__main { flex: none; min-height: 0; width: 100%; }
  .case-card__quote { flex: none; }
  .case-card__quote { font-size: 20px; }
  .case-card__divider { width: 100%; height: 2px; }
  .case-card__details { width: 100%; }
  .case-card__deco { display: none; }

  .resources__inner { padding: 72px 0; }
  .resource-card { padding-left: 100px; }

  .why__inner { padding: 72px 0; }
  .why__grid { grid-template-columns: 1fr; }

  .clients__inner { padding: 56px var(--gutter); }
  .testimonial { height: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 16px; }
  .testimonial__line, .testimonial__glow { display: none; }
  .testimonial__avatar { position: static; width: 217px; max-width: 70%; }
  .testimonial__body { position: static; width: 100%; max-width: 100%; text-align: center; }

  .cta { padding-bottom: 40px; }
  .cta__card { height: auto; padding: 56px 0; }
  .cta__content { padding: 0 20px; }
  .cta__title { letter-spacing: -0.8px; }

  .site-footer__inner { padding: 32px var(--gutter); flex-direction: column; }
  .site-footer__nav { flex-wrap: wrap; gap: 32px; }
}
