/* ==========================================================================
   nGAGE @ Work — marketing site
   Design source: Figma "DPL Website (Old)" › Home (node 8601:703), 1366px frame
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/metropolis-400.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/metropolis-600.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  --purple-700: #763bc1;
  --purple-900: #4f2288;
  --purple-50: #faf6ff;
  --purple-200: #d0acff;
  --purple-100: #e1c9ff;
  --yellow: #f8ca10;
  --yellow-border: #b28f01;
  --red: #ed2024;
  --text: #313131;
  --text-strong: #262626;
  --text-muted: #666;
  --white: #fff;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-alt: "Metropolis", var(--font-body);

  --radius-card: 16px;
  --radius-btn: 4px;
  --shadow-card: 0 1px 30px rgba(0, 0, 0, 0.1);
  --shadow-card-sm: 0 1px 15px rgba(0, 0, 0, 0.1);

  --container: 1104px;
  --header-h: 80px;
  --section-gap: 180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 16px; background: var(--purple-700); color: #fff; border-radius: var(--radius-btn); }
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--purple-700); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; line-height: 1.25;
  color: #000; white-space: nowrap;
  background: var(--yellow);
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius-btn);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: #ffd83a; box-shadow: 0 4px 12px rgba(178, 143, 1, .25); transform: translateY(-1px); }
.btn:active { transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}
.site-header__inner {
  height: 100%;
  width: min(100% - 48px, 1108px); margin-inline: auto;
  display: flex; align-items: center; gap: 40px;
}
.site-header__logo img { width: 131px; height: 36px; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex: 1; }
.site-nav__list { display: flex; gap: 12px; }
.site-nav__list a {
  font-family: var(--font-alt); font-size: 14px; line-height: 42px;
  color: var(--purple-700); white-space: nowrap;
  text-decoration: underline 1px transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { text-decoration-color: currentColor; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 808px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--purple-50);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px));
}
.hero__rings {
  position: absolute; left: -212px; top: -110px;
  width: 1161px; height: 1105px; max-width: none;
  pointer-events: none;
}
.hero__line { position: absolute; left: 0; bottom: 0; width: 100%; height: 42px; z-index: -1; }

.hero__inner {
  position: relative;
  width: min(100% - 48px, 1044px);
  min-height: 808px;
  margin-inline: auto;
}
.hero__text { position: relative; z-index: 2; max-width: 512px; padding-top: 253px; padding-bottom: 120px; }
.hero__eyebrow, .hero__tagline { font-size: 24px; line-height: 1.2; color: #000; }
.hero__title {
  max-width: 440px;
  margin: 12px 0;
  font-size: 46px; font-weight: 600; line-height: 1;
  color: var(--purple-700);
}
.hero__lead { max-width: 428px; margin-top: 36px; color: #000; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 60px; }
.hero__actions .badge img { width: 126px; height: 40px; }
.hero__actions .badge { border-radius: 6px; transition: transform .2s; }
.hero__actions .badge:hover { transform: translateY(-1px); }

/* Visual: 802 × 534 stage from Figma; children positioned in % so it scales */
.hero__visual {
  position: absolute; z-index: 1;
  left: 367px; top: 157px;
  width: 802px; aspect-ratio: 802 / 534;
}
.hero__visual > img { position: absolute; }
.hero__laptop { left: 14.71%; top: 7.68%; width: 85.29%; }
.hero__mobile { left: 13.59%; top: 29.03%; width: 29.05%; }
.deco { transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.deco--stars       { left: 8.11%;  top: 53.52%; width: 9.39%;  transform: translate(-50%, -50%) rotate(114.47deg) scaleY(-1); }
.deco--heart-right { left: 91.64%; top: 45.12%; width: 6.71%; }
.deco--heart-left  { left: 7.60%;  top: 14.04%; width: 4.67%;  --r: -19.92deg; }
.deco--star-yellow { left: 86.37%; top: 13.07%; width: 6.44%;  --r: 12.9deg; }
.deco--thumb       { left: 24.15%; top: 15.68%; width: 9.33%;  --r: -21.99deg; }
.deco--rating      { left: 54.33%; top: 7.55%;  width: 23.45%; --r: 6.28deg; }

@media (prefers-reduced-motion: no-preference) {
  .deco { animation: float 6s ease-in-out infinite; }
  .deco--thumb { animation-delay: -1.5s; }
  .deco--rating { animation-delay: -3s; }
  .deco--star-yellow { animation-delay: -4.5s; }
  .deco--heart-right { animation-delay: -2s; }
  @keyframes float {
    50% { translate: 0 -8px; }
  }
}

/* ---------- Page body & decorative background ---------- */
.page-body { position: relative; isolation: isolate; }
.page-body__glow {
  position: absolute; z-index: -1; left: 50%; top: 231px;
  width: 1389px; height: 2988px; max-width: none;
  transform: translateX(calc(-50% + 36px));
  pointer-events: none;
}
.section { margin-top: var(--section-gap); }

.section-title {
  font-size: 38px; font-weight: 300; line-height: 50px;
  color: var(--text); text-align: center;
}
.section-lead { margin-top: 20px; text-align: center; color: var(--text); }

/* ---------- Pillars (Feedback / Engagement / Growth) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 356px)); justify-content: center; gap: 18px; }
.pillar {
  padding: 40px 30px 42px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 8px 36px rgba(118, 59, 193, .16); }
.pillar__icon { height: 70px; display: flex; align-items: center; justify-content: center; }
.pillar__title { margin-top: 20px; font-size: 38px; font-weight: 300; line-height: 50px; color: #000; }
.pillar__subtitle { margin-top: 8px; font-size: 20px; line-height: 1.2; color: #000; }
.pillar__text { margin-top: 20px; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta { position: relative; }
.cta__rings {
  position: absolute; top: -198px; width: 721px; height: 686px; max-width: none;
  z-index: -1; pointer-events: none;
}
.cta__rings--left { right: calc(50% + 168px); transform: scaleX(-1); }
.cta__rings--right { left: calc(50% + 168px); }
.cta__card {
  position: relative;
  width: min(100%, 880px); margin-inline: auto;
  padding: 80px 24px 82px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.cta__title { font-size: 38px; font-weight: 300; line-height: 50px; color: var(--text); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 43px; }
.stars { position: absolute; display: flex; gap: 1.3px; }
.stars img { width: 23.3px; height: 23.3px; }
.stars--top { top: -12px; right: -25px; }
.stars--bottom { bottom: -12px; left: -25px; }

/* ---------- Learn more (feature tabs) ---------- */
.features { display: grid; grid-template-columns: 470px 612px; justify-content: space-between; gap: 22px; margin-top: 80px; align-items: start; }
.features__tab {
  display: flex; gap: 8px; align-items: flex-start;
  width: 100%; padding: 24px;
  text-align: left; color: inherit;
  background: transparent;
  border: 0; border-bottom: .5px solid rgba(0, 0, 0, .3);
  transition: background-color .2s;
}
.features__tab:hover { background: rgba(0, 0, 0, .025); }
.features__tab[aria-selected="true"] { background: rgba(0, 0, 0, .05); border-bottom-color: #000; }
.features__icon { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.features__name { display: block; font-size: 18px; font-weight: 700; color: var(--text); }
.features__desc { display: block; margin-top: 8px; color: var(--text-muted); }
.features__panel { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.features__panel[hidden] { display: none; }
.features__image {
  width: 100%; aspect-ratio: 612 / 620;
  object-fit: cover; object-position: 48% 50%;
  border-radius: var(--radius-card);
  background: #d9d9d9;
}
.features__caption { color: var(--text-muted); }

/* ---------- Blog / insights carousel ---------- */
.insights__title { max-width: 548px; margin-inline: auto; }
.carousel { margin-top: 40px; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 16px 0 24px; margin: -16px 0 -24px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.post {
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 569px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-sm);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(118, 59, 193, .16); }
.post__image { width: 100%; height: 240px; object-fit: cover; }
.post__tag {
  position: absolute; top: 15px; right: 15px;
  min-width: 73px; padding: 6px 10px;
  font-size: 12px; line-height: 16px; color: #ebeef3; text-align: center;
  border-radius: var(--radius-btn);
  background: var(--purple-700);
}
.post__tag--red { background: #c13b3b; }
.post__tag--green { background: #00775a; }
.post__body { padding: 40px 26px 40px; display: flex; flex-direction: column; }
.post__author { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; line-height: 22px; letter-spacing: .1px; color: var(--text-muted); }
.post__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 600; color: var(--purple-700);
  background: #efe5fb;
}
.post__date { margin-top: 20px; font-size: 14px; font-weight: 500; line-height: 1; color: var(--text-muted); }
.post__title {
  margin-top: 18px;
  font-size: 22px; font-weight: 600; line-height: 29px; color: var(--text-strong);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post__excerpt {
  margin-top: 15px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.carousel__controls { display: flex; justify-content: center; gap: 18px; margin-top: 80px; }
.carousel__btn { padding: 0; border: 0; background: none; border-radius: 4px; transition: opacity .2s; }
.carousel__btn img { width: 42px; height: 30px; }
.carousel__btn:disabled { opacity: .4; cursor: default; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section-gap);
  padding: 75px 0 64px;
  color: var(--white);
  background: var(--purple-900);
}
.site-footer__inner { width: min(100% - 48px, 1104px); margin-inline: auto; }
.site-footer__logo img { width: 169px; height: 47px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 656px) 270px; justify-content: space-between; gap: 48px; margin-top: 54px; }

.contact__title { font-size: 30px; font-weight: 700; line-height: 1.2; }
.contact__lead { margin-top: 18px; font-size: 18px; line-height: 1.4; }
.contact-form { margin-top: 44px; }
.contact-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; padding: 6px 0;
  font: inherit; font-size: 16px; color: var(--white);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .8);
  border-radius: 0;
  transition: border-color .2s;
}
.field textarea { display: block; resize: none; min-height: 36px; max-height: 200px; field-sizing: content; }
.field input::placeholder, .field textarea::placeholder { color: var(--white); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--yellow); }
.field--message { margin-top: 56px; }
.field .req { color: var(--red); }
.field__label { position: absolute; left: 0; top: 6px; pointer-events: none; transition: opacity .15s; }
.field input:not(:placeholder-shown) + .field__label,
.field textarea:not(:placeholder-shown) + .field__label,
.field input:focus + .field__label,
.field textarea:focus + .field__label { opacity: 0; }
.contact-form__submit {
  margin-top: 38px;
  width: 208px; height: 40px;
  font-family: var(--font-alt); font-size: 16px; font-weight: 600;
  color: var(--purple-900);
  background: var(--white); border: 0; border-radius: 20px;
  transition: background-color .2s, transform .2s;
}
.contact-form__submit:hover { background: var(--purple-100); transform: translateY(-1px); }
.contact-form__submit:disabled { opacity: .7; cursor: progress; }
.contact-form__status { min-height: 24px; margin-top: 12px; font-size: 14px; color: var(--purple-100); }

.footer-nav { display: flex; flex-direction: column; gap: 18px; padding-top: 0; }
.footer-nav a { display: flex; align-items: center; gap: 8px; font-family: var(--font-alt); font-size: 20px; line-height: 38px; }
.footer-nav a span { text-underline-offset: 4px; }
.footer-nav a:hover span { color: var(--purple-100); text-decoration: underline; }
.footer-nav__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; }

.site-footer__bottom { display: grid; grid-template-columns: minmax(0, 656px) 289px; justify-content: space-between; gap: 32px; margin-top: 50px; }
.footer-heading { font-family: var(--font-alt); font-size: 16px; font-weight: 600; line-height: 42px; }
.social { display: flex; gap: 12px; }
.social a { transition: transform .2s; }
.social a:hover { transform: translateY(-2px); }
.social img { width: 24px; height: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; font-size: 12px; line-height: 14px; color: var(--purple-200); }
.contact-list li { display: flex; gap: 11px; align-items: flex-start; }
.contact-list img { width: 14px; height: 14px; flex: none; }
.contact-list a:hover { color: var(--white); }
.contact-list address { font-style: normal; }
.copyright { margin-top: 38px; font-size: 12px; line-height: 12px; color: var(--purple-200); }
.copyright a:hover { color: var(--white); text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .site-header__inner { gap: 24px; }
  .site-nav { gap: 24px; }
  .features { grid-template-columns: 1fr 1.3fr; }
}

@media (max-width: 1100px) {
  /* Mobile navigation */
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-left: auto;
    background: none; border: 0; color: var(--purple-700);
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; display: block; width: 24px; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform .2s, opacity .2s;
  }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before { position: absolute; top: -7px; }
  .nav-toggle__bar::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 24px 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; font-size: 16px; line-height: 48px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .site-nav .btn { align-self: flex-start; padding: 12px 24px; font-size: 14px; }
}

@media (max-width: 1060px) {
  :root { --section-gap: 120px; }

  /* Hero stacks */
  .hero, .hero__inner { min-height: 0; }
  .hero__text { max-width: 560px; padding-top: calc(var(--header-h) + 64px); padding-bottom: 32px; }
  .hero__visual { position: relative; left: auto; top: auto; width: min(100%, 700px); margin: 0 auto 88px; }

  .pillars { grid-template-columns: minmax(0, 520px); }
  .features { grid-template-columns: 1fr; }
  .features__panel { order: -1; }
  .features__image { aspect-ratio: 16 / 10; }
  .carousel__track { grid-auto-columns: calc((100% - 18px) / 2); }

  .site-footer__grid, .site-footer__bottom { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-gap: 88px; }
  .hero__eyebrow, .hero__tagline { font-size: 20px; }
  .hero__title { font-size: 36px; }
  .hero__actions { margin-top: 36px; }
  .section-title, .cta__title, .pillar__title { font-size: 30px; line-height: 40px; }
  .cta__card { padding: 56px 20px; }
  .stars--top { right: -8px; }
  .stars--bottom { left: -8px; }
  .features__tab { padding: 18px 12px; }
  .carousel__track { grid-auto-columns: 86%; }
  .post { min-height: 0; }
  .contact-form__row { grid-template-columns: 1fr; gap: 32px; }
  .field--message { margin-top: 32px; }
}
