/* =========================================================================
   <WebHero /> — Website Design & Development §1
   Deep navy, all-dark theme. Browser + phone mockup, hero stat strip.
   Also vendors the shared .cwd-btn used across the page (cwd-partner).
   Distinct namespace from cv-* (website-to-app.html).
   ========================================================================= */

.cwd-hero {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cwd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 82% 16%, rgba(232,180,0,0.085), transparent 70%),
    radial-gradient(900px 520px at 6% 94%, rgba(255,255,255,0.028), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cwd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 132px var(--container-pad) 0;
}

/* ---- top: copy | visual ------------------------------------------------- */
.cwd-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 72px;
}

.cwd-hero__copy { max-width: 620px; }

.cwd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 26px 0;
}
.cwd-hero__eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--color-accent);
  display: inline-block;
}

.cwd-hero__title {
  font-family: var(--font-display);     /* → Anybody (re-routed on #main) */
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 28px 0;
  text-wrap: balance;
}
.cwd-hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.cwd-hero__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  margin: 0 0 36px 0;
  max-width: 560px;
  text-wrap: pretty;
}

.cwd-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0 0 18px 0;
}

/* ---- shared button (used here + in cwd-partner) ------------------------- */
.cwd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 220ms var(--ease-out-soft),
    box-shadow 220ms var(--ease-out-soft),
    background 220ms var(--ease-out-soft),
    color 220ms var(--ease-out-soft),
    border-color 220ms var(--ease-out-soft);
}
.cwd-btn__arrow { transition: transform 220ms var(--ease-out-soft); }

.cwd-btn--primary {
  background: linear-gradient(180deg, var(--color-accent-hi), var(--color-accent));
  color: var(--color-primary);
  padding: 17px 26px;
  box-shadow: 0 8px 22px -12px rgba(232,180,0,0.5);
}
.cwd-btn--primary:hover {
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dark));
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(232,180,0,0.42);
}
.cwd-btn--primary:hover .cwd-btn__arrow { transform: translateX(3px); }
.cwd-btn--primary:active { transform: translateY(0) scale(0.985); }
.cwd-btn--primary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

.cwd-btn--ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,0.20);
  padding: 17px 22px;
}
.cwd-btn--ghost:hover {
  color: var(--color-accent);
  border-color: rgba(232,180,0,0.55);
}
.cwd-btn--ghost:hover .cwd-btn__arrow { transform: translateX(3px); }

.cwd-hero__cta-sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.01em;
}

/* ---- visual: browser + phone mockup ------------------------------------ */
.cwd-hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 5 / 4;
}

.cwd-browser {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(160deg, #17284f 0%, #0c1a3d 60%, #0a1635 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 40px 80px -36px rgba(0,0,0,0.70),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
}
.cwd-browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cwd-browser__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.cwd-browser__dot:first-child { background: rgba(232,180,0,0.55); }
.cwd-browser__url {
  margin-left: 12px;
  height: 16px;
  flex: 1;
  max-width: 240px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
}
.cwd-browser__viewport {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 30px;
}
/* Service photo fills the browser viewport — reads as a real site we shipped */
.cwd-browser:has(.cwd-hero__img) .cwd-browser__viewport { padding: 0; gap: 0; }
.cwd-hero__img {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: center top;
  transform: scale(1.02); transform-origin: center;
  transition: transform 700ms var(--ease-out-soft);
}
.cwd-hero__visual:hover .cwd-hero__img { transform: scale(1.06); }
.cwd-browser__chip {
  width: 78px; height: 12px;
  border-radius: 999px;
  background: rgba(232,180,0,0.30);
}
.cwd-browser__line {
  height: 13px;
  border-radius: 5px;
  background: rgba(255,255,255,0.13);
}
.cwd-browser__line--xl { width: 88%; height: 20px; background: rgba(255,255,255,0.24); }
.cwd-browser__line--lg { width: 72%; }
.cwd-browser__line--md { width: 56%; background: rgba(255,255,255,0.09); }
.cwd-browser__pill {
  margin-top: 6px;
  width: 116px; height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.cwd-browser__cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cwd-browser__cards span {
  height: 52px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

/* floating phone — overlaps the browser for device-composition depth */
.cwd-phone {
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 122px;
  aspect-ratio: 9 / 18.5;
  border-radius: 22px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: linear-gradient(165deg, #1d2f59 0%, #0c1a3d 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.75);
}
.cwd-phone__notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
}
.cwd-phone__line {
  margin-top: 4px;
  height: 9px;
  border-radius: 4px;
  background: rgba(255,255,255,0.14);
}
.cwd-phone__line--lg { height: 30px; background: rgba(255,255,255,0.10); border-radius: 8px; }
.cwd-phone__pill {
  margin-top: auto;
  height: 24px;
  border-radius: 999px;
  background: rgba(232,180,0,0.28);
}

/* ---- stat strip --------------------------------------------------------- */
.cwd-hero__stats {
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 34px 0;
}
.cwd-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 8px;
  position: relative;
}
.cwd-hero__stat + .cwd-hero__stat::before {
  content: "";
  position: absolute;
  left: -12px; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.cwd-hero__stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.cwd-hero__stat-num em { font-style: normal; color: var(--color-accent); }
.cwd-hero__stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.55);
  max-width: 20ch;
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .cwd-hero__top {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 56px;
  }
  .cwd-hero__copy { max-width: 640px; }
  .cwd-hero__visual { justify-self: start; max-width: 480px; }
}
@media (max-width: 900px) {
  .cwd-hero__inner { padding-top: 108px; }
  .cwd-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .cwd-hero__stat + .cwd-hero__stat::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cwd-hero__img { transition: none; transform: none; }
  .cwd-hero__visual:hover .cwd-hero__img { transform: none; }
}
@media (max-width: 540px) {
  .cwd-hero__inner { padding: 92px 18px 0; }
  .cwd-hero__title { font-size: clamp(32px, 9vw, 44px); }
  .cwd-hero__ctas { width: 100%; }
  .cwd-btn--primary, .cwd-btn--ghost { width: 100%; justify-content: center; }
  .cwd-hero__visual { max-width: 100%; aspect-ratio: 4 / 3.4; }
  .cwd-phone { width: 96px; right: 2px; }
  .cwd-hero__stats { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
}
