/**
 * Digitalab Lab layout — MOBILE FIRST
 * Base = phone. Then min-width enhances for tablet/desktop.
 */
:root {
  --dl-bg: #060509;
  --dl-card: #0d0b10;
  --dl-card-2: #15111c;
  --dl-primary: #9059e0;
  --dl-pink: #ec4899;
  --dl-accent: #ed3838;
  --dl-text: #f6f2fa;
  --dl-muted: #aaa3b4;
  --dl-border: rgba(255, 255, 255, 0.1);
  --dl-radius: 16px;
  --dl-container: min(1160px, calc(100% - 1.5rem));
  --dl-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --dl-header-h: 58px;
  --dl-sticky-h: 56px;
  --dl-safe-bottom: calc(var(--dl-sticky-h) + 1rem + env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.dl-site {
  margin: 0;
  padding-bottom: var(--dl-safe-bottom);
  background: var(--dl-bg);
  color: var(--dl-text);
  font-family: Heebo, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.admin-bar .dl-header { top: 46px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.dl-main { min-height: 50vh; }
.dl-container { width: var(--dl-container); margin-inline: auto; }
.dl-narrow { max-width: 780px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.dl-kicker {
  margin: 0 0 0.55rem;
  color: #c9a9f4;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem Heebo, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.dl-btn:active { transform: scale(0.98); }
.dl-btn-primary {
  background: linear-gradient(120deg, var(--dl-primary), var(--dl-pink));
  color: #fff;
  box-shadow: 0 8px 24px rgba(144, 89, 224, 0.28);
}
.dl-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--dl-border);
  color: #fff;
}
.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.dl-actions .dl-btn { width: 100%; }
.dl-center { text-align: center; margin-top: 1.5rem; }

/* —— Header (phone) —— */
.dl-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--dl-header-h);
  padding: 0.55rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, box-shadow 0.2s;
}
.dl-header.is-scrolled {
  background: rgba(6, 5, 9, 0.94);
  border-color: var(--dl-border);
  backdrop-filter: blur(14px);
}
.dl-header-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
}
.dl-logo { display: flex; flex-shrink: 1; min-width: 0; z-index: 2; }
.dl-logo-compact { height: 32px; width: auto; max-width: min(168px, 58vw); }
.dl-logo-full { display: none; }
.dl-menu-toggle {
  display: grid;
  gap: 4px;
  margin-inline-start: auto;
  padding: 0.55rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.dl-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.dl-nav {
  display: none;
  position: fixed;
  inset: var(--dl-header-h) 0 0;
  padding: 1rem 1rem var(--dl-safe-bottom);
  background: rgba(6, 5, 9, 0.98);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.dl-nav.is-open { display: block; }
.dl-menu, .dl-menu ul { padding: 0; margin: 0; list-style: none; }
.dl-menu a {
  display: block;
  padding: 0.9rem 0.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--dl-border);
}
.dl-menu .sub-menu { padding-inline-start: 0.85rem; }
.dl-header-actions { display: none; }

/* —— Hero (phone): copy first, one visual, no forced tall viewport —— */
.dl-hero {
  position: relative;
  padding: calc(var(--dl-header-h) + 1.75rem) 0 3.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(144, 89, 224, 0.28), transparent 42%),
    radial-gradient(circle at 90% 70%, rgba(236, 72, 153, 0.14), transparent 40%);
}
.dl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--dl-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--dl-border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}
.dl-hero-grid {
  position: relative;
  display: grid;
  gap: 1.75rem;
}
.dl-hero h1 {
  max-width: 18ch;
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 8.2vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.dl-hero-lead {
  margin: 0 0 1.25rem;
  color: var(--dl-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.dl-proof {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 0 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--dl-border);
  color: var(--dl-muted);
  font-size: 0.82rem;
}
.dl-proof li::before {
  content: "✓";
  margin-inline-end: 0.4rem;
  color: #bc8cff;
}
.dl-hero-visual { justify-items: center; }
.dl-device {
  width: min(200px, 62vw);
  padding: 10px;
  border-radius: 28px;
  background: #161020;
  box-shadow: var(--dl-shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.dl-device-notch {
  width: 72px;
  height: 16px;
  margin: 0 auto 8px;
  border-radius: 0 0 12px 12px;
  background: #060509;
}
.dl-device-screen {
  min-height: 160px;
  padding: 1.1rem 0.85rem;
  border-radius: 20px;
  background: linear-gradient(160deg, #1a1230, #10091a);
}
.dl-device-brand {
  margin: 0;
  color: #c9a9f4;
  font: 700 0.65rem "Space Grotesk";
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dl-device-title { margin: 0.65rem 0 0.35rem; font-size: 1.05rem; line-height: 1.25; }
.dl-device-sub { margin: 0; color: var(--dl-muted); font-size: 0.75rem; }
.dl-device-pulse {
  width: 42px;
  height: 42px;
  margin: 1rem auto 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.7), rgba(144, 89, 224, 0.15) 62%, transparent 70%);
}
.dl-orbit { display: none; } /* desktop-only decoration */
.dl-scroll-hint { display: none; }

.dl-marquee {
  overflow: hidden;
  border-block: 1px solid var(--dl-border);
  background: var(--dl-card);
  padding: 0.75rem 0;
}
.dl-marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: dl-marquee 28s linear infinite;
}
.dl-marquee span {
  font: 600 0.75rem "Space Grotesk";
  color: #c9c4ce;
}
.dl-marquee span::after {
  content: "✦";
  margin-inline-start: 1.5rem;
  color: var(--dl-pink);
}
@keyframes dl-marquee { to { transform: translateX(50%); } }
@keyframes dl-float { 50% { transform: translateY(-8px); } }

.dl-section { padding: 2.75rem 0; }
.dl-section-alt { background: var(--dl-card); }
.dl-section-head {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.dl-section-head h2,
.dl-cta h2 {
  margin: 0.15rem 0 0.65rem;
  font-size: clamp(1.45rem, 6.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.dl-section-head > p:last-child { color: var(--dl-muted); font-size: 0.95rem; }

.dl-agent-grid,
.dl-service-grid,
.dl-case-grid,
.dl-review-grid,
.dl-post-grid {
  display: grid;
  gap: 0.85rem;
}
.dl-agent-card,
.dl-service-card,
.dl-post-card {
  padding: 1.15rem;
  background: linear-gradient(145deg, var(--dl-card-2), var(--dl-card));
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
}
.dl-agent-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(144, 89, 224, 0.15);
  color: #c9a9f4;
  font-size: 1.25rem;
}
.dl-agent-card h3 { display: inline; margin: 0 0.2rem 0 0; font-size: 1.05rem; }
.dl-agent-card strong { color: #bd91f2; font-size: 0.8rem; }
.dl-agent-card p,
.dl-service-card p,
.dl-post-card p { color: var(--dl-muted); font-size: 0.92rem; }
.dl-service-card { display: block; text-decoration: none; }
.dl-service-card > span {
  color: #c9a9f4;
  font: 600 0.7rem "Space Grotesk";
}
.dl-service-card h3 { margin: 0.45rem 0; font-size: 1.1rem; }
.dl-service-card b,
.dl-post-card > a { color: #c9a9f4; }

.dl-stats {
  padding: 2rem 0;
  background: linear-gradient(110deg, #130d1e, #09070d);
  border-block: 1px solid var(--dl-border);
}
.dl-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  text-align: center;
}
.dl-stats strong,
.dl-stats em {
  font: 700 clamp(1.25rem, 6vw, 1.75rem) "Space Grotesk";
  font-style: normal;
  color: #c99cff;
}
.dl-stats span {
  display: block;
  margin-top: 0.2rem;
  color: var(--dl-muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.dl-process {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}
.dl-process li {
  padding: 1rem 0;
  border-top: 1px solid var(--dl-border);
}
.dl-process span {
  color: var(--dl-pink);
  font: 600 0.72rem "Space Grotesk";
}
.dl-process h3 {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.dl-case-card {
  display: block;
  overflow: hidden;
  padding-bottom: 0.85rem;
  background: var(--dl-bg);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  text-decoration: none;
}
.dl-case-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.28), transparent 35%),
    linear-gradient(145deg, #211631, #0b0910);
}
.dl-case-visual span { font: 700 1.15rem "Space Grotesk"; }
.dl-case-card h3,
.dl-case-card h2,
.dl-case-card small,
.dl-case-card b { display: block; margin: 0.6rem 0.9rem 0; }
.dl-case-card small { color: #c9a9f4; }
.dl-case-card b { color: var(--dl-muted); font-weight: 500; font-size: 0.88rem; }

.dl-review {
  margin: 0;
  padding: 1.15rem;
  background: var(--dl-card);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
}
.dl-review > div { color: #f5b947; letter-spacing: 0.1em; font-size: 0.85rem; }
.dl-review p { font-size: 0.95rem; }
.dl-review footer span { display: block; color: var(--dl-muted); font-size: 0.8rem; }

.dl-faq { border-bottom: 1px solid var(--dl-border); }
.dl-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary span { color: #bd91f2; font-size: 1.35rem; flex-shrink: 0; }
.dl-faq p { margin: 0 0 1rem; color: var(--dl-muted); font-size: 0.92rem; }

.dl-post-card h3 { line-height: 1.3; font-size: 1.05rem; }
.dl-post-card h3 a { text-decoration: none; }
.dl-post-card small { color: #c9a9f4; }

.dl-cta {
  padding: 3rem 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(144, 89, 224, 0.22), transparent 55%);
}
.dl-cta p:not(.dl-kicker) {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  color: var(--dl-muted);
  font-size: 0.95rem;
}

.dl-footer {
  padding: 2.75rem 0 calc(var(--dl-safe-bottom) + 1.5rem);
  background: #030205;
  border-top: 1px solid var(--dl-border);
}
.dl-footer-grid { display: grid; gap: 1.75rem; }
.dl-footer h2 { font-size: 0.95rem; margin: 0 0 0.65rem; }
.dl-footer p,
.dl-footer li { color: var(--dl-muted); font-size: 0.9rem; }
.dl-footer ul { padding: 0; margin: 0; list-style: none; }
.dl-footer li + li { margin-top: 0.35rem; }
.dl-footer a { text-decoration: none; }
.dl-footer-logo { width: auto; height: 36px; max-width: 180px; }
.dl-rating { color: #f5b947 !important; }
.dl-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dl-border);
  color: var(--dl-muted);
  font-size: 0.75rem;
}

/* —— Tablet+ —— */
@media (min-width: 600px) {
  :root { --dl-container: min(1160px, calc(100% - 2rem)); }
  .dl-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dl-actions .dl-btn { width: auto; }
  .dl-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
  }
  .dl-agent-grid,
  .dl-service-grid,
  .dl-review-grid,
  .dl-post-grid,
  .dl-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .dl-process li { border-top: 0; padding: 1.1rem; border: 1px solid var(--dl-border); border-radius: var(--dl-radius); }
  .dl-stats strong,
  .dl-stats em { font-size: clamp(1.6rem, 4vw, 2.4rem); }
  .dl-stats span { font-size: 0.78rem; }
  .dl-hero h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); max-width: 14ch; }
  .dl-section { padding: 3.5rem 0; }
  .dl-section-head h2,
  .dl-cta h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
}

@media (min-width: 900px) {
  body.dl-site { padding-bottom: 0; }
  body.admin-bar .dl-header { top: 32px; }
  :root { --dl-safe-bottom: 0px; }

  .dl-logo-compact { display: none; }
  .dl-logo-full {
    display: block;
    height: 48px;
    width: auto;
    max-width: 260px;
  }
  .dl-menu-toggle { display: none; }
  .dl-header { padding: 0.75rem 0; }
  .dl-nav {
    display: block;
    position: static;
    margin-inline: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
  }
  .dl-menu {
    display: flex;
    align-items: center;
    gap: 1.15rem;
  }
  .dl-menu a {
    padding: 0.4rem 0;
    border: 0;
    font-size: 0.88rem;
  }
  .dl-menu li { position: relative; }
  .dl-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: -0.75rem;
    width: 210px;
    padding: 0.65rem 0.9rem;
    background: var(--dl-card-2);
    border: 1px solid var(--dl-border);
    border-radius: 14px;
  }
  .dl-menu li:hover > .sub-menu,
  .dl-menu li:focus-within > .sub-menu { display: block; }
  .dl-header-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
  }
  .dl-header-actions .dl-phone { text-decoration: none; font-weight: 600; }

  .dl-hero {
    min-height: calc(100svh - 1px);
    padding: 7.5rem 0 4.5rem;
    display: grid;
    align-items: center;
  }
  .dl-hero-grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 2.5rem;
    align-items: center;
  }
  .dl-hero h1 { font-size: clamp(2.8rem, 4.5vw, 4.4rem); max-width: 12ch; }
  .dl-hero-lead { font-size: 1.08rem; max-width: 36rem; }
  .dl-orbit {
    display: block;
    position: relative;
    width: min(320px, 100%);
    aspect-ratio: 1;
    margin: auto;
    border: 1px solid var(--dl-border);
    border-radius: 50%;
    animation: dl-float 5s ease-in-out infinite;
  }
  .dl-orbit::before,
  .dl-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid var(--dl-border);
    border-radius: 50%;
    inset: 14%;
  }
  .dl-orbit::after { inset: 29%; }
  .dl-orbit strong {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    font-family: "Space Grotesk";
  }
  .dl-orbit span {
    position: absolute;
    padding: 0.4rem 0.7rem;
    background: var(--dl-card-2);
    border: 1px solid var(--dl-border);
    border-radius: 999px;
    font: 600 0.72rem "Space Grotesk";
  }
  .dl-orbit span:nth-child(1) { top: 5%; left: 36%; }
  .dl-orbit span:nth-child(2) { bottom: 22%; left: -3%; }
  .dl-orbit span:nth-child(3) { bottom: 12%; right: 0; }
  .dl-hero-visual {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1rem;
    align-items: center;
  }
  .dl-device { width: min(220px, 100%); }
  .dl-scroll-hint {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    color: var(--dl-muted);
    text-decoration: none;
    font: 600 0.7rem "Space Grotesk";
    letter-spacing: 0.16em;
  }

  .dl-agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-process { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dl-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
  .dl-footer { padding: 4rem 0 3rem; }
  .dl-footer-logo { height: 46px; max-width: 230px; }
  .dl-section { padding: 4.25rem 0; }
  .dl-cta { padding: 5rem 0; }
  .dl-btn:hover { transform: translateY(-2px); }
  .dl-service-card:hover {
    border-color: rgba(144, 89, 224, 0.65);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
