/* =========================================================
   DigiMark-faithful homepage — Roots Tech LLC color scheme
   ========================================================= */

/* Home: cleaner DigiMark surface (less orb noise) */
body.is-home .page-orbs,
body.is-home .spotlight {
  display: none;
}

body.is-home {
  background: #071018;
}

html[data-theme="light"] body.is-home {
  background: #eef2f6;
}

/* Transparent header over video hero */
body.is-home .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.section-pad {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

.dm-section-sub {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.dm-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.dm-section-except {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42ch;
}

/* ---------- Buttons (DigiMark primary style) ---------- */
.dm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #040a10;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.dm-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
  color: #040a10;
}

.dm-btn-dark {
  background: #040a10;
  color: #fff;
}

.dm-btn-dark:hover {
  background: #0a1e2e;
  color: #fff;
}

.dm-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.dm-btn-outline:hover {
  background: var(--surface-solid);
  color: var(--ink);
}

/* ---------- HERO ---------- */
.dm-hero-section {
  position: relative;
  height: 78vh;
  max-height: 780px;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: #000;
  contain: layout paint;
}

@supports (height: 100dvh) {
  .dm-hero-section {
    height: 78dvh;
    max-height: 780px;
    min-height: 520px;
  }
}

.dm-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.dm-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, transparent, rgba(0, 0, 0, 0.82));
}

.dm-hero-inner {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding: 50px 100px 1.25rem;
  box-sizing: border-box;
  overflow: hidden;
  margin-inline: 0 !important;
}

.dm-hero-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: min(580px, 54%);
  flex: 1;
  padding-left: 0;
}

.dm-hero-eyebrow {
  overflow: hidden;
}

.dm-flip-line {
  display: inline-block;
  color: var(--accent);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dm-hero-title {
  margin: 0;
  color: #fff !important;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  max-width: 12ch;
  /* Keep white in light mode — don't use theme heading gradient */
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #fff !important;
  text-fill-color: #fff !important;
}

html[data-theme="light"] .dm-hero-title,
html[data-theme="light"] .dm-hero-section h1.dm-hero-title {
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-theme="light"] .dm-hero-section .dm-flip-line {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
}

.dm-hero-actions {
  margin-top: 0.85rem;
}

/* Plan card */
.dm-plan-card {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 3;
  width: min(300px, 34%);
  flex: none;
  margin-right: 0;
  padding: 1.15rem 1.1rem 1.05rem;
  border-radius: 1.1rem;
  background: rgba(7, 16, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  align-self: center;
}

.dm-plan-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.dm-plan-card > p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.dm-plan-form {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dm-plan-form label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

.dm-plan-form input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
}

.dm-plan-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.dm-plan-form .dm-btn {
  margin-top: 0.55rem;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  font-size: 0.88rem;
}

/* ---------- RIBBON ---------- */
.dm-ribbon {
  background: var(--accent);
  margin-top: 0;
  padding: 1.35rem 0;
  overflow: hidden;
}

.dm-ribbon-track {
  display: flex;
  width: max-content;
  animation: dmRibbon 32s linear infinite;
}

.dm-ribbon-slide {
  display: flex;
  align-items: center;
  flex: none;
}

.dm-ribbon-text {
  flex: none;
  margin-right: 1.5rem;
  color: #040a10;
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.dm-ribbon-dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 1.5rem;
  border-radius: 50%;
  background: #040a10;
}

@keyframes dmRibbon {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .dm-ribbon-track { animation: none; }
}

/* ---------- OVERVIEW / STATS ---------- */
.dm-overview {
  position: relative;
  padding: 0;
  overflow: clip;
}

.dm-overview > .container {
  position: relative;
  z-index: 2;
}

.dm-overview-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 320vh;
  padding-bottom: 10vh;
}

.dm-overview-sticky {
  text-align: center;
  position: sticky;
  top: 28vh;
  z-index: 1;
  padding-top: 8vh;
  margin-bottom: 12vh;
}

.dm-overview-sub {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.dm-overview-title {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.03em;
}

.dm-overview-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
  max-width: 980px;
  position: relative;
  z-index: 2;
  padding-bottom: 8vh;
}

.dm-counter {
  text-align: center;
}

.dm-counter-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  white-space: nowrap;
}

.dm-counter-label {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.dm-overview-glow {
  position: absolute;
  top: 18%;
  right: -10%;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 980px) {
  .dm-overview-block {
    height: auto;
    min-height: 0;
    padding: clamp(4rem, 8vw, 6rem) 0;
    gap: 3rem;
  }

  .dm-overview-sticky {
    position: static;
    padding-top: 0;
    margin-bottom: 0;
  }

  .dm-overview-counters {
    padding-bottom: 0;
  }
}

/* ---------- WHO WE ARE ---------- */
.dm-who-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.dm-who-visual {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0a1520;
}

.dm-who-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-who-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.dm-who-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.dm-who-content .dm-section-title {
  max-width: 22ch;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.dm-who-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dm-who-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.dm-who-icon {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.dm-who-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.dm-who-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- SERVICES ---------- */
.dm-services-section {
  background: var(--surface-solid);
  position: relative;
  overflow: clip;
}

html[data-theme="dark"] .dm-services-section {
  background: #0c1a24;
}

.dm-services-head-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
}

.dm-services-list {
  border-top: 1px solid var(--line);
}

.dm-service-row {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.dm-service-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}

.dm-service-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.9;
}

.dm-service-copy h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
}

.dm-service-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.5;
}

.dm-service-arrow {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.dm-service-bg {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.dm-service-row:hover .dm-service-bg {
  transform: translateY(0);
}

.dm-service-row:hover .dm-service-num,
.dm-service-row:hover .dm-service-copy h3,
.dm-service-row:hover .dm-service-copy p,
.dm-service-row:hover .dm-service-arrow {
  color: #040a10;
}

.dm-service-row:hover .dm-service-arrow {
  border-color: #040a10;
  background: rgba(4, 17, 13, 0.08);
  transform: rotate(-12deg);
}

/* ---------- PROCESS ---------- */
.dm-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.dm-process-step {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--ink);
}

.dm-process-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.dm-process-step h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.dm-process-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* ---------- INDUSTRIES ---------- */
.dm-industries {
  background: var(--surface-solid);
}

html[data-theme="dark"] .dm-industries {
  background: #0c1a24;
}

.dm-industry-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.dm-industry-cloud span {
  display: inline-flex;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.dm-industry-cloud span:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: #040a10;
  border-color: var(--accent);
}

/* ---------- FAQs ---------- */
.dm-faqs-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.dm-faqs-intro .dm-section-title {
  margin-bottom: 1rem;
}

.dm-faqs-intro .dm-btn {
  margin-top: 0.5rem;
}

.dm-faqs-list {
  max-width: none;
  width: 100%;
  gap: 0;
}

.dm-faqs .faq-item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 0 1.25rem !important;
  box-shadow: none !important;
}

.dm-faqs .faq-item summary {
  padding: 1.2rem 2.25rem 1.2rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.dm-faqs .faq-item summary::-webkit-details-marker {
  display: none;
}

.dm-faqs .faq-item p {
  margin: 0;
  padding: 0 0 1.25rem;
  color: var(--muted) !important;
  line-height: 1.55;
}

/* ---------- CASE STUDIES ---------- */
.dm-cases {
  overflow: hidden;
}

.dm-cases .dm-section-title {
  margin-bottom: 2rem;
  max-width: 16ch;
}

.dm-cases-rail {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 1.5rem;
  scrollbar-width: thin;
  cursor: grab;
}

.dm-cases-rail:active {
  cursor: grabbing;
}

.dm-cases-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.dm-case-card {
  position: relative;
  flex: none;
  width: min(72vw, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 1.25rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.dm-case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dm-case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}

.dm-case-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  z-index: 2;
}

.dm-case-result {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #040a10;
  font-size: 0.78rem;
  font-weight: 700;
}

.dm-case-meta h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.dm-case-meta p {
  margin: 0;
  opacity: 0.75;
  font-size: 0.9rem;
}

.dm-case-card:hover img {
  transform: scale(1.06);
}

.dm-cases-foot {
  margin-top: 1.5rem;
}

/* ---------- TESTIMONIALS ---------- */
.dm-testimonials {
  background: var(--surface-solid);
}

html[data-theme="dark"] .dm-testimonials {
  background: #0c1a24;
}

.dm-t-card {
  margin: 0;
  padding: 1.75rem 1.75rem 1.65rem 1.85rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--line);
  box-sizing: border-box;
}

.dm-t-card p {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  font-weight: 500;
}

.dm-t-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dm-t-card strong {
  font-size: 1rem;
}

.dm-t-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Testimonial arrows — always visible (not only on hover) */
.dm-testimonials .slider-controls {
  margin-top: 1.75rem;
}

.dm-testimonials .slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
}

.dm-testimonials .slider-btn:hover,
.dm-testimonials .slider-btn:focus {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #040a10 !important;
  transform: translateY(-2px) scale(1.04);
}

html[data-theme="light"] .dm-testimonials .slider-btn {
  border: 1px solid rgba(7, 16, 24, 0.18) !important;
  background: #fff !important;
  color: #071018 !important;
  box-shadow: 0 6px 18px rgba(7, 16, 24, 0.08) !important;
}

html[data-theme="light"] .dm-testimonials .slider-btn:hover,
html[data-theme="light"] .dm-testimonials .slider-btn:focus {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #040a10 !important;
}

.dm-testimonials .slider-dot {
  background: rgba(255, 255, 255, 0.28);
}

.dm-testimonials .slider-dot.is-active {
  background: var(--accent);
}

html[data-theme="light"] .dm-testimonials .slider-dot {
  background: rgba(7, 16, 24, 0.2);
}

/* ---------- BLOG ---------- */
.dm-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.dm-blog-post {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dm-blog-media {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a1520;
}

.dm-blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dm-blog-media:hover img {
  transform: scale(1.05);
}

.dm-blog-date {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.78rem;
  backdrop-filter: blur(6px);
}

.dm-blog-cat {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.dm-blog-body h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.dm-blog-body h3 a {
  color: inherit;
  text-decoration: none;
}

.dm-blog-body h3 a:hover {
  color: var(--accent);
}

/* ---------- CTA ---------- */
.dm-cta-inner {
  text-align: center;
}

.dm-cta-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
}

.dm-cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.dm-cta-circle {
  position: relative;
  width: clamp(5.5rem, 12vw, 7.5rem);
  height: clamp(5.5rem, 12vw, 7.5rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #040a10;
  text-decoration: none;
  flex: none;
}

.dm-cta-circle:hover {
  transform: scale(1.05);
}

.dm-cta-spin {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  animation: dmSpin 12s linear infinite;
  opacity: 0;
  /* hide text ring for cleaner look; circle icon is enough */
  pointer-events: none;
}

@keyframes dmSpin {
  to { transform: rotate(360deg); }
}

.dm-cta-awards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.dm-cta-awards span {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.dm-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ---------- Newsletter popup (keep) ---------- */
.nl-popup[hidden] { display: none !important; }

.nl-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.nl-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.nl-popup-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 1.25rem;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nl-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.nl-popup-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.nl-popup-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .dm-overview-counters {
    grid-template-columns: repeat(2, 1fr);
  }

  .dm-who-grid,
  .dm-services-head-grid,
  .dm-faqs-grid {
    grid-template-columns: 1fr;
  }

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

  .dm-who-video {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }

  .dm-who-visual {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }

  .dm-blog-grid {
    grid-template-columns: 1fr;
  }

  .dm-plan-card {
    width: min(340px, 100%);
    align-self: stretch;
    margin-right: 0;
  }

  .dm-hero-inner {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    width: 100% !important;
    padding: 50px 28px 28px;
    overflow-y: auto;
  }

  .dm-hero-block {
    max-width: none;
    padding-left: 0;
  }

  .dm-hero-img {
    object-position: 62% center;
  }

  .dm-hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 100%);
  }

  .dm-hero-section {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }

  @supports (height: 100dvh) {
    .dm-hero-section {
      min-height: 0;
      height: auto;
      max-height: none;
    }
  }
}

@media (max-width: 640px) {
  .dm-service-inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dm-service-arrow {
    display: none;
  }

  .dm-process-grid {
    grid-template-columns: 1fr;
  }

  .dm-cta-title-row {
    flex-direction: column;
  }

  .dm-hero-title {
    max-width: none;
    font-size: clamp(1.7rem, 8.5vw, 2.35rem);
  }

  .dm-hero-section {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }

  .dm-hero-media {
    position: absolute;
    inset: 0;
  }

  .dm-hero-img {
    object-fit: cover;
    object-position: 70% center;
  }

  .dm-hero-inner {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 50px 18px 28px;
    gap: 2rem;
    justify-content: flex-start;
    overflow: visible;
  }

  .dm-hero-block {
    max-width: none;
  }

  .dm-hero-actions {
    margin-top: 0.65rem;
  }

  .dm-hero-actions .dm-btn {
    width: 100%;
    justify-content: center;
  }

  .dm-plan-card {
    width: 100%;
    margin: 0;
    padding: 1rem 0.95rem 0.9rem;
  }

  .dm-plan-card h3 {
    font-size: 1.05rem;
  }

  .dm-plan-form .dm-btn {
    width: 100%;
  }
}
