/* =====================================================================
   dnsai.com homepage (v2, promoted from /dns-intelligence/ on 2026-11-05) — page-only stylesheet
   Loaded ONLY by /index.php. Shared site CSS (main.min.css,
   nav-fixes.min.css) is loaded first and left untouched; everything here is
   scoped to body.di-page / .di-main so it cannot leak into other pages.
   Theme: the site toggle sets body.light-mode / body.dark-mode.
   ===================================================================== */

/* ---------- Tokens ---------- */
body.di-page {
  --di-bg: #05070c;
  --di-bg-2: #080b13;
  --di-surface: rgba(255, 255, 255, 0.035);
  --di-surface-2: rgba(255, 255, 255, 0.06);
  --di-border: rgba(255, 255, 255, 0.09);
  --di-border-strong: rgba(255, 255, 255, 0.16);
  --di-text: #f4f7fb;
  --di-text-2: #b6bfcd;
  --di-muted: #808a9c;
  --di-cyan: #26c4ff;
  --di-blue: #2f6bff;
  --di-accent: #26c4ff;
  --di-grad: linear-gradient(100deg, #26c4ff 0%, #2f6bff 55%, #1a3fd6 100%);
  --di-good: #35d07f;
  --di-warn: #ffb547;
  --di-code: #9fb3cf;
  --di-glow-a: rgba(38, 196, 255, 0.22);
  --di-glow-b: rgba(47, 107, 255, 0.20);
  --di-glow-c: rgba(26, 63, 214, 0.16);
  --di-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --di-radius: 18px;
  --di-ease: cubic-bezier(.2, .7, .2, 1);
  --di-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--di-bg);
}
body.di-page.light-mode {
  --di-bg: #f6f8fc;
  --di-bg-2: #eef2f9;
  --di-surface: #ffffff;
  --di-surface-2: #f3f6fb;
  --di-border: #e2e8f1;
  --di-border-strong: #cfd8e6;
  --di-text: #0a1222;
  --di-text-2: #3a4558;
  --di-muted: #616c80;
  --di-accent: #0b5cff;
  --di-grad: linear-gradient(100deg, #0aa6e6 0%, #0b5cff 55%, #0a35b8 100%);
  --di-good: #11924f;
  --di-warn: #b56a00;
  --di-code: #4a5a73;
  --di-glow-a: rgba(10, 166, 230, 0.16);
  --di-glow-b: rgba(11, 92, 255, 0.12);
  --di-glow-c: rgba(10, 53, 184, 0.10);
  --di-shadow: 0 30px 70px -35px rgba(15, 30, 60, 0.35), 0 0 0 1px rgba(15, 30, 60, 0.06);
}

/* ---------- Base (scoped) ---------- */
.di-main {
  width: 100%;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--di-text);
  background: var(--di-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Reset uses :where() so it has zero specificity and never outranks the component rules below */
:where(.di-main) *, :where(.di-main) *::before, :where(.di-main) *::after { box-sizing: border-box; }
:where(.di-main) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
:where(.di-main) :where(ul, ol) { list-style: none; }
:where(.di-main) a { color: inherit; text-decoration: none; }
:where(.di-main) img { display: block; max-width: 100%; }
.di-main :focus-visible { outline: 2px solid var(--di-accent); outline-offset: 3px; border-radius: 8px; }
.di-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.di-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.di-section { position: relative; padding: clamp(84px, 11vw, 140px) 0; }
.di-section + .di-section { border-top: 1px solid var(--di-border); }
.di-head { max-width: 720px; margin: 0 0 clamp(40px, 5vw, 64px); }
.di-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--di-accent); margin-bottom: 18px;
}
.di-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
:where(.di-main) h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  line-height: 1.06; letter-spacing: -0.032em; font-weight: 700; color: var(--di-text);
}
.di-head p.di-sub { margin-top: 18px; font-size: clamp(1.02rem, .97rem + .25vw, 1.15rem); line-height: 1.65; color: var(--di-text-2); max-width: 62ch; }
.di-grad { background: var(--di-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- Buttons ---------- */
.di-main .di-btn {
  /* reset the site's global button rule (width:55%; margin; border) */
  width: auto; margin: 0; border: 0; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 15.5px/1 "Inter", system-ui, sans-serif; letter-spacing: -0.005em;
  color: #fff; background: var(--di-grad); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 10px 30px -10px rgba(38, 140, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--di-ease), box-shadow .25s var(--di-ease), background-position .5s var(--di-ease);
}
.di-main .di-btn:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(38, 140, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.di-main .di-btn:active { transform: translateY(0); }
.di-main .di-btn svg { width: 18px; height: 18px; transition: transform .25s var(--di-ease); }
.di-main .di-btn:hover svg { transform: translateX(3px); }
.di-main .di-btn--ghost {
  color: var(--di-text); background: transparent; box-shadow: inset 0 0 0 1px var(--di-border-strong);
}
.di-main .di-btn--ghost:hover { background: var(--di-surface-2); box-shadow: inset 0 0 0 1px var(--di-accent); }
.di-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--di-accent); }
.di-link svg { width: 16px; height: 16px; transition: transform .25s var(--di-ease); }
.di-link:hover svg { transform: translateX(3px); }

/* ---------- HERO ---------- */
.di-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - 70px), 800px);
  display: flex; align-items: center;
  padding: clamp(104px, 13vh, 140px) 0 clamp(88px, 11vh, 120px);
}
.di-aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -2; pointer-events: none; }
.di-aurora span { position: absolute; border-radius: 50%; will-change: transform; transform: translate3d(0, 0, 0); }
.di-aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 2%; top: 4%; background: radial-gradient(circle, var(--di-glow-a) 0%, transparent 68%); animation: di-drift-a 22s ease-in-out infinite alternate; }
.di-aurora span:nth-child(2) { width: 52vw; height: 52vw; right: -6%; top: -8%; background: radial-gradient(circle, var(--di-glow-b) 0%, transparent 68%); animation: di-drift-b 26s ease-in-out infinite alternate; }
.di-aurora span:nth-child(3) { width: 40vw; height: 40vw; left: 34%; top: 38%; background: radial-gradient(circle, var(--di-glow-c) 0%, transparent 68%); animation: di-drift-c 30s ease-in-out infinite alternate; }
@keyframes di-drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes di-drift-b { to { transform: translate3d(-10vw, 10vh, 0) scale(.9); } }
@keyframes di-drift-c { to { transform: translate3d(-6vw, -8vh, 0) scale(1.2); } }
.di-gridbg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.di-gridbg::before {
  content: ""; position: absolute; inset: -56px; will-change: transform;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0);
  background-size: 28px 28px;
  animation: di-grid-pan 40s linear infinite;
}
body.di-page.light-mode .di-gridbg::before { background-image: radial-gradient(circle at 1px 1px, rgba(15, 30, 60, .12) 1px, transparent 0); }
@keyframes di-grid-pan { to { transform: translate3d(28px, 56px, 0); } }

.di-hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 84px); align-items: center; }
.di-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--di-text-2);
  background: var(--di-surface); box-shadow: inset 0 0 0 1px var(--di-border); margin-bottom: 26px;
}
.di-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--di-good); }
.di-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--di-good); opacity: 0; animation: di-ping 2.4s var(--di-ease) infinite; }
@keyframes di-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.di-hero h1 {
  font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.4rem);
  line-height: 1; letter-spacing: -0.045em; font-weight: 700; color: var(--di-text);
}
.di-hero h1 .di-line-2 { display: block; }
.di-lede { margin-top: 24px; max-width: 34em; font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); line-height: 1.62; color: var(--di-text-2); }

/* search */
.di-search {
  position: relative; display: flex; align-items: center; gap: 8px; margin-top: 36px; max-width: 560px;
  padding: 7px; border-radius: 999px; background: var(--di-surface);
  box-shadow: inset 0 0 0 1px var(--di-border-strong), 0 20px 50px -25px rgba(0, 0, 0, .6);
  transition: box-shadow .3s var(--di-ease);
}
body.di-page.light-mode .di-search { box-shadow: inset 0 0 0 1px var(--di-border-strong), 0 20px 50px -30px rgba(15, 30, 60, .35); }
.di-search::before {
  /* animated gradient ring on focus */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--di-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--di-ease); pointer-events: none;
}
.di-search:focus-within::before { opacity: 1; }
.di-search-icon { flex: 0 0 auto; width: 20px; height: 20px; margin-left: 14px; color: var(--di-muted); }
.di-main .di-search input {
  flex: 1 1 auto; min-width: 0; height: 46px; margin: 0; padding: 0 6px; border: 0; outline: 0; background: transparent;
  font: 500 17px/1 "Inter", system-ui, sans-serif; color: var(--di-text); box-shadow: none; width: auto;
}
.di-main .di-search input::placeholder { color: var(--di-muted); font-weight: 400; }
.di-search-err { min-height: 22px; margin-top: 10px; padding-left: 22px; font-size: 14px; color: #ff7a7a; }
body.di-page.light-mode .di-search-err { color: #c62828; }
.di-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; padding-left: 4px; font-size: 14px; color: var(--di-muted); }
.di-try a {
  padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--di-text-2);
  background: var(--di-surface); box-shadow: inset 0 0 0 1px var(--di-border);
  transition: color .2s, box-shadow .2s, transform .2s var(--di-ease);
}
.di-try a:hover { color: var(--di-text); box-shadow: inset 0 0 0 1px var(--di-accent); transform: translateY(-1px); }

/* decoder card */
.di-visual { position: relative; }
.di-visual::before {
  content: ""; position: absolute; inset: 8% -4% -6% 6%; z-index: -1; border-radius: 40px;
  background: var(--di-grad); opacity: .18; filter: blur(60px);
}
.di-decoder {
  position: relative; border-radius: 22px; padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(23, 29, 44, .94), rgba(11, 15, 25, .96));
  box-shadow: var(--di-shadow);
  transform: perspective(1400px) rotateY(-5deg) rotateX(3deg); transition: transform .8s var(--di-ease);
}
body.di-page.light-mode .di-decoder { background: #fff; }
.di-visual:hover .di-decoder { transform: perspective(1400px) rotateY(0) rotateX(0); }
.di-dec-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--di-border); }
.di-dec-logo { width: 42px; height: 42px; border-radius: 11px; background: #0d1220; box-shadow: inset 0 0 0 1px var(--di-border); padding: 6px; object-fit: contain; }
body.di-page.light-mode .di-dec-logo { background: #0d1220; }
.di-dec-name { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; color: var(--di-text); }
.di-dec-domain { font-size: 13px; color: var(--di-muted); margin-top: 2px; font-family: var(--di-mono); }
.di-dec-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--di-muted); background: var(--di-surface); box-shadow: inset 0 0 0 1px var(--di-border); white-space: nowrap; }
.di-dec-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--di-warn); }
.di-dec-status.is-reading i { animation: di-blink 1s steps(2, start) infinite; }
.di-dec-status.is-done { color: var(--di-good); }
.di-dec-status.is-done i { background: var(--di-good); }
@keyframes di-blink { to { visibility: hidden; } }

.di-lines { margin-top: 14px; display: grid; gap: 9px; align-content: start; min-height: 256px; /* 5 lines reserved: the card never changes height while it types */ }
.di-line {
  display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, .86fr); align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 10px; border-radius: 12px; background: var(--di-surface);
  box-shadow: inset 0 0 0 1px var(--di-border);
}
.di-raw { display: flex; align-items: center; gap: 8px; min-width: 0; font: 12.5px/1.35 var(--di-mono); color: var(--di-code); }
.di-raw b { flex: 0 0 auto; font-weight: 600; font-size: 10.5px; letter-spacing: .06em; color: var(--di-muted); padding: 3px 6px; border-radius: 6px; background: var(--di-surface-2); }
.di-raw span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-raw span.is-typing::after { content: "▍"; margin-left: 1px; color: var(--di-accent); animation: di-blink .9s steps(2, start) infinite; }
.di-arrow { position: relative; height: 2px; border-radius: 2px; background: var(--di-border-strong); overflow: hidden; }
.di-arrow::after { content: ""; position: absolute; inset: 0; background: var(--di-grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--di-ease); }
.di-label {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 9px; row-gap: 1px; align-items: center;
  min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--di-text);
  opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--di-ease), transform .45s var(--di-ease);
}
.di-label img { grid-row: 1 / span 2; width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.di-label em { grid-column: 2; font-style: normal; font-weight: 500; font-size: 11px; color: var(--di-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.di-label .di-lt { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-label.is-good::before { content: ""; grid-row: 1 / span 2; grid-column: 1; width: 20px; height: 20px; background: var(--di-good); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.di-label.is-good .di-lt { color: var(--di-good); }
.di-line.is-resolved .di-arrow::after { transform: scaleX(1); }
.di-line.is-resolved .di-label { opacity: 1; transform: none; }
.di-line.is-enter { animation: di-line-in .45s var(--di-ease) both; }
@keyframes di-line-in { from { opacity: 0; transform: translateY(6px); } }

.di-dec-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--di-border); }
.di-avatars { display: flex; }
.di-avatars img { width: 26px; height: 26px; border-radius: 50%; padding: 4px; background: #0d1220; box-shadow: 0 0 0 2px var(--di-bg-2); margin-left: -7px; object-fit: contain; }
body.di-page.light-mode .di-avatars img { box-shadow: 0 0 0 2px #fff; }
.di-avatars img:first-child { margin-left: 0; }
.di-dec-count { font-size: 13px; color: var(--di-text-2); }
.di-dec-count b { color: var(--di-text); font-weight: 650; }
.di-dec-foot .di-link { margin-left: auto; font-size: 13.5px; }
.di-progress { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; overflow: hidden; border-radius: 2px; }
.di-progress i { display: block; height: 100%; width: 100%; background: var(--di-grad); transform: scaleX(0); transform-origin: left; }
.di-progress i.is-run { animation: di-prog var(--di-cycle, 3.2s) linear forwards; }
.di-decoder.is-paused .di-progress i { animation-play-state: paused; }
@keyframes di-prog { to { transform: scaleX(1); } }
.di-dec-dots { display: flex; justify-content: center; gap: 2px; min-height: 28px; margin-top: 6px; }
.di-main .di-dec-dots button {
  position: relative; width: 22px; height: 28px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; cursor: pointer;
  background: transparent; transition: width .35s var(--di-ease);
}
.di-main .di-dec-dots button:hover:not(:disabled) { background: transparent; }
.di-main .di-dec-dots button::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 99px; transform: translate(-50%, -50%);
  background: var(--di-border-strong); transition: width .35s var(--di-ease), background .3s;
}
.di-main .di-dec-dots button:hover::before { background: var(--di-muted); }
.di-main .di-dec-dots button.is-on { width: 34px; }
.di-main .di-dec-dots button.is-on::before { width: 24px; background: var(--di-accent); }

.di-scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--di-border-strong); }
.di-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--di-text-2); animation: di-cue 2s var(--di-ease) infinite; }
@keyframes di-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.di-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--di-ease), transform .9s var(--di-ease); transition-delay: var(--d, 0s); }
.di-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- STEPS ---------- */
.di-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.di-steps::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 1px; z-index: 0; background: var(--di-border-strong);
}
.di-steps::after {
  content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 1px; z-index: 0; background: var(--di-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--di-ease) .2s;
}
.di-steps.is-in::after { transform: scaleX(1); }
.di-step { position: relative; z-index: 1; } /* above the connector line in every state (incl. mid-reveal, when opacity creates a stacking context) */
.di-step-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font: 600 15px/1 var(--di-mono); color: var(--di-text); background: var(--di-bg);
  box-shadow: inset 0 0 0 1px var(--di-border-strong);
  transition: box-shadow .5s var(--di-ease), color .5s;
  transition-delay: var(--d, 0s);
}
.di-steps.is-in .di-step-n { box-shadow: inset 0 0 0 1px var(--di-accent), 0 0 0 6px rgba(38, 196, 255, .12); box-shadow: inset 0 0 0 1px var(--di-accent), 0 0 0 6px color-mix(in srgb, var(--di-accent) 12%, transparent); color: var(--di-accent); }
.di-step h3 { margin-top: 26px; font-size: 1.28rem; font-weight: 650; letter-spacing: -0.015em; color: var(--di-text); }
.di-step p { margin-top: 10px; font-size: 1rem; line-height: 1.65; color: var(--di-text-2); max-width: 32ch; }
.di-step code { font: 13px var(--di-mono); color: var(--di-code); }

/* ---------- BENTO (findings) ---------- */
.di-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.di-tile {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; grid-column: span 2; min-height: 260px; padding: 28px;
  border-radius: var(--di-radius); background: var(--di-surface); box-shadow: inset 0 0 0 1px var(--di-border);
  display: flex; flex-direction: column;
  transition: box-shadow .4s var(--di-ease), transform .4s var(--di-ease);
}
.di-tile::before {
  /* pointer spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(38, 196, 255, .12), transparent 60%);
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--di-accent) 14%, transparent), transparent 60%);
}
.di-tile:hover { box-shadow: inset 0 0 0 1px var(--di-border-strong); transform: translateY(-2px); }
.di-tile:hover::before { opacity: 1; }
.di-tile--wide { grid-column: span 4; }
.di-tile--half { grid-column: span 3; }
.di-tile h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.015em; color: var(--di-text); }
.di-tile > p:not(.di-tile-tag) { margin-top: 10px; font-size: .98rem; line-height: 1.6; color: var(--di-text-2); max-width: 44ch; }
.di-tile-tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--di-muted); margin-bottom: 14px; }
.di-tile-art { margin-top: auto; padding-top: 26px; }
.di-big { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.di-big small { font-size: .38em; font-weight: 600; letter-spacing: 0; color: var(--di-muted); margin-left: 8px; }

/* mail platform: rotating provider */
/* v7: all three providers stay visible; a highlight walks down the list (fills the tile, nothing pops in/out) */
.di-swap { display: grid; gap: 6px; }
.di-swap > div {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
  font-size: 1.15rem; font-weight: 650; letter-spacing: -0.015em; color: var(--di-text);
  box-shadow: inset 0 0 0 1px transparent; animation: di-swap 9s var(--di-ease) infinite;
}
.di-swap > div:nth-child(2) { animation-delay: 3s; }
.di-swap > div:nth-child(3) { animation-delay: 6s; }
.di-swap img { width: 34px; height: 34px; border-radius: 9px; padding: 5px; background: #0d1220; object-fit: contain; flex: 0 0 auto; }
.di-swap code { margin-left: auto; font: 12px var(--di-mono); color: var(--di-muted); font-weight: 400; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes di-swap { 0%, 4% { background: transparent; box-shadow: inset 0 0 0 1px transparent; } 9%, 30% { background: var(--di-surface-2); box-shadow: inset 0 0 0 1px var(--di-border-strong); } 36%, 100% { background: transparent; box-shadow: inset 0 0 0 1px transparent; } }

/* gateway logos */
.di-logos-row { display: flex; gap: 10px; margin-top: 18px; }
.di-logos-row img { width: 40px; height: 40px; border-radius: 10px; padding: 7px; background: #0d1220; box-shadow: inset 0 0 0 1px var(--di-border); object-fit: contain; }

/* auth meter */
.di-auth { display: grid; gap: 10px; }
.di-auth-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--di-surface-2); font-size: 14px; font-weight: 600; color: var(--di-text); }
.di-auth-row span:last-child { font: 500 12.5px var(--di-mono); color: var(--di-good); }
.di-policy { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4px; padding: 4px; border-radius: 12px; background: var(--di-surface-2); font: 600 12px var(--di-mono); text-align: center; color: var(--di-muted); }
.di-policy span { position: relative; z-index: 1; padding: 9px 0; }
.di-policy::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 9px; background: var(--di-surface); box-shadow: inset 0 0 0 1px var(--di-border-strong); animation: di-policy 7.5s var(--di-ease) infinite; }
@keyframes di-policy { 0%, 22% { transform: translateX(0); } 33%, 55% { transform: translateX(100%); } 66%, 92% { transform: translateX(200%); background: color-mix(in srgb, var(--di-good) 22%, transparent); } 100% { transform: translateX(0); } }
.di-policy-cap { margin-top: 10px; font-size: 12.5px; color: var(--di-muted); }

/* vendor cloud */
.di-cloud { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.di-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 550; color: var(--di-text); background: var(--di-surface-2); box-shadow: inset 0 0 0 1px var(--di-border); }
.di-chip img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.di-tile.is-in .di-chip { animation: di-chip-in .6s var(--di-ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes di-chip-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.di-chip--more { color: var(--di-muted); }

/* platform list */
.di-plat { display: flex; flex-wrap: wrap; gap: 6px; }
.di-plat span { padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--di-text-2); background: var(--di-surface-2); box-shadow: inset 0 0 0 1px var(--di-border); }

/* ---------- MARQUEE ---------- */
.di-marquee-sec { padding: clamp(56px, 7vw, 84px) 0; border-top: 1px solid var(--di-border); border-bottom: 1px solid var(--di-border); background: var(--di-bg-2); }
.di-marquee-sec .di-kicker { display: flex; justify-content: center; margin-bottom: 30px; }
.di-marquee-sec .di-kicker::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.di-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.di-marquee + .di-marquee { margin-top: 14px; }
.di-track { display: flex; gap: 14px; padding-right: 14px; width: max-content; will-change: transform; animation: di-marquee 60s linear infinite; }
.di-marquee--rev .di-track { animation-direction: reverse; animation-duration: 70s; }
.di-marquee:hover .di-track { animation-play-state: paused; }
@keyframes di-marquee { to { transform: translateX(-50%); } }
.di-logo { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 14px; background: var(--di-surface); box-shadow: inset 0 0 0 1px var(--di-border); font-size: 14.5px; font-weight: 600; color: var(--di-text-2); white-space: nowrap; }
.di-logo img { width: 28px; height: 28px; border-radius: 7px; padding: 4px; background: #0d1220; object-fit: contain; }
.di-marquee-note { margin-top: 26px; text-align: center; font-size: 13px; color: var(--di-muted); }

/* ---------- TOOLS ---------- */
.di-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.di-tools h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--di-muted); padding-bottom: 14px; border-bottom: 1px solid var(--di-border); }
.di-tools ul { margin-top: 6px; }
.di-tools a {
  position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 2px;
  font-size: 1.04rem; font-weight: 550; color: var(--di-text); border-bottom: 1px solid var(--di-border);
  transition: color .25s, padding .3s var(--di-ease);
}
.di-tools a::after { content: "→"; color: var(--di-muted); transform: translateX(-6px); opacity: 0; transition: transform .3s var(--di-ease), opacity .3s, color .25s; }
.di-tools a:hover { color: var(--di-accent); padding-left: 8px; }
.di-tools a:hover::after { transform: none; opacity: 1; color: var(--di-accent); }

/* ---------- AUDIENCES ---------- */
.di-aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: 22px; overflow: hidden; background: var(--di-border); box-shadow: inset 0 0 0 1px var(--di-border); }
.di-aud li { padding: 30px 28px; background: var(--di-bg); transition: background .35s; }
.di-aud li:hover { background: var(--di-surface); }
.di-aud h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; color: var(--di-text); display: flex; align-items: center; gap: 10px; }
.di-aud h3 span { font: 600 12px var(--di-mono); color: var(--di-accent); }
.di-aud p { margin-top: 10px; font-size: .98rem; line-height: 1.6; color: var(--di-text-2); }

/* ---------- FAQ ---------- */
.di-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.di-faq-grid .di-head { position: sticky; top: 110px; margin-bottom: 0; }
.di-faq details { border-bottom: 1px solid var(--di-border); }
.di-faq details:first-child { border-top: 1px solid var(--di-border); }
.di-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: var(--di-text);
}
.di-faq summary::-webkit-details-marker { display: none; }
.di-faq summary::after {
  content: ""; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--di-border-strong);
  background: linear-gradient(var(--di-text-2), var(--di-text-2)) center/11px 1.5px no-repeat, linear-gradient(var(--di-text-2), var(--di-text-2)) center/1.5px 11px no-repeat;
  transition: transform .35s var(--di-ease), box-shadow .3s;
}
.di-faq details[open] summary::after { transform: rotate(45deg); box-shadow: inset 0 0 0 1px var(--di-accent); }
.di-faq summary:hover { color: var(--di-accent); }
.di-faq .di-ans { padding: 0 48px 0 0; overflow: hidden; font-size: 1rem; line-height: 1.72; color: var(--di-text-2); }
.di-faq .di-ans::after { content: ""; display: block; height: 26px; }
.di-faq .di-ans p + p { margin-top: 12px; }
.di-faq .di-ans a { color: var(--di-accent); font-weight: 550; }
.di-faq details.is-closing summary::after { transform: none; box-shadow: inset 0 0 0 1px var(--di-border-strong); }

/* ---------- FINAL CTA ---------- */
.di-final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(100px, 13vw, 170px) 0; border-top: 1px solid var(--di-border); }
.di-final::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--di-glow-a), var(--di-glow-c), var(--di-glow-b), var(--di-glow-a)); filter: blur(90px); opacity: .9;
  will-change: transform; animation: di-spin 28s linear infinite;
}
@keyframes di-spin { to { transform: rotate(360deg); } }
.di-final h2 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem); }
.di-final .di-sub { margin: 20px auto 0; max-width: 46ch; font-size: 1.12rem; line-height: 1.6; color: var(--di-text-2); }
.di-final-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 8px; font-size: 14.5px; }

/* light mode: several vendor marks are light-on-dark artwork, so give them the same dark plate as the avatars */
body.di-page.light-mode .di-label img, body.di-page.light-mode .di-chip img { background: #0d1220; padding: 2px; border-radius: 5px; }
body.di-page.light-mode .di-final::before { opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .di-hero-inner { grid-template-columns: 1fr; }
  .di-hero { min-height: 0; }
  .di-visual { max-width: 560px; }
  .di-decoder { transform: none; }
  .di-tile, .di-tile--wide, .di-tile--half { grid-column: span 3; }
  .di-faq-grid { grid-template-columns: 1fr; }
  .di-faq-grid .di-head { position: static; margin-bottom: 8px; }
  .di-scroll-cue { display: none; }
}
@media (max-width: 760px) {
  .di-section { padding: 76px 0; }
  .di-steps { grid-template-columns: 1fr; gap: 34px; }
  .di-steps::before, .di-steps::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
  .di-steps::after { transform: scaleY(0); transform-origin: top; }
  .di-steps.is-in::after { transform: scaleY(1); }
  .di-step { padding-left: 80px; }
  .di-step-n { position: absolute; left: 0; top: 0; }
  .di-step h3 { margin-top: 12px; }
  .di-bento { grid-template-columns: 1fr; gap: 12px; }
  .di-tile, .di-tile--wide, .di-tile--half { grid-column: auto; min-height: 0; padding: 24px; }
  .di-tools { grid-template-columns: 1fr; gap: 36px; }
  .di-aud { grid-template-columns: 1fr; }
  .di-aud li { padding: 24px 22px; }
  .di-line { grid-template-columns: minmax(0, .82fr) 12px minmax(0, 1.18fr); gap: 7px; padding: 8px; }
  .di-swap > div { font-size: 1.05rem; gap: 10px; padding: 8px 10px; }
  .di-swap img { width: 30px; height: 30px; }
  .di-raw { font-size: 11px; }
  .di-raw b { display: none; }
  .di-label { font-size: 12.5px; }
  .di-dec-foot .di-avatars { display: none; }
}
@media (max-width: 480px) {
  .di-search { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .di-search-icon { display: none; }
  .di-main .di-search input { flex-basis: 100%; height: 48px; padding: 0 12px; }
  .di-main .di-search .di-btn { width: 100%; }
  .di-search::before { border-radius: 22px; }
  .di-faq .di-ans { padding-right: 0; }
  .di-faq summary { padding: 20px 0; font-size: 1.04rem; }
  .di-dec-status { display: none; }
  .di-swap code { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .di-main *, .di-main *::before, .di-main *::after { animation: none !important; transition: none !important; }
  .di-js [data-reveal] { opacity: 1; transform: none; }
  .di-steps::after { transform: none; }
  .di-decoder { transform: none; }
}

/* ?static=1 (QA): same as reduced motion */
.di-static .di-main *, .di-static .di-main *::before, .di-static .di-main *::after { animation: none !important; transition: none !important; }
.di-static.di-js [data-reveal] { opacity: 1; transform: none; }
.di-static .di-steps::after { transform: none; }

/* =====================================================================
   Polish pass (2026-11-05, v1 → v2)
   ===================================================================== */

/* Hero entrance: CSS-only, starts at first paint. The headline, lede and search
   only move (no opacity), so the largest text is never hidden from paint/LCP. */
.di-rise { animation: di-rise .95s var(--di-ease) both; animation-delay: var(--d, 0s); }
.di-rise--fade { animation-name: di-rise-fade; }
@keyframes di-rise { from { transform: translate3d(0, 14px, 0); } }
@keyframes di-rise-fade { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* In-page anchors glide and land below the fixed nav */
@media (prefers-reduced-motion: no-preference) { :root:has(body.di-page) { scroll-behavior: smooth; } }
.di-main section[id] { scroll-margin-top: 84px; }

/* Nav: once the shared script marks it .scrolled, use a tinted glass bar that matches this page */
body.di-page.dark-mode .nav-menu.scrolled {
  background-color: rgba(5, 7, 12, .78) !important;
  -webkit-backdrop-filter: saturate(140%) blur(16px) !important; backdrop-filter: saturate(140%) blur(16px) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) !important;
}
body.di-page.light-mode .nav-menu.scrolled {
  background-color: rgba(246, 248, 252, .84) !important;
  -webkit-backdrop-filter: saturate(160%) blur(16px) !important; backdrop-filter: saturate(160%) blur(16px) !important;
  box-shadow: 0 1px 0 rgba(15, 30, 60, .08) !important;
}

.di-main .di-search .di-btn { position: relative; }
.di-main .di-search .di-btn::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; opacity: 0; transition: opacity .2s;
}
.di-search.is-loading .di-btn { color: transparent; pointer-events: none; }
.di-search.is-loading .di-btn svg { opacity: 0; }
.di-search.is-loading .di-btn::after { opacity: 1; animation: di-spin .7s linear infinite; }
.di-search.is-shake { animation: di-shake .42s var(--di-ease); }
@keyframes di-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.di-search-err { transition: opacity .2s; }
.di-search input[aria-invalid="true"] { caret-color: #ff7a7a; }

/* Decoder: clearer paused state + pointer cue on the raw record tooltip */
.di-raw[title] { cursor: help; }
.di-decoder.is-paused .di-dec-status i { animation: none; }

/* Hover/press feedback on touch screens without sticky hover */
@media (hover: none) {
  .di-tile:hover { transform: none; }
  .di-main .di-btn:active { transform: scale(.98); }
  .di-try a:active, .di-tools a:active { opacity: .7; }
}
.di-main a, .di-main button, .di-main summary { -webkit-tap-highlight-color: transparent; }

/* Shared footer, harmonised with this page only (overrides need the same !important the shared rules use) */
body.di-page .site-footer { margin-top: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body.di-page.dark-mode .site-footer { background-color: var(--di-bg) !important; border-top: 1px solid var(--di-border); }
body.di-page.dark-mode .footer-bottom { background-color: var(--di-bg-2) !important; border-top: 1px solid var(--di-border); color: var(--di-muted); }
body.di-page.light-mode .site-footer { background-color: var(--di-bg) !important; border-top: 1px solid var(--di-border); }
body.di-page.light-mode .footer-bottom { background-color: var(--di-bg-2) !important; border-top: 1px solid var(--di-border); }
body.di-page .site-footer .footer-column h3, body.di-page .site-footer .footer-address h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--di-muted); }
body.di-page.dark-mode .site-footer .footer-column a, body.di-page.dark-mode .site-footer .footer-address a, body.di-page.dark-mode .site-footer .footer-address p { color: var(--di-text-2); }
body.di-page .site-footer .footer-column a:hover { text-decoration: none; }

/* Short laptop screens: no scroll cue over the content */
@media (max-height: 820px) { .di-scroll-cue { display: none; } }

/* Phones: tighter hero top, no tilt, calmer glow */
@media (max-width: 760px) {
  .di-hero { padding: 92px 0 64px; }
  .di-eyebrow { margin-bottom: 20px; }
  .di-lede { margin-top: 18px; }
  .di-search { margin-top: 28px; }
  .di-final::before { width: 600px; height: 600px; margin: -300px 0 0 -300px; }
}

/* Reduced motion / static: no entrance either */
@media (prefers-reduced-motion: reduce) { .di-rise { animation: none !important; } }
.di-static .di-rise { animation: none !important; }

/* =====================================================================
   v3 — DNSai Domain Manager is the primary CTA (2026-11-05)
   ===================================================================== */

/* Primary / quiet buttons */
.di-main .di-btn--lg { min-height: 58px; padding: 0 30px; font-size: 16.5px; }

/* Hero: primary CTA row, then the secondary search */
.di-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.di-cta-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--di-muted); }
.di-cta-meta span { display: inline-flex; align-items: center; gap: 7px; }
.di-cta-meta span::before { content: ""; width: 14px; height: 14px; flex: 0 0 auto; background: var(--di-good); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.di-cta-meta--below { margin-top: 16px; }
.di-cta-meta--center { justify-content: center; margin-top: 18px; }

/* Domain Manager showcase */
.di-dm { overflow: hidden; }
.di-dm::before {
  content: ""; position: absolute; right: -10%; top: 10%; width: 60%; height: 80%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--di-glow-b), transparent); opacity: .8;
}
.di-dm .di-wrap { position: relative; z-index: 1; }
.di-dm-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 5.5vw, 80px); align-items: center; }
.di-dm .di-head { margin-bottom: 34px; }
.di-benefits { display: grid; gap: 22px; }
.di-benefits li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; align-items: start; }
.di-bi { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--di-accent); background: rgba(38, 196, 255, .08); box-shadow: inset 0 0 0 1px rgba(38, 196, 255, .22); }
body.di-page.light-mode .di-bi { background: rgba(11, 92, 255, .06); box-shadow: inset 0 0 0 1px rgba(11, 92, 255, .18); }
.di-bi svg { width: 20px; height: 20px; }
.di-benefits h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; color: var(--di-text); }
.di-benefits p { margin-top: 5px; font-size: .98rem; line-height: 1.6; color: var(--di-text-2); }
.di-dm .di-cta-row { margin-top: 36px; }

/* Dashboard illustration */
.di-dash-wrap figcaption { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--di-muted); }
.di-dash {
  position: relative; overflow: hidden; border-radius: 20px; padding-bottom: 76px;
  background: linear-gradient(180deg, rgba(23, 29, 44, .96), rgba(10, 13, 22, .98)); box-shadow: var(--di-shadow);
}
body.di-page.light-mode .di-dash { background: #fff; }
.di-dash-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--di-border); font-size: 12.5px; font-weight: 600; color: var(--di-muted); }
.di-dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--di-border-strong); }
.di-dash-bar span { margin-left: 10px; }
.di-dash-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 18px 10px; }
.di-tab { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--di-muted); box-shadow: inset 0 0 0 1px var(--di-border); }
.di-tab b { margin-left: 4px; font-weight: 600; color: var(--di-text-2); }
.di-tab.is-on { color: var(--di-text); background: var(--di-surface-2); box-shadow: inset 0 0 0 1px var(--di-border-strong); }
.di-dash-add { margin-left: auto; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--di-grad); }
.di-dash-head, .di-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .55fr); gap: 10px; align-items: center; padding: 0 18px; }
.di-dash-head { padding-top: 8px; padding-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--di-muted); }
.di-dash-head span:last-child, .di-cell-num { text-align: right; }
.di-dash-rows { margin: 0 10px; }
.di-row { height: 50px; padding: 0 8px; border-radius: 10px; font-size: 13.5px; color: var(--di-text-2); border-top: 1px solid var(--di-border); transition: background .5s var(--di-ease); }
.di-row:first-child { border-top-color: transparent; }
.di-cell-domain { font-family: var(--di-mono); font-size: 12.5px; color: var(--di-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-cell-mail { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity .3s; }
.di-cell-mail img { width: 18px; height: 18px; border-radius: 4px; flex: 0 0 auto; object-fit: contain; }
body.di-page.light-mode .di-cell-mail img { background: #0d1220; padding: 2px; }
.di-cell-num { font-family: var(--di-mono); font-size: 12.5px; color: var(--di-text); transition: color .4s; }
.di-pill { justify-self: start; padding: 4px 9px; border-radius: 999px; font: 600 11.5px/1 var(--di-mono); transition: background .4s, color .4s; }
.di-pill--ok { color: var(--di-good); background: rgba(53, 208, 127, .12); }
.di-pill--mid { color: #7fb4ff; background: rgba(47, 107, 255, .16); }
.di-pill--warn { color: var(--di-warn); background: rgba(255, 181, 71, .13); }
body.di-page.light-mode .di-pill--mid { color: #1f55d6; background: rgba(11, 92, 255, .1); }
.di-row.is-flash { background: rgba(38, 196, 255, .09); }
body.di-page.light-mode .di-row.is-flash { background: rgba(11, 92, 255, .07); }
.di-row.is-flash .di-cell-num { color: var(--di-accent); }
.di-js .di-dash .di-row { opacity: 0; transform: translateY(8px); }
.di-dash.is-in .di-row { animation: di-row-in .55s var(--di-ease) both; animation-delay: calc(var(--i, 0) * 70ms + .15s); }
@keyframes di-row-in { to { opacity: 1; transform: none; } }

.di-toast {
  position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--di-bg-2); box-shadow: inset 0 0 0 1px var(--di-border-strong), 0 18px 40px -18px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(14px); transition: opacity .45s var(--di-ease), transform .45s var(--di-ease);
}
body.di-page.light-mode .di-toast { background: #fff; box-shadow: inset 0 0 0 1px var(--di-border-strong), 0 18px 40px -22px rgba(15, 30, 60, .35); }
.di-dash.has-toast .di-toast { opacity: 1; transform: none; }
.di-toast-dot { position: relative; width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--di-accent); }
.di-toast-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--di-accent); animation: di-ping 1.8s var(--di-ease) infinite; }
.di-toast div { display: grid; gap: 2px; min-width: 0; }
.di-toast-title { font-size: 13px; font-weight: 650; color: var(--di-text); }
.di-toast-text { font: 12px/1.35 var(--di-mono); color: var(--di-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-toast-time { margin-left: auto; flex: 0 0 auto; font-size: 11.5px; color: var(--di-muted); }

/* DNS Explorer, demoted to a slim row */
.di-dnsx {
  display: flex; align-items: center; gap: 18px; margin-top: clamp(48px, 6vw, 72px); padding: 20px 24px;
  border-radius: 18px; background: var(--di-surface); box-shadow: inset 0 0 0 1px var(--di-border);
}
.di-dnsx img { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; }
.di-dnsx h3 { font-size: 1.02rem; font-weight: 650; color: var(--di-text); }
.di-dnsx p { margin-top: 3px; font-size: .95rem; line-height: 1.55; color: var(--di-text-2); }
.di-dnsx .di-link { margin-left: auto; flex: 0 0 auto; }

/* Final CTA */
.di-final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 38px; }
.di-final .di-final-links { margin-top: 26px; }

/* Floating CTA: only between the sections that already carry a Domain Manager button */
.di-main ~ .di-float, .di-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 1200;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 "Inter", system-ui, sans-serif; color: #fff; text-decoration: none;
  background: var(--di-grad); box-shadow: 0 16px 40px -12px rgba(38, 120, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  opacity: 0; transform: translateY(24px) scale(.96); pointer-events: none;
  transition: opacity .4s var(--di-ease), transform .45s var(--di-ease), box-shadow .3s;
}
.di-float svg { width: 18px; height: 18px; transition: transform .25s var(--di-ease); }
.di-float.is-show { opacity: 1; transform: none; pointer-events: auto; }
.di-float:hover { box-shadow: 0 18px 44px -12px rgba(38, 120, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.di-float:hover svg { transform: translateX(3px); }
.di-float:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Responsive */
@media (max-width: 1020px) {
  .di-dm-grid { grid-template-columns: 1fr; }
  .di-dm::before { right: -30%; top: 40%; width: 100%; height: 50%; }
}
@media (max-width: 760px) {
  .di-cta-row { margin-top: 28px; }
  .di-cta-row .di-btn--lg { width: 100%; }
  .di-cta-row .di-cta-meta { width: 100%; justify-content: center; }
  .di-dm .di-cta-row .di-link { width: 100%; justify-content: center; }
  .di-cta-meta--below { justify-content: center; }
  .di-dash { padding-bottom: 84px; }
  .di-dash-head, .di-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .8fr); }
  .di-dash-head span:last-child, .di-cell-num { display: none; }
  .di-dash-tools .di-tab:nth-child(n+3) { display: none; }
  .di-cell-mail { font-size: 12.5px; }
  .di-cell-domain { font-size: 11.5px; }
  .di-dnsx { flex-wrap: wrap; }
  .di-dnsx .di-link { margin-left: 62px; }
  .di-main ~ .di-float, .di-float { left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); justify-content: center; }
  .di-final-ctas .di-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .di-js .di-dash .di-row { opacity: 1; transform: none; }
}
.di-static.di-js .di-dash .di-row { opacity: 1; transform: none; }
.di-static .di-dash .di-toast { opacity: 1; transform: none; }

/* Decoder: Domain Manager CTA line (replaced the provenance note, owner request 2026-11-05) */
.di-dec-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 10px auto 0; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--di-accent); text-decoration: none;
  transition: background .25s, box-shadow .25s;
}
.di-dec-cta svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .25s var(--di-ease); }
.di-dec-cta:hover { background: var(--di-surface); box-shadow: inset 0 0 0 1px var(--di-border-strong); }
.di-dec-cta:hover svg { transform: translateX(3px); }
@media (max-width: 760px) { .di-dec-cta { font-size: 13.5px; text-align: center; } }

/* Dashboard illustration on phones: logo-only mail column, two-line alert */
.di-mail-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 760px) {
  .di-dash { padding-bottom: 96px; }
  .di-dash-head, .di-row { grid-template-columns: minmax(0, 1fr) 40px minmax(86px, auto); gap: 8px; }
  .di-dash-head span:nth-child(2) { text-align: center; }
  .di-cell-mail { justify-content: center; }
  .di-mail-name { display: none; }
  .di-cell-mail img { width: 20px; height: 20px; }
  .di-cell-domain { font-size: 12px; }
  .di-pill { justify-self: end; }
  .di-dash-head span:nth-child(3) { text-align: right; }
  .di-toast { align-items: flex-start; }
  .di-toast-text { white-space: normal; }
  .di-toast-time { display: none; }
}

/* v3c: Domain Manager promise under the decoder CTA line (hero is search-first) */
.di-dec-meta { justify-content: center; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; }
.di-dec-meta span::before { width: 12px; height: 12px; }

/* =====================================================================
   v4 — Marvin is back; the floating Domain Manager pill docks beside it
   ===================================================================== */
/* The site-wide `button { width: 55% }` rule made Marvin's launcher an invisible box half the
   screen wide; pin it to its content on this page (the widget's inline styles don't set width). */
#marvinLauncher { width: auto !important; }
@media (max-width: 600px) { .di-float-brand { display: none; } }

/* v4b: "any domain" line under the decoder CTA */
.di-dec-scope { max-width: 46ch; margin: 2px auto 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--di-text-2); }
.di-dec-scope + .di-dec-meta { margin-top: 8px; }
@media (max-width: 760px) { .di-dec-scope { font-size: 13px; max-width: 34ch; } }

.di-dec-scope-list { display: block; }
@media (max-width: 760px) { .di-dec-scope { max-width: none; } .di-dec-scope-list { font-size: 12.5px; } }

/* v6: word-based tile stats (dictionary sizes are no longer published) */
.di-big--word { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.95rem); letter-spacing: -0.025em; line-height: 1.1; display: grid; gap: 6px; }
.di-big--word small { font-size: 13px; margin-left: 0; }

/* v6b: implied counters ("250+") */
.di-plus { font-style: normal; font-weight: 700; color: var(--di-accent); margin-left: 1px; }
/* v6b: counter + label wrap as a unit in narrow tiles */
.di-big { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 6px; }
.di-big small { white-space: nowrap; }

/* Decoder CTA: deliberate two-line break on phones (owner request 2026-11-05) */
.di-dec-cta-text { min-width: 0; }
@media (max-width: 760px) {
  .di-dec-cta { text-align: left; }
  .di-dec-cta-text { text-align: center; }
  .di-dec-cta-l2 { display: block; }
}

/* Floating pill: brand mark instead of an arrow (the arrow pointed at Marvin's avatar, owner 2026-11-05) */
.di-float img { width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto; }
.di-float svg { display: none; }

/* Floating pill: centred on desktop/tablet (Marvin keeps its own corner, owner 2026-11-05) */
@media (min-width: 601px) {
  .di-main ~ .di-float, .di-float { left: 50%; right: auto; transform: translate(-50%, 24px) scale(.96); }
  .di-float.is-show { transform: translate(-50%, 0); }
}
