/* ============================================================
   HERO SYSTEM — dreambit.io
   Namespaced under .hero-sys to avoid leaking into other components.
   Pixel values copied verbatim from Hero System.html (design source).
   ============================================================ */

/* ---------- tokens ---------- */
.hero-sys {
  --hs-ink:        #0A1322;
  --hs-ink-2:      #1B2436;
  --hs-muted:      #6B7280;
  --hs-line:       #E8EAEF;
  --hs-paper:      #FFFFFF;
  --hs-cream:      #F7F6F1;
  --hs-blue:       #385098;
  --hs-blue-ink:   #2A3F7C;
  --hs-blue-hover: #445FAE;
  --hs-blue-tint:  #EEF1F8;
  --hs-blue-soft:  #E1E7F4;
  --hs-accent:     var(--hs-blue);
  --hs-accent-ink: var(--hs-blue-ink);
  --hs-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
             "Courier New", monospace;
}

/* ---------- base section ---------- */
.hero-sys {
  position: relative;
  overflow: hidden;
  background: var(--hs-cream);
  color: var(--hs-ink);
  padding: 56px 0 92px;
  border-bottom: 1px solid var(--hs-line);
  font-size: 17px;
  line-height: 1.5;
}

/* dot grid */
.hero-sys::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(56, 80, 152, .16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(700px 380px at 92% 18%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(700px 380px at 92% 18%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* radial glow */
.hero-sys::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(56, 80, 152, .10), transparent 60%);
  pointer-events: none;
}

.hero-sys > .hero-sys__wrap {
  position: relative;
  z-index: 1;
}

/* ---------- container ---------- */
.hero-sys__wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- breadcrumb ---------- */
.hero-sys__crumb {
  font-size: 14px;
  color: var(--hs-muted);
  padding-bottom: 8px;
}
.hero-sys__crumb a {
  color: var(--hs-muted);
  text-decoration: none;
}
.hero-sys__crumb a:hover { color: var(--hs-ink); }
.hero-sys__crumb .sep { margin: 0 10px; opacity: .5; }
.hero-sys__crumb .here { color: var(--hs-ink); }

/* ---------- eyebrow ---------- */
.hero-sys__eyebrow {
  font-family: var(--hs-mono);
  font-size: 13px;
  color: var(--hs-muted);
  text-transform: lowercase;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.hero-sys__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--hs-ink);
  display: inline-block;
}

/* ---------- grid ---------- */
.hero-sys__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 72px;
  align-items: end;
  margin-top: 40px;
}
.hero-sys__grid--lean {
  grid-template-columns: 1fr;
  max-width: 1000px;
}

/* ---------- headline ---------- */
.hero-sys h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(54px, 6.6vw, 100px);
  letter-spacing: -0.045em;
  line-height: .95;
  font-weight: 700;
  margin: 24px 0 0;
  color: var(--hs-ink);
}

.hero-sys h1 .hs-underline {
  position: relative;
  color: var(--hs-accent);
  white-space: nowrap;
}
.hero-sys h1 .hs-underline::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: .06em;
  height: .16em;
  background: var(--hs-underline-tint, rgba(56, 80, 152, .18));
  z-index: -1;
  border-radius: 2px;
}
.hero-sys h1 em {
  font-style: normal;
  color: var(--hs-accent);
}
.hero-sys h1 .hs-light {
  color: var(--hs-muted);
  font-weight: 400;
}

/* ---------- copy column ---------- */
.hero-sys__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- lead ---------- */
.hero-sys__lead {
  font-size: 20px;
  color: var(--hs-ink-2);
  line-height: 1.5;
  max-width: 560px;
  margin: 32px 0 32px;
}
.hero-sys__grid--lean .hero-sys__lead {
  max-width: 720px;
}

/* ---------- buttons ---------- */
.hero-sys__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.hs-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.hs-btn:focus-visible {
  outline: 3px solid var(--hs-accent);
  outline-offset: 3px;
}
.hs-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.hs-btn--primary {
  background: var(--hs-accent);
  color: #fff;
}
.hs-btn--primary:hover { background: var(--hs-accent-ink); }

.hs-btn--outline {
  border: 1.5px solid var(--hs-ink);
  color: var(--hs-ink);
  background: transparent;
}
.hs-btn--outline:hover {
  background: var(--hs-ink);
  color: #fff;
}

/* ---------- context card chrome ---------- */
.hs-card {
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 1px 0 rgba(11, 19, 34, .02),
              0 28px 60px -36px rgba(56, 80, 152, .32);
  position: relative;
}
.hs-card__ribbon {
  position: absolute;
  top: -1px;
  left: 32px;
  right: 32px;
  height: 3px;
  background: var(--hs-accent);
  border-radius: 0 0 3px 3px;
}
.hs-card__title {
  font-family: var(--hs-mono);
  font-size: 12px;
  color: var(--hs-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 22px;
}

/* spec rows */
.hs-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px dashed var(--hs-line);
}
.hs-spec:last-of-type { border-bottom: 0; }
.hs-spec__k { font-size: 14px; color: var(--hs-muted); }
.hs-spec__v {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hs-ink);
}
.hs-spec__v .hs-accent-val { color: var(--hs-accent); }

/* card footnote */
.hs-card__footnote {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hs-line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--hs-muted);
}
.hs-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16A36A;
  box-shadow: 0 0 0 0 rgba(22, 163, 106, .6);
  animation: hs-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes hs-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 106, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(22, 163, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 106, 0); }
}

/* tile list */
.hs-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--hs-line);
}
.hs-tile:last-child { border-bottom: 0; }
.hs-tile__n {
  font-family: var(--hs-mono);
  font-size: 12px;
  color: var(--hs-muted);
  width: 22px;
  flex-shrink: 0;
}
.hs-tile__t {
  font-size: 16px;
  font-weight: 500;
  color: var(--hs-ink);
  flex: 1;
}
.hs-tile__arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hs-blue-tint);
  color: var(--hs-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.hs-tile__arrow svg { width: 12px; height: 12px; }
.hs-case-row__arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hs-blue-tint);
  color: var(--hs-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hs-case-row__arrow svg { width: 12px; height: 12px; }

/* tech grid */
.hs-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hs-tech-grid__cell {
  aspect-ratio: 1.4 / 1;
  display: grid;
  place-items: center;
  color: var(--hs-ink-2);
  font-weight: 600;
  font-size: 14px;
  border-right: 1px solid var(--hs-line);
  border-bottom: 1px solid var(--hs-line);
}
.hs-tech-grid__cell:nth-child(3n)          { border-right: 0; }
.hs-tech-grid__cell:nth-last-child(-n + 3) { border-bottom: 0; }
.hs-tech-grid__cell--featured {
  background: var(--hs-accent);
  color: #fff;
}

/* cases card */
.hs-case-frame {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1A3478, #385098);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: #fff;
}
.hs-case-frame__ph {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 36px;
  font-weight: 700;
}
.hs-case-list { display: flex; flex-direction: column; margin-top: 14px; }
.hs-case-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px dashed var(--hs-line);
  text-decoration: none;
  color: inherit;
}
.hs-case-row:last-child { border-bottom: 0; }
.hs-case-row__swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}
.hs-case-row__swatch--a { background: linear-gradient(135deg, #FF8551, #E94B36); }
.hs-case-row__swatch--b { background: linear-gradient(135deg, #385098, #7E97D9); }
.hs-case-row__swatch--c { background: linear-gradient(135deg, #1A3478, #0A1322); }
.hs-case-row__meta { flex: 1; }
.hs-case-row__name { font-size: 15px; font-weight: 600; }
.hs-case-row__ind {
  font-size: 12px;
  color: var(--hs-muted);
  font-family: var(--hs-mono);
}

/* proof badges */
.hs-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(11, 19, 34, .08);
}
.hs-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--hs-line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hs-badge__clutch { display: flex; gap: 3px; }
.hs-badge__clutch i {
  width: 6px;
  height: 14px;
  background: #EE4036;
  border-radius: 1px;
  display: inline-block;
}
.hs-badge__clutch i:nth-child(2) { background: #FFB81C; }
.hs-badge__clutch i:nth-child(3) { background: #17A56F; }
.hs-badge strong { font-size: 14px; }
.hs-badge small  { font-size: 12px; color: var(--hs-muted); display: block; }
.hs-stars { color: #FFB000; letter-spacing: 1px; font-size: 14px; }

/* ---------- VARIANT: home ---------- */
.hero-sys--home { padding: 56px 0 0; }
@media (max-width: 768px) {
  .hero-sys--home { padding: 16px 0 0; }
}
.hs-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--hs-line);
}
.hs-stats-strip__stat {
  padding: 32px 28px;
  border-right: 1px solid var(--hs-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hs-stats-strip__stat:last-child { border-right: 0; }
.hs-stats-strip__num {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-family: 'Inter', system-ui, sans-serif;
}
.hs-stats-strip__num .hs-accent-val { color: var(--hs-accent); }
.hs-stats-strip__lbl {
  font-size: 13px;
  color: var(--hs-muted);
  font-family: var(--hs-mono);
}

/* ---------- VARIANT: services ---------- */
.hero-sys--services { background: #FBFBF6; }

/* ---------- VARIANT: cases ---------- */
.hero-sys--cases .hs-card { padding: 14px; }

/* ---------- VARIANT: tech ---------- */
.hero-sys--tech { background: #F4F6FB; }

/* ---------- VARIANT: about ---------- */
.hero-sys--about {
  background: #0A1322;
  color: #fff;
  border-bottom: 0;
}
.hero-sys--about::before {
  background-image: radial-gradient(rgba(126, 151, 217, .22) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.hero-sys--about::after {
  background: radial-gradient(circle at center, rgba(56, 80, 152, .4), transparent 60%);
  width: 760px;
  height: 760px;
}
.hero-sys--about .hero-sys__crumb        { color: rgba(255,255,255,.6); }
.hero-sys--about .hero-sys__crumb a      { color: rgba(255,255,255,.6); }
.hero-sys--about .hero-sys__crumb a:hover{ color: #fff; }
.hero-sys--about .hero-sys__crumb .here  { color: #fff; }
.hero-sys--about .hero-sys__eyebrow      { color: rgba(255,255,255,.7); }
.hero-sys--about .hero-sys__eyebrow::before { background: rgba(255,255,255,.7); }
.hero-sys--about h1 {
  color: #fff;
  text-align: center;
  max-width: 1080px;
  margin: 36px auto 0;
}
.hero-sys--about h1 em,
.hero-sys--about h1 .hs-underline        { color: #7E97D9; }
.hero-sys--about h1 .hs-underline::after { background: rgba(126, 151, 217, .22); }
.hero-sys--about .hero-sys__lead {
  color: rgba(255,255,255,.75);
  text-align: center;
  max-width: 760px;
  margin: 32px auto 32px;
}
.hero-sys--about .hero-sys__actions      { justify-content: center; }
.hero-sys--about .hs-btn--primary        { background: #7E97D9; color: var(--hs-ink); }
.hero-sys--about .hs-btn--outline {
  border-color: rgba(255,255,255,.4);
  color: #fff;
  background: transparent;
}
.hero-sys--about .hs-btn--outline:hover  { background: #fff; color: var(--hs-ink); }
.hero-sys--about .hs-btn:focus-visible {
  outline-color: #7E97D9;
}
.hero-sys--about .hero-sys__eyebrow-wrap { text-align: center; }
.hero-sys--about .hs-meta-row {
  justify-content: center;
  border-top-color: rgba(255,255,255,.1);
}
.hero-sys--about .hs-badge {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.hero-sys--about .hs-badge small         { color: rgba(255,255,255,.5); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-sys__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hs-stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .hs-stats-strip__stat:nth-child(2) { border-right: 0; }
  .hs-stats-strip__stat             { border-bottom: 1px solid var(--hs-line); }
}

@media (max-width: 680px) {
  .hero-sys__wrap { padding: 0 20px; }
  .hero-sys h1    { font-size: 48px; }
  .hero-sys--home { padding-top: 16px; }
  .hero-sys__eyebrow { margin-top: 8px; }
  .hero-sys__grid { margin-top: 24px; }
  .hs-stats-strip { grid-template-columns: 1fr; margin-top: 48px; }
  .hs-stats-strip__stat { border-right: 0; }
}

@media print {
  .hero-sys--about { background: #fff; color: var(--hs-ink); }
  .hero-sys--about h1,
  .hero-sys--about .hero-sys__lead { color: var(--hs-ink); text-align: left; }
  .hero-sys::before,
  .hero-sys::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-btn { transition: none; }
  .hs-pulse { animation: none; }
}

/* ---------- award labels section ---------- */
.section-award-labels {
  background: #f4f4f4;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}
@media (max-width: 767px) {
  .section-award-labels {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}
