/* =============================================================
   UnderHost Tools — Design System
   tools.underhost.com
   Based on UnderHost DESIGN.MD
   ============================================================= */

/* ── 1. CSS Variables ───────────────────────────────────────── */
:root {
  --uh-primary:        #00D4FF;
  --uh-primary-dark:   #0091D6;
  --uh-primary-darker: #0A1220;

  --uh-secondary:      #0091D6;
  --uh-secondary-dark: #0078B8;

  --uh-accent:         #64748B;
  --uh-accent-light:   #94A3B8;
  --uh-accent-dark:    #334155;

  --uh-surface:        #FFFFFF;
  --uh-surface-soft:   #F8F9FA;
  --uh-border:         #E5E7EB;
  --uh-border-soft:    #F3F4F6;

  --uh-dark-base:      #0A1220;
  --uh-dark-mid:       #0D1B30;
  --uh-dark-panel:     #0F2040;
  --uh-dark-deep:      #071428;

  --uh-border-primary:   rgba(0, 212, 255, 0.20);
  --uh-border-secondary: rgba(0, 145, 214, 0.18);

  --uh-gradient-horizontal:    linear-gradient(90deg, #00D4FF, #0091D6);
  --uh-gradient-primary:       linear-gradient(135deg, #0A1220 0%, #0D1B30 40%, #0F2040 70%, #071428 100%);
  --uh-gradient-card-header:   linear-gradient(135deg, #0A1220 0%, #0D1B30 60%, #0F2040 100%);
  --uh-gradient-accent-overlay:linear-gradient(90deg, rgba(0,145,214,0.18) 0%, transparent 60%);

  --uh-shadow-md:   0 4px 16px rgba(0, 145, 214, 0.35);
  --uh-shadow-lg:   0 6px 22px rgba(0, 145, 214, 0.52);
  --uh-shadow-xl:   0 20px 50px rgba(0, 0, 0, 0.18);
  --uh-shadow-glow: 0 0 30px rgba(0, 212, 255, 0.25);

  --uh-success:      #34D399;
  --uh-success-dark: #16A34A;
  --uh-warning:      #FBBF24;
  --uh-warning-dark: #D97706;
  --uh-error:        #EF4444;
  --uh-error-dark:   #DC2626;

  --uh-radius-sm:  8px;
  --uh-radius-md:  12px;
  --uh-radius-lg:  16px;
  --uh-radius-xl:  20px;
  --uh-radius-2xl: 24px;

  --uh-container:      1200px;
  --uh-container-wide: 1320px;
}

/* ── 2. Base Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--uh-accent-dark);
  background: var(--uh-surface);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--uh-secondary); text-decoration: none; }
a:hover { color: var(--uh-primary); }
ul { list-style: none; }

/* ── 3. Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: Manrope, Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--uh-dark-base);
}

h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; }

p { margin-bottom: 0; }

.uh-mono {
  font-family: "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Consolas, monospace;
  font-size: 0.875em;
}

/* ── 4. Layout ──────────────────────────────────────────────── */
.uh-container {
  width: min(100% - 32px, var(--uh-container));
  margin-inline: auto;
}
.uh-container-wide {
  width: min(100% - 32px, var(--uh-container-wide));
  margin-inline: auto;
}
.uh-container-narrow {
  width: min(100% - 32px, 900px);
  margin-inline: auto;
}

.uh-section { padding: 80px 0; }
.uh-section-sm { padding: 56px 0; }
.uh-section-lg { padding: 104px 0; }

.uh-section-dark {
  background:
    radial-gradient(circle at 20% 25%, rgba(0, 212, 255, 0.16), transparent 38%),
    var(--uh-gradient-primary);
  color: rgba(255,255,255,0.86);
}
.uh-section-dark h1,
.uh-section-dark h2,
.uh-section-dark h3,
.uh-section-dark h4 { color: #fff; }
.uh-section-dark p { color: rgba(255,255,255,0.75); }

.uh-section-soft { background: var(--uh-surface-soft); }

/* ── 5. Header ──────────────────────────────────────────────── */
.uh-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 18, 32, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 220ms ease, box-shadow 220ms ease;
}
.uh-site-header.is-scrolled {
  background: rgba(10, 18, 32, 0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}

.uh-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.uh-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.uh-logo-img { height: 34px; width: auto; display: block; } /* width: auto — scales proportionally, never stretches */

.uh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 16px;
}

.uh-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--uh-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 160ms, background 160ms;
  white-space: nowrap;
}
.uh-nav-link:hover { color: var(--uh-primary); background: rgba(0,212,255,0.07); }
.uh-nav-link.active { color: var(--uh-primary); }

.uh-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile hamburger */
.uh-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--uh-radius-sm);
  flex-shrink: 0;
}
.uh-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}
.uh-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.uh-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.uh-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.uh-mobile-menu {
  background: var(--uh-dark-mid);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.uh-mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0 20px;
}
.uh-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 160ms, background 160ms;
}
.uh-mobile-nav a:hover { color: var(--uh-primary); background: rgba(0,212,255,0.06); }
.uh-mobile-nav a i { width: 18px; color: var(--uh-primary); opacity: 0.8; }
.uh-mobile-nav hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 8px 24px; }

/* ── 6. Footer ──────────────────────────────────────────────── */
.uh-footer {
  background: var(--uh-gradient-primary);
  border-top: 1px solid rgba(0,212,255,0.14);
  padding-top: 72px;
  padding-bottom: 40px;
}

.uh-footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.uh-footer-logo { height: 36px; width: auto; margin-bottom: 16px; }
.uh-footer-tagline {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}
.uh-footer-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  line-height: 1.5;
}

.uh-footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.uh-footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.uh-footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 3px 0;
  transition: color 160ms;
}
.uh-footer-col a:hover { color: var(--uh-primary); }

.uh-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
}
.uh-footer-bottom-links { display: flex; gap: 20px; }
.uh-footer-bottom-links a { color: rgba(255,255,255,0.38); transition: color 160ms; }
.uh-footer-bottom-links a:hover { color: rgba(255,255,255,0.72); }

/* ── 7. Hero ────────────────────────────────────────────────── */
.uh-hero {
  padding: 80px 0 72px;
  background:
    radial-gradient(circle at 18% 30%, rgba(0,212,255,0.18), transparent 40%),
    var(--uh-gradient-primary);
  position: relative;
  overflow: hidden;
}
.uh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300D4FF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.uh-hero-content { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.uh-hero-content h1 { color: #fff; margin-bottom: 18px; }
.uh-hero-content p { font-size: 18px; color: rgba(255,255,255,0.72); margin-bottom: 36px; }

/* ── 8. Section Divider ─────────────────────────────────────── */
.uh-section-divider {
  width: min(100% - 32px, var(--uh-container));
  margin: 56px auto;
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}
.uh-section-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.38), rgba(0,145,214,0.26), transparent);
}
.uh-section-divider-icon {
  width: 32px; height: 32px;
  display: block;
  border-radius: 8px;
  filter: drop-shadow(0 0 14px rgba(0,212,255,0.30));
}
.uh-section-dark .uh-section-divider-line {
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.48), rgba(255,255,255,0.16), transparent);
}

/* ── 9. Pills & Badges ──────────────────────────────────────── */
.uh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0,212,255,0.12);
  color: var(--uh-primary);
  border: 1px solid rgba(0,212,255,0.25);
  margin-bottom: 18px;
}
.uh-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.uh-badge-ok      { background: rgba(52,211,153,0.12); color: #34D399; border: 1px solid rgba(52,211,153,0.25); }
.uh-badge-warn    { background: rgba(251,191,36,0.12);  color: #FBBF24; border: 1px solid rgba(251,191,36,0.25); }
.uh-badge-error   { background: rgba(239,68,68,0.12);   color: #EF4444; border: 1px solid rgba(239,68,68,0.25); }
.uh-badge-info    { background: rgba(0,212,255,0.10);   color: var(--uh-primary); border: 1px solid rgba(0,212,255,0.22); }
.uh-badge-neutral { background: rgba(100,116,139,0.12); color: #94A3B8; border: 1px solid rgba(100,116,139,0.22); }

/* ── 10. Cards ──────────────────────────────────────────────── */
.uh-card {
  background: var(--uh-surface);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-xl);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.uh-card:hover {
  transform: translateY(-3px);
  border-color: var(--uh-border-secondary);
  box-shadow: 0 14px 36px rgba(10,18,32,0.08);
}

.uh-card-dark {
  background: rgba(15,32,64,0.88);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.uh-card-dark:hover {
  border-color: var(--uh-border-primary);
  box-shadow: var(--uh-shadow-glow);
}

.uh-panel-card {
  background: var(--uh-surface);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.uh-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--uh-gradient-card-header);
  position: relative;
  overflow: hidden;
}
.uh-panel-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--uh-gradient-accent-overlay);
  pointer-events: none;
}
.uh-panel-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(0,212,255,0.10);
  border: 1px solid rgba(0,212,255,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.uh-panel-icon i { color: var(--uh-primary); font-size: 16px; }
.uh-panel-title {
  flex: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.uh-panel-badge {
  position: relative;
  z-index: 1;
}
.uh-panel-body { padding: 20px 22px; }

/* ── 11. Buttons ────────────────────────────────────────────── */
.uh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--uh-radius-md);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.uh-btn:focus-visible {
  outline: 3px solid rgba(0,212,255,0.35);
  outline-offset: 3px;
}

.uh-btn-primary {
  background: var(--uh-gradient-horizontal);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--uh-shadow-md);
}
.uh-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--uh-shadow-lg);
}
.uh-btn-primary:visited,
.uh-btn-primary:active,
.uh-migration-submit,
.uh-migration-submit:hover,
.uh-migration-submit:focus {
  color: #fff;
}
.uh-migration-submit:hover {
  background: linear-gradient(135deg, #0091D6, #006FA8);
  border-color: transparent;
}

.uh-btn-secondary {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.16);
}
.uh-btn-secondary:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

.uh-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.18);
  font-size: 13.5px;
}
.uh-btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-color: rgba(255,255,255,0.30);
}

.uh-btn-outline {
  background: transparent;
  color: var(--uh-secondary);
  border-color: var(--uh-border-secondary);
}
.uh-btn-outline:hover {
  background: rgba(0,145,214,0.06);
  border-color: var(--uh-secondary);
}

.uh-btn-lg { min-height: 52px; padding: 14px 28px; font-size: 15px; border-radius: var(--uh-radius-lg); }
.uh-btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; border-radius: var(--uh-radius-sm); }

/* ── 12. Forms ──────────────────────────────────────────────── */
.uh-form-group { margin-bottom: 20px; }
.uh-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--uh-accent-dark);
  margin-bottom: 7px;
}
.uh-form-label .req { color: var(--uh-error); margin-left: 2px; }

.uh-field {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid var(--uh-border);
  border-radius: var(--uh-radius-md);
  background: #fff;
  color: var(--uh-accent-dark);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  appearance: none;
}
.uh-field:focus {
  outline: none;
  border-color: var(--uh-secondary);
  box-shadow: 0 0 0 3px rgba(0,145,214,0.09);
}
.uh-field::placeholder { color: #B0BAC9; }
.uh-field.error { border-color: var(--uh-error); }
.uh-field.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.10); }

textarea.uh-field { min-height: 110px; resize: vertical; line-height: 1.5; }
select.uh-field { cursor: pointer; }

.uh-field-help {
  font-size: 12.5px;
  color: var(--uh-accent);
  margin-top: 5px;
}
.uh-field-error {
  font-size: 12.5px;
  color: var(--uh-error);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Tool search bar */
.uh-tool-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
}
.uh-tool-form .uh-field {
  flex: 1;
  min-height: 52px;
  border-radius: var(--uh-radius-lg);
  font-size: 15px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}
.uh-tool-form .uh-field::placeholder { color: rgba(255,255,255,0.42); }
.uh-tool-form .uh-field:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--uh-primary);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
  color: #fff;
}
.uh-tool-form .uh-btn { min-height: 52px; border-radius: var(--uh-radius-lg); padding: 14px 28px; }

/* ── 13. Alert / Status boxes ───────────────────────────────── */
.uh-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--uh-radius-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.uh-alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.uh-alert-ok    { background: rgba(52,211,153,0.10);  border: 1px solid rgba(52,211,153,0.25); color: #065F46; }
.uh-alert-ok i  { color: var(--uh-success); }
.uh-alert-warn  { background: rgba(251,191,36,0.10);  border: 1px solid rgba(251,191,36,0.25); color: #78350F; }
.uh-alert-warn i{ color: var(--uh-warning); }
.uh-alert-error { background: rgba(239,68,68,0.09);   border: 1px solid rgba(239,68,68,0.22);  color: #7F1D1D; }
.uh-alert-error i{ color: var(--uh-error); }
.uh-alert-info  { background: rgba(0,212,255,0.07);   border: 1px solid rgba(0,212,255,0.22);  color: var(--uh-dark-mid); }
.uh-alert-info i{ color: var(--uh-primary); }

/* ── 14. Result Cards (tool output) ─────────────────────────── */
.uh-result-wrap { margin-top: 40px; }

.uh-result-section {
  background: var(--uh-surface);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.uh-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--uh-surface-soft);
  border-bottom: 1px solid var(--uh-border);
}
.uh-result-head-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,145,214,0.10);
  border: 1px solid rgba(0,145,214,0.18);
  flex-shrink: 0;
}
.uh-result-head-icon i { color: var(--uh-secondary); font-size: 15px; }
.uh-result-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--uh-dark-base);
  margin: 0;
}

.uh-result-table { width: 100%; border-collapse: collapse; }
.uh-result-row { border-bottom: 1px solid var(--uh-border-soft); }
.uh-result-row:last-child { border-bottom: none; }
.uh-result-row td { padding: 12px 20px; font-size: 13.5px; vertical-align: top; }
.uh-result-row td:first-child {
  width: 200px;
  font-weight: 600;
  color: var(--uh-accent);
  white-space: nowrap;
}
.uh-result-row td:last-child { color: var(--uh-accent-dark); word-break: break-all; }

.uh-result-row.ok    td:first-child { border-left: 3px solid var(--uh-success); }
.uh-result-row.warn  td:first-child { border-left: 3px solid var(--uh-warning); }
.uh-result-row.error td:first-child { border-left: 3px solid var(--uh-error); }
.uh-result-row.info  td:first-child { border-left: 3px solid var(--uh-primary); }

/* Status dot */
.uh-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}
.uh-dot-ok    { background: var(--uh-success); box-shadow: 0 0 6px rgba(52,211,153,0.6); }
.uh-dot-warn  { background: var(--uh-warning); box-shadow: 0 0 6px rgba(251,191,36,0.6); }
.uh-dot-error { background: var(--uh-error);   box-shadow: 0 0 6px rgba(239,68,68,0.6); }
.uh-dot-info  { background: var(--uh-primary); box-shadow: 0 0 6px rgba(0,212,255,0.5); }

/* Summary score bar */
.uh-result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  padding: 20px;
  background: var(--uh-surface-soft);
  border-radius: var(--uh-radius-xl);
  border: 1px solid var(--uh-border);
  margin-bottom: 24px;
}
.uh-summary-stat { text-align: center; }
.uh-summary-num {
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--uh-dark-base);
  line-height: 1;
  margin-bottom: 4px;
}
.uh-summary-num.ok    { color: var(--uh-success-dark); }
.uh-summary-num.warn  { color: var(--uh-warning-dark); }
.uh-summary-num.error { color: var(--uh-error-dark); }
.uh-summary-label { font-size: 12px; font-weight: 600; color: var(--uh-accent); }

/* DNS record rows for email checker */
.uh-dns-record {
  padding: 12px 20px;
  border-bottom: 1px solid var(--uh-border-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.uh-dns-record:last-child { border-bottom: none; }
.uh-dns-record-type {
  width: 64px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  text-align: center;
  margin-top: 1px;
}
.uh-dns-record-type.mx    { background: rgba(0,145,214,0.12); color: var(--uh-secondary); }
.uh-dns-record-type.a     { background: rgba(52,211,153,0.12); color: var(--uh-success-dark); }
.uh-dns-record-type.aaaa  { background: rgba(52,211,153,0.09); color: var(--uh-success-dark); }
.uh-dns-record-type.txt   { background: rgba(251,191,36,0.12); color: var(--uh-warning-dark); }
.uh-dns-record-type.ns    { background: rgba(100,116,139,0.12);color: var(--uh-accent); }
.uh-dns-record-type.spf   { background: rgba(0,212,255,0.10);  color: var(--uh-primary-dark); }
.uh-dns-record-type.dmarc { background: rgba(139,92,246,0.12); color: #7C3AED; }
.uh-dns-record-type.dkim  { background: rgba(236,72,153,0.10); color: #BE185D; }
.uh-dns-record-body { flex: 1; }
.uh-dns-record-value {
  font-family: "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;
  font-size: 12.5px;
  color: var(--uh-accent-dark);
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 4px;
}
.uh-dns-record-meta { font-size: 12px; color: var(--uh-accent-light); }

/* ── 15. Feature grid ───────────────────────────────────────── */
.uh-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uh-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.uh-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Feature card */
.uh-feature-card {
  padding: 24px;
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-xl);
  background: var(--uh-surface);
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
  cursor: default;
}
.uh-feature-card:hover {
  border-color: var(--uh-border-secondary);
  box-shadow: 0 8px 28px rgba(10,18,32,0.07);
  transform: translateY(-2px);
}
.uh-icon-box {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,145,214,0.08);
  border: 1px solid rgba(0,145,214,0.16);
  margin-bottom: 14px;
}
.uh-icon-box i { color: var(--uh-secondary); font-size: 20px; }
.uh-feature-card h3 { font-size: 16px; font-weight: 700; color: var(--uh-dark-base); margin-bottom: 8px; }
.uh-feature-card p  { font-size: 13.5px; color: var(--uh-accent); line-height: 1.55; }

/* ── 16. FAQ / Accordion ────────────────────────────────────── */
.uh-faq-item {
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-lg);
  overflow: hidden;
  margin-bottom: 10px;
}
.uh-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--uh-accent-dark);
  text-align: left;
  font-family: inherit;
  transition: background 160ms;
}
.uh-faq-question:hover { background: var(--uh-surface-soft); }
.uh-faq-question[aria-expanded="true"] { background: var(--uh-surface-soft); color: var(--uh-secondary); }
.uh-faq-question i { font-size: 13px; color: var(--uh-accent-light); transition: transform 220ms ease; flex-shrink: 0; }
.uh-faq-question[aria-expanded="true"] i { transform: rotate(180deg); color: var(--uh-secondary); }
.uh-faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease, padding 280ms ease;
  font-size: 14px;
  color: var(--uh-accent);
  line-height: 1.65;
}
.uh-faq-answer.open { max-height: 1200px; padding: 4px 20px 18px; }
.uh-faq-answer p { margin-bottom: 10px; }
.uh-faq-answer p:last-child { margin-bottom: 0; }
.uh-faq-answer code {
  background: var(--uh-surface-soft);
  border: 1px solid var(--uh-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.85em;
  color: var(--uh-secondary);
}
.uh-faq-answer ol, .uh-faq-answer ul {
  padding-left: 20px;
  margin: 8px 0;
}
.uh-faq-answer ol { list-style: decimal; }
.uh-faq-answer ul { list-style: disc; }
.uh-faq-answer li { margin-bottom: 5px; }

/* ── 17. WP Help — KB search ────────────────────────────────── */
.uh-kb-search {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 36px;
}
.uh-kb-search .uh-field {
  flex: 1;
  border-radius: var(--uh-radius-lg);
  min-height: 48px;
  font-size: 14.5px;
}

.uh-kb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}
.uh-kb-filter {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid var(--uh-border);
  background: none;
  color: var(--uh-accent);
  cursor: pointer;
  font-family: inherit;
  transition: all 160ms;
}
.uh-kb-filter:hover,
.uh-kb-filter.active {
  background: var(--uh-secondary);
  border-color: var(--uh-secondary);
  color: #fff;
}

.uh-kb-category { margin-bottom: 40px; }
.uh-kb-category-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--uh-border);
}
.uh-kb-category-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,145,214,0.09);
  border: 1px solid rgba(0,145,214,0.18);
}
.uh-kb-category-icon i { color: var(--uh-secondary); font-size: 17px; }
.uh-kb-category-head h2 { font-size: 18px; margin: 0; }

/* ── 18. Migration form layout ──────────────────────────────── */
.uh-migration-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.uh-process-step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--uh-border-soft);
}
.uh-process-step:last-child { border-bottom: none; }
.uh-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--uh-gradient-horizontal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.uh-step-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; color: var(--uh-dark-base); }
.uh-step-body p  { font-size: 13.5px; color: var(--uh-accent); line-height: 1.5; }

.uh-credentials-note {
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.28);
  border-radius: var(--uh-radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: #78350F;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
}
.uh-credentials-note i { color: var(--uh-warning); flex-shrink: 0; margin-top: 2px; }

/* ── 19. Trust strip ────────────────────────────────────────── */
.uh-trust-strip {
  background: var(--uh-surface-soft);
  border-top: 1px solid var(--uh-border);
  border-bottom: 1px solid var(--uh-border);
  padding: 18px 0;
}
.uh-trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.uh-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--uh-accent);
}
.uh-trust-item i { color: var(--uh-secondary); font-size: 14px; }

/* ── 20. CTA block ──────────────────────────────────────────── */
.uh-cta-block {
  text-align: center;
  padding: 72px 0;
  background:
    radial-gradient(circle at 80% 60%, rgba(0,212,255,0.14), transparent 40%),
    var(--uh-gradient-primary);
}
.uh-cta-block h2 { color: #fff; margin-bottom: 14px; }
.uh-cta-block p { color: rgba(255,255,255,0.68); max-width: 520px; margin: 0 auto 32px; font-size: 16px; }
.uh-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── 21. Loading spinner ─────────────────────────────────────── */
.uh-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: uh-spin 0.7s linear infinite;
}
@keyframes uh-spin { to { transform: rotate(360deg); } }

/* ── 22. Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-ok    { color: var(--uh-success-dark); }
.text-warn  { color: var(--uh-warning-dark); }
.text-error { color: var(--uh-error-dark); }
.text-muted { color: var(--uh-accent-light); }
.text-cyan  { color: var(--uh-primary); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.d-none { display: none !important; }
.mono { font-family: "JetBrains Mono", Consolas, monospace; font-size: 0.875em; }

/* ── 23. Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .uh-footer-links { grid-template-columns: repeat(2, 1fr); }
  .uh-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .uh-nav { display: none; }
  .uh-mobile-toggle { display: flex; }
  .uh-header-actions .uh-btn-ghost { display: none; }

  .uh-footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .uh-migration-layout { grid-template-columns: 1fr; }
  .uh-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .uh-result-row td:first-child { width: 150px; }
}

@media (max-width: 768px) {
  .uh-section { padding: 60px 0; }
  .uh-section-sm { padding: 44px 0; }
  .uh-hero { padding: 60px 0 56px; }
  .uh-cta-block { padding: 56px 0; }
  .uh-footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .uh-tool-form { flex-direction: column; }
  .uh-tool-form .uh-btn { width: 100%; }
  .uh-grid-3,
  .uh-grid-4 { grid-template-columns: 1fr; }
  .uh-result-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .uh-logo-img { height: 28px; }
  .uh-footer-links { grid-template-columns: 1fr 1fr; }
  .uh-footer-bottom { flex-direction: column; align-items: flex-start; }
  .uh-grid-2 { grid-template-columns: 1fr; }
  .uh-result-row { display: flex; flex-direction: column; }
  .uh-result-row td:first-child { width: auto; padding-bottom: 4px; border-left: none !important; border-top: 3px solid var(--uh-border-soft); }
  .uh-result-row td:first-child { border-left: none !important; border-top: 2px solid; }
  .uh-result-row.ok    td:first-child { border-top-color: var(--uh-success); }
  .uh-result-row.warn  td:first-child { border-top-color: var(--uh-warning); }
  .uh-result-row.error td:first-child { border-top-color: var(--uh-error); }
  .uh-dns-record { flex-direction: column; gap: 8px; }
  .uh-dns-record-type { width: auto; align-self: flex-start; }
  .uh-section-divider { margin: 36px auto; }
}

@media (max-width: 480px) {
  .uh-result-summary { grid-template-columns: 1fr 1fr; }
  .uh-footer-links { grid-template-columns: 1fr; }
}

/* ── 24. Accessibility ──────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0,212,255,0.45);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── 25. Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* UnderHost ecosystem navigation shown below the shared site header. */
.tools-ecosystem-nav {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--uh-border);
  box-shadow: 0 10px 24px rgba(10, 18, 32, 0.06);
}

.tools-ecosystem-nav-inner {
  width: min(100% - 32px, var(--uh-container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tools-ecosystem-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--uh-accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.tools-ecosystem-nav a:hover,
.tools-ecosystem-nav a.is-active {
  color: var(--uh-secondary);
  background: rgba(0, 145, 214, 0.08);
  border-color: rgba(0, 145, 214, 0.18);
}

.uh-resource-card {
  border-left: 4px solid rgba(0, 145, 214, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.uh-resource-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--uh-primary);
  box-shadow: 0 14px 34px rgba(10, 18, 32, 0.12);
}

@media (max-width: 720px) {
  .tools-ecosystem-nav-inner {
    width: min(100% - 20px, var(--uh-container));
    justify-content: flex-start;
    min-height: 52px;
  }

  .tools-ecosystem-nav a {
    font-size: 12.5px;
    padding-inline: 10px;
  }
}
