/* DigiTechs 2026 appearance, accessibility and conversion refinements */
:root {
  --paper: #fffdf7;
  --mute: #aeb3c0;
  --line: #343b49;
  --line-soft: #252b35;
}

body { text-rendering: optimizeLegibility; }
p, li { color: var(--mute); }
a { text-underline-offset: 0.2em; }

header { box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.header-inner { min-height: 72px; height: auto; }
nav a { position: relative; }
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--signal);
  transition: right .2s ease;
}
nav a:hover::after, nav a[aria-current="page"]::after { right: 0; }

.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(64px, 8vw, 110px) !important;
  padding-bottom: clamp(54px, 7vw, 90px) !important;
  background-image:
    linear-gradient(90deg, var(--ink) 0%, rgba(14,17,22,.96) 46%, rgba(14,17,22,.46) 100%),
    url('digitechs-hero.webp');
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover, min(64vw, 1050px) auto;
}
.page-hero h1 { max-width: 1050px; line-height: 1.02 !important; text-wrap: balance; }
.page-hero > p { max-width: 850px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.service-visual {
  position: relative;
  margin: -34px 0 clamp(48px, 7vw, 90px);
  aspect-ratio: 16 / 6.5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}
.service-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14,17,22,.04), rgba(14,17,22,.32));
  box-shadow: inset 0 0 80px rgba(0,0,0,.25);
}
.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.service-visual:hover img { transform: scale(1.018); }
.hero {
  min-height: min(760px, calc(100vh - 72px)) !important;
  padding-top: clamp(70px, 9vw, 120px) !important;
  background-image:
    linear-gradient(90deg, var(--ink) 0%, rgba(14,17,22,.97) 43%, rgba(14,17,22,.34) 72%, rgba(14,17,22,.08) 100%),
    url('digitechs-hero.webp');
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-diagram { visibility: hidden; }
.lede { color: #bec3ce !important; }

.panel, .card {
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.panel:hover, .card:hover {
  border-color: #495263;
  background: linear-gradient(145deg, rgba(255,90,31,.045), rgba(255,255,255,.01));
  transform: translateY(-2px);
}
.card h3, .panel h2, .panel h3 { color: var(--paper); }
.cta-band {
  background: linear-gradient(120deg, rgba(255,90,31,.12), rgba(255,90,31,.025));
  border-color: rgba(255,90,31,.55) !important;
}
.btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
a.btn { text-decoration: none; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 900px) {
  .header-inner { padding-block: 14px; gap: 14px; }
  nav { width: 100%; overflow-x: auto; padding: 6px 0; scrollbar-width: none; }
  nav a { white-space: nowrap; }
  .nav-status { display: none !important; }
  .page-hero { padding-top: 54px !important; }
  .page-hero {
    background-image:
      linear-gradient(90deg, rgba(14,17,22,.98), rgba(14,17,22,.72)),
      url('digitechs-hero.webp');
    background-size: cover;
  }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(14,17,22,.88), rgba(14,17,22,.99)),
      url('digitechs-hero.webp');
    background-position: 66% center;
  }
}

@media (max-width: 600px) {
  .header-inner { padding-inline: 18px; }
  .logo .tag { display: none; }
  .page { padding-inline: 18px; }
  .page-hero h1 { font-size: clamp(2.45rem, 13vw, 4rem) !important; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4.4rem) !important; }
  .hero-ctas, .hero-ctas .btn { width: 100%; }
  .hero-ctas { display: grid !important; }
  .service-visual { margin-top: -18px; aspect-ratio: 4 / 3; }
}
