/* DIGIDAG LIMITED — corporate one-pager */

:root {
  color-scheme: light dark;

  --ink:        #191c1f;
  --ink-soft:   #565c63;
  --ink-faint:  #8b9199;
  --bg:         #ffffff;
  --bg-soft:    #f6f7f8;
  --line:       #e3e6e9;
  --accent:     #0f970f;
  --accent-ink: #0b7a0b;
  --accent-on:  #ffffff;
  --digicod:    #0f970f;

  --shell:  1080px;
  --gutter: 28px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #eef1f3;
    --ink-soft:   #a7aeb6;
    --ink-faint:  #737b84;
    --bg:         #121517;
    --bg-soft:    #191d20;
    --line:       #272c31;
    --accent:     #2fbe33;
    --accent-ink: #6fdc72;
    --accent-on:  #0d1a0d;
    --digicod:    #2fbe33;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.logo { height: 42px; width: auto; display: block; color: var(--ink); }

.header-nav {
  display: flex;
  gap: 28px;
  font-size: .93rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.header-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 96px 0 72px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 26px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
}

.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn-ghost:hover { border-color: var(--ink-faint); background: var(--bg-soft); }

/* ---------- sections ---------- */

section { padding: 34px 0; scroll-margin-top: 92px; }

.section-title {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- service ---------- */

.service {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.service-logo { width: 168px; height: auto; flex: none; }
.service-logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
  .service-logo-light { display: none; }
  .service-logo-dark  { display: block; }
}

.service-body { flex: 1 1 320px; }

.service-body h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -0.01em; }
.service-body p  { margin: 0 0 14px; color: var(--ink-soft); }

.service-link {
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.service-link:hover { border-bottom-color: var(--accent); }

/* ---------- details ---------- */

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 40px;
  margin: 0;
}

.details > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.details dt {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.details dd { margin: 0; font-size: .98rem; }

.details a { color: var(--accent-ink); text-decoration: none; }
.details a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 70px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .84rem;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer p { margin: 0; }

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .hero { padding: 64px 0 48px; }
  .header-nav { display: none; }
  .logo { height: 36px; }
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
